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

Disassembly:
mov ecx, dword [0x5915c4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x40a3bb
sub esp, 0xbc
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
call fcn.00459880
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045a0b0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00462860
mov eax, dword [esp + 8]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x28
call fcn.00404420
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x40a378
lea ecx, [eax + 2]
mov edx, dword [esp + 0x5c]
cmp edx, ecx
jg 0x40a15b
mov dword [esp], 0
lea eax, [0x4d273e]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x31
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.00457110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0043e340
mov ebx, dword [esp + 0x68]
lea ebp, [eax + ebx - 1]
cmp word [ebp], 0x282e
jne 0x40a11d
lea ebp, [eax + ebx + 1]
cmp byte [ebp], 0x2a
jne 0x40a11d
mov dword [esp + 0x60], eax
sub edx, eax
mov dword [esp + 0x64], edx
lea ebp, [edx - 2]
mov dword [esp + 0x5c], ebp
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ecx
lea ecx, [ebp + ebx]
mov dword [esp + 0x70], ecx
mov dword [esp], ecx
mov dword [esp + 4], esi
mov byte [esp + 8], 0x29
call fcn.00404420
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x40a336
lea ecx, [eax + 2]
mov edx, dword [esp + 0x5c]
cmp ecx, edx
jl 0x40a201
mov dword [esp], 0
lea eax, [0x4d2130]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x2e
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.00457110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0043e340
mov ebx, dword [esp + 0x70]
lea ebp, [ebx + eax]
cmp word [ebp], 0x2e29
jne 0x40a1c3
mov edx, dword [esp + 0x60]
dec edx
mov ebp, dword [esp + 0x64]
sub ebp, eax
add ebp, 0xfffffffc
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, ecx
lea ecx, [ebx + ebp]
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x74]
mov ebp, eax
xor eax, eax
call fcn.0046d85e
mov dword [esp + 0x78], 0xd
lea ecx, [0x4ca67e]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x88], 1
lea ecx, [0x4c8ed6]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], 1
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa0], esi
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa8], 0x13
lea ecx, [0x4cbcbe]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb8], 8
lea ecx, [0x4c969d]
mov dword [esp + 0xb4], ecx
mov dword [esp], 0
lea ecx, [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp + 8], 9
mov dword [esp + 0xc], 9
call fcn.00456f40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0040bbe0
mov ecx, dword [esp + 8]
lea edx, [0x4ba900]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0043d8a0
lea eax, [esp + 0x1c]
mov dword [esp], eax
lea eax, [0x4cbcab]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
call fcn.00457110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0043e340
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea eax, [0x4cbc98]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
call fcn.00457110
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0043e340
nop
call fcn.0046c370
jmp fcn.0040a090