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

Disassembly:
mov ecx, dword [0x587cec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x409b14
sub esp, 0xbc
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
call fcn.00471240
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004578c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0045d8b0
mov eax, dword [esp + 8]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x28
call fcn.00403b00
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x409ad1
lea ecx, [eax - 1]
mov edx, dword [esp + 0x60]
cmp edx, ecx
jb 0x409acc
lea ebx, [eax + 2]
cmp edx, ebx
jg 0x409886
mov dword [esp], 0
lea eax, [0x4e0bac]
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.00455000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046f470
jb 0x409ac5
cmp ebx, ecx
jb 0x409abc
mov ebp, dword [esp + 0x68]
lea esi, [eax + ebp - 1]
cmp word [esi], 0x282e
jne 0x409848
lea esi, [eax + ebp + 1]
cmp byte [esi], 0x2a
jne 0x409848
mov dword [esp + 0x5c], ecx
sub edx, eax
mov dword [esp + 0x64], edx
lea eax, [edx - 2]
mov dword [esp + 0x60], eax
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, ebx
add eax, ebp
mov dword [esp + 0x70], eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov byte [esp + 8], 0x29
call fcn.00403b00
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x409a7a
lea ecx, [eax + 2]
mov edx, dword [esp + 0x60]
cmp ecx, edx
jl 0x409932
mov dword [esp], 0
lea eax, [0x4e04ae]
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.00455000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046f470
ja 0x409a75
cmp eax, ecx
ja 0x409a70
mov ebx, dword [esp + 0x70]
lea ebp, [ebx + eax]
cmp word [ebp], 0x2e29
jne 0x4098f4
mov edx, dword [esp + 0x64]
sub edx, eax
add edx, 0xfffffffc
mov ebp, edx
neg edx
sar edx, 0x1f
and edx, ecx
lea ecx, [ebx + edx]
mov dword [esp + 0x6c], ecx
lea edi, [esp + 0x74]
mov edx, eax
xor eax, eax
call fcn.00474cce
mov dword [esp + 0x78], 0xd
lea ecx, [0x4d85c2]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x88], 1
lea ecx, [0x4d6d36]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x98], 1
mov dword [esp + 0x94], ecx
mov dword [esp + 0xa0], ebp
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa8], 0x13
lea ecx, [0x4d9d3b]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb8], 8
lea ecx, [0x4d755b]
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.00454df0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0046af80
mov ecx, dword [esp + 8]
lea edx, [0x4c7460]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0046f0e0
call fcn.00474b80
call fcn.00474b40
lea eax, [esp + 0x1c]
mov dword [esp], eax
lea eax, [0x4d9d28]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
call fcn.00455000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046f470
mov eax, ecx
mov ecx, ebx
call fcn.00474b80
mov ecx, ebx
call fcn.00474b40
call fcn.00474b40
lea eax, [esp + 0x3c]
mov dword [esp], eax
lea eax, [0x4d9d15]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x13
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
call fcn.00455000
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0046f470
nop
call fcn.004736a0
jmp fcn.004097b0