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

Disassembly:
push 0xffffffffffffffff
push 0x4be88c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [esp + 0xb4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0044c240
push eax
lea edx, [esp + 0xa4]
xor ebp, ebp
push edx
mov dword [esp + 0xcc], ebp
call fcn.0044c0a0
add esp, 0x10
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xc0], 1
call fcn.00444120
mov eax, dword [esp + 0xb0]
mov esi, 0x10
cmp eax, esi
jb 0x409844
mov eax, dword [esp + 0x9c]
push eax
call fcn.00442830
add esp, 4
cmp dword [esp + 0x94], esi
mov edi, 0xf
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov byte [esp + 0x9c], 0
mov byte [esp + 0xbc], 3
jb 0x409880
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00442830
add esp, 4
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebp
mov byte [esp + 0x84], 0
call fcn.004a2c80
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0x30]
cmp ecx, ebp
sete bl
cmp eax, esi
jb 0x4098c1
mov eax, dword [esp + 0x1c]
push eax
call fcn.00442830
add esp, 4
test bl, bl
je 0x4098d9
cmp dword [esp + 0x54], esi
jb 0x409b94
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x409b8c
cmp dword [esp + 0x38], ebp
jne 0x4098e7
mov dword [esp + 0x38], 0x1f90
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
call fcn.004a2c80
mov edx, 0x4e9334
mov byte [esp + 0xbc], 5
lea ecx, [edx + 1]
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x409905
sub edx, ecx
push edx
push 0x4e9334
push edx
push ebp
mov ecx, eax
call fcn.004011e0
mov ebx, eax
mov eax, dword [esp + 0x30]
neg ebx
sbb bl, bl
inc bl
cmp eax, esi
mov byte [esp + 0xbc], 3
jb 0x409942
mov eax, dword [esp + 0x1c]
push eax
call fcn.00442830
add esp, 4
test bl, bl
je 0x4099cf
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004a2c80
push 0xffffffffffffffff
push 7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xc8], 6
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
call fcn.00401a00
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xc8], 7
call fcn.00401a00
cmp dword [esp + 0x30], esi
jb 0x4099a7
mov eax, dword [esp + 0x1c]
push eax
call fcn.00442830
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
mov byte [esp + 0xbc], 3
jb 0x4099cf
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00442830
add esp, 4
call fcn.00409730
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.00442890
mov byte [esp + 0xbc], 8
call fcn.00409730
mov edx, dword [eax + 0x50]
add eax, 0x4c
cmp edx, ebp
jne 0x4099fa
xor ebx, ebx
jmp 0x409a12
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
xor esi, esi
mov dword [esp + 0x10], ebx
xor edi, edi
lea ebx, [ebx]
call fcn.00409730
mov edx, dword [eax + 0x50]
add eax, 0x4c
cmp edx, ebp
je 0x409a74
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x409a74
call fcn.00409730
add eax, 0x4c
mov eax, dword [eax + 4]
lea edx, [esp + 0x38]
add eax, edi
push edx
push eax
call fcn.00443ea0
add esp, 8
test al, al
jne 0x409a6e
inc esi
add edi, 0x24
jmp 0x409a20
mov ebx, esi
mov dword [esp + 0x10], ebx
call fcn.00409730
mov edx, dword [eax + 0x50]
add eax, 0x4c
cmp edx, ebp
jne 0x409a87
xor edx, edx
jmp 0x409a9d
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ebx, edx
jne 0x409b0e
mov ecx, dword [esp + 0x38]
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x44]
mov dword [esp + 0x60], ecx
push edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x6c], 0
call fcn.00401a00
mov dword [esp + 0x78], 0x14
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xc0], 9
call fcn.00409730
mov ecx, eax
add ecx, 0x4c
call fcn.00409510
cmp dword [esp + 0x74], 0x10
mov byte [esp + 0xbc], 8
jb 0x409b0e
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00442830
add esp, 4
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x28]
add esi, 0x24
cmp edx, ebp
jne 0x409b20
xor ecx, ecx
jmp 0x409b28
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 2
cmp edx, ebp
je 0x409b59
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x409b59
mov edx, dword [esp + 0x14]
mov edi, dword [esi + 8]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 1
push edi
call fcn.00443e70
add esp, 0x14
add edi, 4
mov dword [esi + 8], edi
jmp 0x409b6f
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [ecx], eax
mov ecx, esi
call fcn.00406b70
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xbc], 3
call fcn.004428a0
cmp dword [esp + 0x54], 0x10
jb 0x409b94
mov edx, dword [esp + 0x40]
push edx
call fcn.00442830
add esp, 4
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 4