Function at 0x365f260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x498
mov eax, dword [esp + 0x4a0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
push ebx
push ebp
push esi
push edi
sub eax, 0
je 0x365f62d
dec eax
je 0x365f544
dec eax
je 0x365f29c
mov eax, 0xc000000d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x498
ret
xor edi, edi
xor ebx, ebx
xor ebp, ebp
test edx, edx
je 0x365f3e2
mov ecx, dword [esp + 0x4ac]
lea edx, [esp + 0x68]
xor eax, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
test esi, esi
je 0x365f2d8
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
jmp 0x365f51f
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x68]
push ecx
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x18]
mov eax, dword [esi]
push 0x2000000
push ecx
mov ecx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call dword [eax + 0x50]
test eax, eax
jne 0x365f3ae
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0x30
lea ecx, [esp + 0x278]
push ecx
push 2
push dword [esp + 0x24]
mov ecx, esi
call dword [eax + 0x58]
cmp eax, 0x80000005
je 0x365f35d
cmp eax, 0xc0000023
je 0x365f35d
test eax, eax
jne 0x365f3ae
lea ebp, [esp + 0x270]
jmp 0x365f3ae
mov ebp, esi
nop
lea esi, [ebx + 0x1000]
cmp ebx, esi
jae 0x365f382
mov ecx, edi
call fcn.03707920
test esi, esi
jne 0x365f379
xor edi, edi
jmp 0x365f382
mov ecx, esi
call fcn.03707780
mov edi, eax
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
push ecx
push esi
push edi
push 2
push dword [esp + 0x24]
mov ecx, ebp
mov ebx, esi
call dword [eax + 0x58]
cmp eax, 0x80000005
je 0x365f360
cmp eax, 0xc0000023
je 0x365f360
xor ebp, ebp
test eax, eax
cmove ebp, edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x365f3d1
cmp eax, 0xffffffff
je 0x365f3d1
push eax
call dword [0x100f5250]
mov ecx, dword [esp + 0x14]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
cmp eax, ecx
je 0x365f3e2
call fcn.03707920
mov ebx, dword [esp + 0x4ac]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x38]
mov esi, eax
test esi, esi
je 0x365f406
and esi, 0xefffffff
jmp 0x365f528
xor eax, eax
mov dword [esp + 0x2a4], 0
mov dword [esp + 0x2a0], eax
lea ecx, [esp + 0x2a0]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jns 0x365f43a
and esi, 0xefffffff
jmp 0x365f511
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x365f4b0
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
cmp ecx, dword [esp + 0x2c]
jl 0x365f465
jg 0x365f45d
cmp eax, dword [esp + 0x28]
jbe 0x365f465
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
cmp dword [ebp + 0x18], ecx
mov edx, dword [esp + 0x4c]
cmova ecx, dword [ebp + 0x18]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x1c], ecx
cmova ecx, dword [ebp + 0x1c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x44]
cmp dword [ebp + 0x20], ecx
cmova ecx, dword [ebp + 0x20]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
cmp dword [ebp + 0x24], ecx
cmova ecx, dword [ebp + 0x24]
mov dword [esp + 0x48], ecx
cmp dword [ebp + 0x28], edx
cmova edx, dword [ebp + 0x28]
mov dword [esp + 0x4c], edx
mov eax, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
push 1
mov ecx, ebx
call dword [eax + 0x54]
mov esi, eax
test esi, esi
jne 0x365f511
push dword [esp + 0x4bc]
cmp dword [esp + 0x1c], eax
lea ecx, [esp + 0x2a4]
push dword [esp + 0x4bc]
mov edx, dword [esp + 0x28]
cmove ecx, eax
push dword [esp + 0x4bc]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.036bc5d0
add esp, 0x28
mov esi, eax
mov ecx, dword [esp + 0x2a4]
lea eax, [esp + 0x2a8]
cmp eax, ecx
je 0x365f528
call fcn.03707920
test edi, edi
je 0x365f6c0
mov ecx, edi
call fcn.03707920
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x498
ret
mov edi, dword [esp + 0x4ac]
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x38]
test eax, eax
jne 0x365f644
mov dword [esp + 0x2a4], eax
lea ecx, [esp + 0x2a0]
mov dword [esp + 0x2a0], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jns 0x365f59b
mov ecx, dword [esp + 0x2a4]
lea eax, [esp + 0x2a8]
and esi, 0xefffffff
jmp 0x365f6b7
xor ebx, ebx
mov dword [esp + 0x6c], 0
test esi, esi
lea ecx, [esp + 0x68]
push ecx
sete bl
mov ecx, edi
xor eax, eax
mov dword [esp + 0x6c], eax
mov eax, dword [edi]
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x365f609
push dword [esp + 0x4bc]
test ebx, ebx
lea edx, [esp + 0x2a4]
push dword [esp + 0x4bc]
cmove edx, eax
lea ecx, [esp + 0x28]
push dword [esp + 0x4bc]
mov eax, dword [esp + 0x74]
push dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
push dword [esp + 0x38]
mov dword [esp + 0x38], eax
call fcn.036bc4b0
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
cmp eax, ecx
je 0x365f61a
call fcn.03707920
mov ecx, dword [esp + 0x2a4]
lea eax, [esp + 0x2a8]
jmp 0x365f6b7
mov esi, dword [esp + 0x4ac]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
test eax, eax
je 0x365f654
and eax, 0xefffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x498
ret
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], eax
lea ecx, [esp + 0x68]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jne 0x365f6af
push dword [esp + 0x4bc]
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push dword [esp + 0x4bc]
mov edx, dword [esp + 0x4bc]
push dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
push dword [esp + 0x34]
mov dword [esp + 0x34], eax
call fcn.036bc430
add esp, 0x10
mov esi, eax
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x70]
cmp eax, ecx
je 0x365f6c0
call fcn.03707920
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x498
ret