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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0xe4], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xfc]
mov eax, 7
push edi
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x4c], eax
xor ebp, ebp
mov dword [esp + 0x68], eax
xor eax, eax
push 0x80
mov dword [esp + 0x70], eax
mov word [esp + 0x74], ax
lea eax, [esp + 0x78]
push ebp
push eax
mov ebx, ecx
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
call fcn.00419b60
movzx ecx, byte [esi + 5]
movzx edx, byte [esi + 4]
movzx eax, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x98]
push str._02x_02x_02x_02x_02x_02x
push ecx
lea edx, [ebp + 0x40]
call fcn.00406f60
lea eax, [esp + 0xa0]
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x409103
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x58]
call fcn.00401a4b
movzx eax, byte [esi]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 2]
mov byte [esp + 0x6c], al
movzx eax, byte [esi + 3]
mov byte [esp + 0x6d], cl
movzx ecx, byte [esi + 4]
push 1
mov byte [esp + 0x72], dl
movzx edx, byte [esi + 5]
mov byte [esp + 0x73], al
push 0xffffffffffffffff
lea eax, [esp + 0x18]
mov byte [esp + 0x78], cl
push eax
mov ecx, edi
mov byte [esp + 0x7d], dl
mov dword [esp + 0x1c], 0x7b
call fcn.00402fce
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov esi, eax
mov dword [esp + 0x1c], 0x7d
call fcn.00402fce
cmp esi, eax
jae 0x4091dd
cmp esi, 0xffffffff
je 0x4091dd
cmp eax, 0xffffffff
je 0x4091dd
sub eax, esi
add eax, 1
push eax
push esi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
call fcn.0040176b
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x40]
call fcn.0040176b
mov esi, 8
cmp dword [esp + 0x30], esi
jb 0x4091e2
mov eax, dword [esp + 0x1c]
push eax
call fcn.004192f0
add esp, 4
jmp 0x4091e2
mov esi, 8
xor edx, edx
mov dword [esp + 0x10], edx
lea edi, [ebx + 0x10]
mov dword [esp + 0x14], ebp
nop
mov ecx, dword [edi + 4]
cmp ecx, ebp
je 0x4092bb
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 6
cmp edx, eax
jae 0x4092bb
cmp ecx, ebp
je 0x40921b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 6
cmp edx, eax
jb 0x409220
call fcn.004196a6
cmp dword [esp + 0x68], esi
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
lea ecx, [edx + ecx + 0x1c]
jae 0x409239
lea eax, [esp + 0x54]
mov esi, dword [ecx + 0x14]
mov edx, esi
cmp edx, esi
jae 0x409242
mov edx, dword [esp + 0x64]
cmp esi, edx
jae 0x40924c
mov edx, esi
cmp dword [ecx + 0x18], 8
jb 0x409257
mov ecx, dword [ecx + 4]
jmp 0x40925a
add ecx, 4
cmp edx, ebp
jbe 0x409287
mov edi, edi
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x409275
add ecx, 2
add eax, 2
sub edx, 1
jne 0x409260
jmp 0x409287
mov cx, bx
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
cmp eax, ebp
jne 0x40929c
mov eax, dword [esp + 0x64]
cmp esi, eax
jb 0x40929c
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
cmp eax, ebp
je 0x4092b4
add dword [esp + 0x10], 1
add dword [esp + 0x14], 0x40
mov edx, dword [esp + 0x10]
mov esi, 8
jmp 0x4091f0
mov esi, 8
jmp 0x4092c7
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.00408e80
cmp dword [esp + 0x68], esi
jb 0x4092da
mov eax, dword [esp + 0x54]
push eax
call fcn.004192f0
add esp, 4
cmp dword [esp + 0x4c], esi
mov word [esp + 0x54], bp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 7
jb 0x4092fe
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004192f0
add esp, 4
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419b4f
add esp, 0xe8
ret 8