Function at 0x409350
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.0041a390
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.00406f80
lea eax, [esp + 0xa0]
add esp, 0x2c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4093f3
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 0x4094cd
cmp esi, 0xffffffff
je 0x4094cd
cmp eax, 0xffffffff
je 0x4094cd
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 0x4094d2
mov eax, dword [esp + 0x1c]
push eax
call fcn.00419b13
add esp, 4
jmp 0x4094d2
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 0x4095ab
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 6
cmp edx, eax
jae 0x4095ab
cmp ecx, ebp
je 0x40950b
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 6
cmp edx, eax
jb 0x409510
call fcn.00419ec9
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 0x409529
lea eax, [esp + 0x54]
mov esi, dword [ecx + 0x14]
mov edx, esi
cmp edx, esi
jae 0x409532
mov edx, dword [esp + 0x64]
cmp esi, edx
jae 0x40953c
mov edx, esi
cmp dword [ecx + 0x18], 8
jb 0x409547
mov ecx, dword [ecx + 4]
jmp 0x40954a
add ecx, 4
cmp edx, ebp
jbe 0x409577
mov edi, edi
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x409565
add ecx, 2
add eax, 2
sub edx, 1
jne 0x409550
jmp 0x409577
mov cx, bx
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
cmp eax, ebp
jne 0x40958c
mov eax, dword [esp + 0x64]
cmp esi, eax
jb 0x40958c
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
cmp eax, ebp
je 0x4095a4
add dword [esp + 0x10], 1
add dword [esp + 0x14], 0x40
mov edx, dword [esp + 0x10]
mov esi, 8
jmp 0x4094e0
mov esi, 8
jmp 0x4095b7
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.00409170
cmp dword [esp + 0x68], esi
jb 0x4095ca
mov eax, dword [esp + 0x54]
push eax
call fcn.00419b13
add esp, 4
cmp dword [esp + 0x4c], esi
mov word [esp + 0x54], bp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 7
jb 0x4095ee
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00419b13
add esp, 4
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a372
add esp, 0xe8
ret 8