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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4179bb
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x4178e4
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4178e4
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4178e4
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4173e1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4173e1
mov dword [eax + 8], 0xfffffade
jmp 0x4173e1
inc dword [0xa810cc]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.00417230
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4178d3
xor eax, eax
test al, al
jne 0x4173db
nop
lea eax, [0xa97fe0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00441320
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.00417230
movzx eax, byte [esp + 0x10]
test al, al
je 0x4178b3
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0xa97ff4], al
mov eax, dword [0xa9781c]
cmp eax, 1
jne 0x41789d
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0xa3d1a8]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00441320
nop
lea eax, [0xa3d1c8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00441320
movzx eax, byte [0xa8f228]
test al, al
jne 0x41782c
mov eax, dword [0xa80cd8]
mov dword [esp + 0x44], eax
mov ecx, dword [0xa80cdc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x417512
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jle 0x417547
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x358
mov dword [esp], ebx
call fcn.00401f10
mov eax, dword [esp + 4]
mov ecx, dword [0xa889cc]
cmp eax, ecx
je 0x417503
jmp 0x417906
call fcn.00418c10
lea eax, [0x80cd04]
mov dword [esp], eax
call fcn.0045ad70
mov eax, dword [0xa973b0]
mov dword [0xa98020], eax
mov dword [0xa98024], eax
mov ecx, dword [0xa973c4]
cmp eax, ecx
jle 0x41757c
mov dword [0xa98020], ecx
lea eax, [0xa9aec0]
mov dword [esp], eax
call fcn.00402100
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0xa98058], eax
mov dword [0xa9805c], ecx
mov dword [0xa98048], 0
mov dword [0xa9804c], 0
mov eax, dword [esp + 0x14]
mov dword [0xa97ff0], eax
call fcn.0045d3f0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [0xa98028], eax
mov dword [0xa9802c], ecx
mov dword [0xa98050], eax
mov dword [0xa98054], ecx
movzx eax, byte [0xa8f228]
test al, al
jne 0x4177de
lea eax, [0x80cdec]
mov dword [esp], eax
call fcn.0045ad70
lea eax, [0x80cd08]
mov dword [esp], eax
call fcn.0045ad70
call fcn.00419a80
inc dword [0xa9801c]
lea eax, [0xa97c40]
mov dword [esp], eax
call fcn.00415a00
mov eax, dword [0xa99928]
mov ecx, dword [0xa9992c]
mov dword [0xa98070], eax
mov dword [0xa98074], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4177d0
nop
lea eax, [0xa973ac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020e0
mov eax, dword [0xa973ac]
cmp eax, 1
jne 0x4177c5
mov eax, 1
mov byte [0xa976a4], al
test al, al
je 0x4177b9
mov eax, 1
mov byte [0xa976a0], al
nop
mov dword [0xa97fb8], 0xffffffff
mov dword [0xa97fc4], 0xffffffff
call fcn.00419ef0
call fcn.0041db00
lea eax, [0xa973a0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0xa97c70], eax
mov dword [0xa97c74], ecx
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x453f50]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045ad70
nop
lea eax, [0xa3d1c8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00441630
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4177b1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4177a9
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417798
lea eax, [0xa97fe0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00441630
add esp, 0x50
ret
nop
lea eax, [0x80cd1c]
mov dword [esp], eax
call fcn.0045ad10
jmp 0x417779
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417777
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417777
movzx eax, byte [0xa976a5]
jmp 0x41768e
cmp eax, 2
sete al
jmp 0x41767b
mov byte [esp], 0
call fcn.0043e040
jmp 0x417650
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044c0a0
jmp 0x4175f7
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xa8f258]
mov ecx, dword [0xa8f25c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044c0a0
mov eax, dword [0xa8f258]
add eax, 1
mov ecx, dword [0xa8f25c]
mov dword [0xa8f258], eax
adc ecx, 0
mov dword [0xa8f25c], ecx
jmp 0x4174eb
cmp eax, 2
jne 0x4178ac
mov eax, 2
jmp 0x417491
xor eax, eax
jmp 0x417491
nop
lea eax, [0xa97fe0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00441630
add esp, 0x50
ret
call fcn.00420100
cmp dword [esp], 0xffffffff
setne al
jmp 0x417414
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x417902
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417902
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.00432cf0
lea eax, [0x7e9601]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00433590
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.004333c0
lea eax, [0x7e8138]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00433590
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00433290
lea eax, [0x7ea248]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00433590
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.00433290
call fcn.00432f10
call fcn.00432d60
lea eax, [0x7efd26]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00431440
nop
call fcn.0045ae90
jmp fcn.00417360