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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x415a43
sub esp, 0x5c
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x41546f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41546f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41546f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415497
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x415497
mov dword [eax + 8], 0xfffffade
jmp 0x415497
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41548d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41548d
mov dword [eax + 8], 0xfffffade
add esp, 0x5c
ret
inc dword [0x5f524c]
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.00415280
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4154c8
xor eax, eax
jmp 0x4154d4
call fcn.004234b0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x415491
lea eax, [0x5f5598]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00447f00
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.00415280
movzx eax, byte [esp + 0x10]
test al, al
je 0x415635
mov eax, dword [esp + 0x60]
cmp eax, 2
sete cl
mov byte [0x5f55ac], cl
mov ecx, dword [0x61ba98]
cmp ecx, 1
jne 0x41554e
mov ecx, 1
jmp 0x41555c
cmp ecx, 2
jne 0x41555a
mov ecx, 2
jmp 0x41555c
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea eax, [0x5dd294]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00447f00
lea eax, [0x5dd2b4]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00447f00
movzx eax, byte [0x5ffd08]
test al, al
je 0x41561d
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [0x5ffd38]
mov ecx, dword [0x5ffd3c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004537c0
mov eax, dword [0x5ffd38]
add eax, 1
mov ecx, dword [0x5ffd3c]
mov dword [0x5ffd38], eax
adc ecx, 0
mov dword [0x5ffd3c], ecx
mov eax, dword [0x5f5050]
mov dword [esp + 0x50], eax
mov ecx, dword [0x5f5054]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x415664
nop
lea eax, [0x5f5598]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448210
add esp, 0x5c
ret
mov ebx, dword [esp + 0x30]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
cmp edx, ecx
jge 0x415699
mov dword [esp + 0x30], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x48], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401f80
mov eax, dword [esp + 4]
mov ecx, dword [0x5fb760]
cmp ecx, eax
je 0x415655
jmp 0x41598c
call fcn.00417470
lea eax, [0x51f4c4]
mov dword [esp], eax
call fcn.0045eaf0
mov eax, dword [0x61b70c]
mov dword [0x5f55d8], eax
mov dword [0x5f55dc], eax
mov ecx, dword [0x61b728]
cmp ecx, eax
jge 0x4156ce
mov dword [0x5f55d8], ecx
lea eax, [0x61c060]
mov dword [esp], eax
call fcn.004021c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5f5614], eax
mov dword [0x5f5610], ecx
mov dword [0x5f5600], 0
mov dword [0x5f5604], 0
mov eax, dword [esp + 0x20]
mov dword [0x5f55a8], eax
call fcn.00460e90
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [0x5f55e4], eax
mov dword [0x5f55e0], ecx
mov dword [0x5f560c], eax
mov dword [0x5f5608], ecx
movzx eax, byte [0x5ffd08]
test al, al
je 0x41578f
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004537c0
lea eax, [0x51f588]
mov dword [esp], eax
call fcn.0045eaf0
lea eax, [0x51f4c8]
mov dword [esp], eax
call fcn.0045eaf0
call fcn.00418500
inc dword [0x5f55d4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x61b70c]
lea ebx, [0x61bfe0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.0041d7c0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [0x61bae0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00418b40
mov eax, dword [esp + 0x20]
test eax, eax
je 0x415832
mov byte [esp], 0
call fcn.00444150
lea eax, [0x61b708]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
mov eax, dword [0x61b708]
cmp eax, 1
jne 0x41585a
mov eax, 1
jmp 0x415860
cmp eax, 2
sete al
mov byte [0x61b8e4], al
test al, al
je 0x415871
mov eax, 1
jmp 0x415878
movzx eax, byte [0x61b8e5]
mov byte [0x61b8e0], al
nop
mov dword [0x5f5558], 0xffffffff
mov dword [0x5f5564], 0xffffffff
call fcn.004198d0
call fcn.0041d640
lea eax, [0x61b700]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [0x415a50]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.0045eaf0
lea eax, [0x5dd2b4]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448210
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x415956
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41594e
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41595c
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41595c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41596c
lea eax, [0x51f4d8]
mov dword [esp], eax
call fcn.0045ea90
nop
lea eax, [0x5f5598]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00448210
add esp, 0x5c
ret
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
call fcn.00437730
lea eax, [0x51379a]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438010
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00437e10
lea eax, [0x512fa5]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438010
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00437cb0
lea eax, [0x513d54]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00438010
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00437cb0
call fcn.00437950
call fcn.004377a0
lea eax, [0x5166e7]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00435f40
nop
call fcn.0045ec00
jmp fcn.00415400