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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4431e4
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4513e0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4513e0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
mov esi, edx
call fcn.004068e0
mov dword [esp + 0x44], eax
mov byte [eax + 0x45], 1
mov eax, dword [esp + 0x44]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x44]
mov dword [eax], eax
mov eax, dword [esp + 0x44]
xor edx, edx
mov dword [eax + 8], eax
mov dword [esp + 0x48], edx
mov byte [esp + 0x4c], dl
mov dword [esp + 0x54], edx
mov dword [esp + 0x98], edx
cmp word [esi], dx
mov edi, esi
je 0x40a124
lea ecx, [ecx]
push 0x3d
push edi
call fcn.0042a4db
mov ebx, eax
xor esi, esi
add esp, 8
cmp ebx, esi
je 0x40a0f6
mov ecx, ebx
sub ecx, edi
sar ecx, 1
push ecx
push edi
lea edx, [esp + 0x60]
push 0x18
push edx
call fcn.0042a4fd
lea eax, [esp + 0x68]
add esp, 0x10
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x40a086
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5c]
push eax
lea esi, [esp + 0x20]
call fcn.004035b0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 1
lea esi, [ebx + 2]
call fcn.00402690
mov ecx, esi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40a0c2
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov esi, eax
call fcn.004035b0
mov byte [esp + 0x98], 0
cmp dword [esp + 0x30], 8
jb 0x40a0f6
mov edx, dword [esp + 0x1c]
push edx
call fcn.00429d64
add esp, 4
mov eax, edi
lea edx, [eax + 2]
jmp 0x40a100
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a100
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x40a040
mov ebx, dword [esp + 0x14]
xor edx, edx
mov eax, ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x40a130
sub eax, esi
sar eax, 1
lea esi, [ebx + eax*2 - 2]
movzx eax, word [esi]
push eax
call fcn.0042a615
add esp, 4
test eax, eax
je 0x40a167
movzx ecx, word [esi - 2]
sub esi, 2
push ecx
call fcn.0042a615
add esp, 4
test eax, eax
jne 0x40a153
xor edi, edi
mov word [esi + 2], di
mov esi, ebx
call fcn.004084f0
push 9
push 0x447238
lea esi, [esp + 0x20]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.004035b0
mov ebx, esi
lea eax, [esp + 0x40]
mov byte [esp + 0x98], 2
call fcn.00406890
mov esi, eax
lea edi, [esp + 0x40]
mov eax, edi
call fcn.00403200
mov edx, dword [esp + 0x34]
push edx
push esi
push edi
mov ecx, edi
push eax
xor ebx, ebx
push ecx
lea edi, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00406ea0
add esp, 0x14
cmp dword [esp + 0x14], ebx
mov edi, 8
seta byte [esp + 0x13]
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], edi
jb 0x40a1fe
mov eax, dword [esp + 0x1c]
push eax
call fcn.00429d64
add esp, 4
cmp byte [esp + 0x13], bl
je 0x40a2d0
push 9
push 0x447238
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004035b0
mov ecx, esi
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 3
call fcn.00402690
cmp dword [eax + 0x18], edi
jb 0x40a247
mov eax, dword [eax + 4]
jmp 0x40a24a
add eax, 4
push eax
call fcn.0042a4d1
add esp, 4
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], edi
mov dword [esp + 0x3c], eax
jb 0x40a271
mov edx, dword [esp + 0x1c]
push edx
call fcn.00429d64
add esp, 4
push 9
push 0x447238
lea esi, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.004035b0
mov eax, esi
lea esi, [esp + 0x40]
mov byte [esp + 0x98], 4
call fcn.00405560
mov byte [esp + 0x98], bl
cmp dword [esp + 0x30], edi
jb 0x40a2bf
mov eax, dword [esp + 0x1c]
push eax
call fcn.00429d64
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov ebx, dword [esp + 0x34]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x38]
push ecx
push edx
push esi
call fcn.00418320
mov ecx, 1
mov edx, ebx
mov edi, eax
call fcn.004183b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
lea eax, [esp + 0x40]
mov dword [esp + 0x98], 0xffffffff
call fcn.00402c10
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004289ca
mov esp, ebp
pop ebp
ret 4