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

Disassembly:
mov eax, 0x419cf0
call fcn.0041a1ac
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], edx
mov esi, ecx
call fcn.00402f2c
mov ebx, dword [0x41b0e8]
mov ebp, dword [0x41b06c]
cmp eax, 3
jae 0x403647
push 0x421464
push 0
push 0
push 0
call ebp
test eax, eax
je 0x403647
push eax
call ebx
test esi, esi
je 0x40383e
mov edi, dword [esi + 0x3c]
add edi, esi
call fcn.00402f2c
cmp eax, 3
jae 0x403672
push 0x421470
push 0
push 0
push 0
call ebp
test eax, eax
je 0x403672
push eax
call ebx
cmp dword [edi + 0x7c], 0
je 0x40383e
mov ebp, dword [edi + 0x78]
add ebp, esi
mov eax, dword [ebp + 0x1c]
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x24]
add eax, esi
mov dword [esp + 0x24], eax
call fcn.00402f2c
cmp eax, 3
jae 0x4036b0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0
call dword [0x41b0f0]
mov eax, dword [ebp + 0x20]
mov ebx, dword [esp + 0x14]
add eax, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x18], eax
je 0x4036de
push ecx
push ebx
call fcn.0040f160
pop ecx
mov edx, eax
mov ecx, ebx
call fcn.00402fee
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
pop ecx
jmp 0x4036e5
mov ecx, dword [ebx + 1]
mov dword [esp + 0x14], ecx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jbe 0x40383e
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x403717
add eax, esi
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0040f160
pop ecx
mov ecx, dword [esp + 0x24]
mov edx, eax
call fcn.00402fee
pop ecx
cmp dword [esp + 0x14], eax
je 0x403727
inc ebx
cmp ebx, dword [ebp + 0x18]
jae 0x40383e
mov eax, dword [esp + 0x18]
jmp 0x4036f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x403851
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x403851
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x34]
call fcn.00402adb
xor ebx, ebx
mov dword [esp + 0x84], ebx
push 1
push ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c], 0x2e
call fcn.00403b02
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
je 0x40382e
push esi
push ebx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403948
mov byte [esp + 0x84], 1
cmp dword [eax + 0x14], 0x10
jb 0x4037a6
mov eax, dword [eax]
push eax
call dword [0x41b024]
mov edi, eax
mov byte [esp + 0x84], bl
lea ecx, [esp + 0x48]
call fcn.00402b0a
test edi, edi
je 0x403815
push ebp
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x3c]
call fcn.00403948
mov byte [esp + 0x84], 2
cmp dword [eax + 0x14], 0x10
jb 0x4037e6
mov eax, dword [eax]
mov edx, eax
mov ecx, edi
call fcn.00403606
mov esi, eax
mov byte [esp + 0x84], bl
lea ecx, [esp + 0x60]
call fcn.00402b0a
mov dword [esp + 0x84], ebp
lea ecx, [esp + 0x30]
call fcn.00402b0a
mov eax, esi
jmp 0x403840
call fcn.00402f2c
cmp eax, 3
jae 0x40382e
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], ebx
call dword [0x41b0f0]
mov dword [esp + 0x84], ebp
lea ecx, [esp + 0x30]
call fcn.00402b0a
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ecx + esi]
jmp 0x403840