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

Disassembly:
mov ecx, dword [0x52fb9c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x408cab
sub esp, 0xbc
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
call fcn.0046cb60
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00454370
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045a090
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.004031c0
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x408c68
lea ecx, [eax + 2]
mov edx, dword [esp + 0x5c]
cmp edx, ecx
jg 0x408a4b
mov dword [esp], 0
lea eax, [0x4a85fe]
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.00451fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046b0d0
mov ebx, dword [esp + 0x68]
lea ebp, [eax + ebx - 1]
cmp word [ebp], 0x282e
jne 0x408a0d
lea ebp, [eax + ebx + 1]
cmp byte [ebp], 0x2a
jne 0x408a0d
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.004031c0
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x408c26
lea ecx, [eax + 2]
mov edx, dword [esp + 0x5c]
cmp ecx, edx
jl 0x408af1
mov dword [esp], 0
lea eax, [0x4a807f]
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.00451fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046b0d0
mov ebx, dword [esp + 0x70]
lea ebp, [ebx + eax]
cmp word [ebp], 0x2e29
jne 0x408ab3
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.004703ae
mov dword [esp + 0x78], 0xd
lea ecx, [0x4a1cff]
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, [0x4a0895]
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, [0x4a31b4]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb8], 8
lea ecx, [0x4a0e76]
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.00451e00
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.00467290
mov ecx, dword [esp + 8]
lea edx, [0x495560]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0046ad40
lea eax, [esp + 0x1c]
mov dword [esp], eax
lea eax, [0x4a31a1]
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.00451fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046b0d0
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea eax, [0x4a318e]
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.00451fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046b0d0
nop
call fcn.0046eed0
jmp fcn.00408980