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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416794
sub esp, 0x48
call fcn.00444d60
mov eax, dword [esp]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x4163b6
cmp dword [eax + 0x78], 1
jg 0x4163b6
mov eax, dword [eax + 0x74]
test eax, eax
jne 0x4163b6
call fcn.00444d80
jmp 0x4163c5
call fcn.00444d80
add esp, 0x48
ret
inc dword [0x52608c]
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
call fcn.00416240
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4163f6
xor eax, eax
jmp 0x416402
call fcn.00420bf0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4163bf
lea eax, [0x54d4ac]
mov dword [esp], eax
call fcn.00446770
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
call fcn.00416240
movzx eax, byte [esp + 0x10]
test al, al
je 0x4164b9
mov eax, dword [esp + 0x4c]
cmp eax, 2
sete al
mov byte [0x54d4c0], al
mov eax, dword [0x54cd18]
cmp eax, 1
jne 0x416463
mov eax, 1
jmp 0x416471
cmp eax, 2
jne 0x41646f
mov eax, 2
jmp 0x416471
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x513108]
mov dword [esp], ecx
call fcn.00446770
lea eax, [0x513128]
mov dword [esp], eax
call fcn.00446770
movzx eax, byte [0x5310c8]
test al, al
je 0x4164a1
call fcn.00452110
mov eax, dword [0x525fb0]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x525fb4]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4164da
lea eax, [0x54d4ac]
mov dword [esp], eax
call fcn.00446a90
add esp, 0x48
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x41650f
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x34], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.004022e0
mov eax, dword [esp + 4]
mov ecx, dword [0x52cb2c]
cmp ecx, eax
je 0x4164cb
jmp 0x4166dd
call fcn.00417a30
lea eax, [0x4b9a64]
mov dword [esp], eax
call fcn.0045c390
mov eax, dword [0x54ca98]
mov dword [0x54d4ec], eax
mov dword [0x54d4f0], eax
mov ecx, dword [0x54cab4]
cmp ecx, eax
jge 0x416544
mov dword [0x54d4ec], ecx
lea eax, [0x54d230]
mov dword [esp], eax
call fcn.004024e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x54d528], eax
mov dword [0x54d524], ecx
mov dword [0x54d514], 0
mov dword [0x54d518], 0
mov eax, dword [esp + 0x14]
mov dword [0x54d4bc], eax
call fcn.00450ff0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x54d4f8], eax
mov dword [0x54d4f4], ecx
mov dword [0x54d520], eax
mov dword [0x54d51c], ecx
movzx eax, byte [0x5310c8]
test al, al
je 0x4165c7
mov dword [esp], 1
call fcn.004521f0
lea eax, [0x4b9b20]
mov dword [esp], eax
call fcn.0045c390
lea eax, [0x4b9a68]
mov dword [esp], eax
call fcn.0045c390
call fcn.004189d0
inc dword [0x54d4e8]
lea eax, [0x54d200]
mov dword [esp], eax
call fcn.0041ca40
mov eax, dword [0x54d220]
mov ecx, dword [0x54d224]
mov dword [0x54d53c], eax
mov dword [0x54d540], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416625
mov byte [esp], 0
call fcn.004424f0
mov dword [esp], 1
call fcn.004160c0
call fcn.00417ab0
call fcn.00418f20
call fcn.0041c8a0
lea eax, [0x54ca8c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004024c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x54d278], eax
mov dword [0x54d27c], ecx
call fcn.00444d60
mov eax, dword [esp]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x4167a0]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call fcn.0045c390
lea eax, [0x513128]
mov dword [esp], eax
call fcn.00446a90
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00444d80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4166cb
call fcn.004371a0
lea eax, [0x54d4ac]
mov dword [esp], eax
call fcn.00446a90
add esp, 0x48
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.004360d0
lea eax, [0x4b1fd6]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.004369a0
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004367a0
lea eax, [0x4b19c2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00436640
lea eax, [0x4b23b2]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004369a0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00436640
call fcn.004362e0
call fcn.00436130
lea eax, [0x4b407c]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00434a60
nop
call fcn.0045c4a0
jmp fcn.00416370