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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x417732
sub esp, 0x4c
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 0x41765b
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41765b
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41765b
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4171f1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4171f1
mov dword [eax + 8], 0xfffffade
jmp 0x4171f1
inc dword [0xa7e8bc]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00417050
movzx eax, byte [esp + 0x10]
test al, al
jne 0x41764a
xor eax, eax
test al, al
jne 0x4171eb
nop
lea eax, [0xa7f1e0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043a370
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.00417050
movzx eax, byte [esp + 0x10]
test al, al
je 0x41762a
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0xa7f1f4], al
mov eax, dword [0xa919dc]
cmp eax, 1
jne 0x417614
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0xa3f164]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043a370
movzx eax, byte [0xa89548]
test al, al
jne 0x4175a3
mov eax, dword [0xa7e620]
mov dword [esp + 0x40], eax
mov ecx, dword [0xa7e624]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4172fe
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x417333
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 [0xa830ec]
cmp eax, ecx
je 0x4172ef
jmp 0x41767d
call fcn.004188e0
lea eax, [0x7c3c18]
mov dword [esp], eax
call fcn.0044fb20
mov eax, dword [0xa91678]
mov dword [0xa7f220], eax
mov dword [0xa7f224], eax
mov ecx, dword [0xa91680]
cmp eax, ecx
jle 0x417368
mov dword [0xa7f220], ecx
lea eax, [0xa94d00]
mov dword [esp], eax
call fcn.00402110
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0xa7f258], eax
mov dword [0xa7f25c], ecx
mov dword [0xa7f248], 0
mov dword [0xa7f24c], 0
mov eax, dword [esp + 0x14]
mov dword [0xa7f1f0], eax
call fcn.004523b0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [0xa7f228], ecx
mov dword [0xa7f22c], eax
mov dword [0xa7f250], ecx
mov dword [0xa7f254], eax
movzx eax, byte [0xa89548]
test al, al
jne 0x417554
lea eax, [0x7c3cf4]
mov dword [esp], eax
call fcn.0044fb20
lea eax, [0x7c3c1c]
mov dword [esp], eax
call fcn.0044fb20
call fcn.004197e0
inc dword [0xa7f21c]
lea eax, [0xa91d20]
mov dword [esp], eax
call fcn.00415870
mov eax, dword [0xa9376c]
mov ecx, dword [0xa93768]
mov dword [0xa7f270], ecx
mov dword [0xa7f274], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417546
nop
lea eax, [0xa91674]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [0xa91674]
cmp eax, 1
jne 0x41753b
mov eax, 1
mov byte [0xa918d4], al
test al, al
je 0x41752f
mov eax, 1
mov byte [0xa918d0], al
nop
mov dword [0xa7f1b8], 0xffffffff
mov dword [0xa7f1c4], 0xffffffff
call fcn.0041a8d0
call fcn.0041de90
lea eax, [0xa91668]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0xa91d50], ecx
mov dword [0xa91d54], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x44cd90]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0044fb20
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x41751e
lea eax, [0xa7f1e0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043a680
add esp, 0x4c
ret
nop
lea eax, [0x7c3c2c]
mov dword [esp], eax
call fcn.0044fac0
jmp 0x4174ff
movzx eax, byte [0xa918d5]
jmp 0x41747a
cmp eax, 2
sete al
jmp 0x417467
mov byte [esp], 0
call fcn.00436950
jmp 0x41743c
nop
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.00444e00
jmp 0x4173e3
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xa8957c]
mov ecx, dword [0xa89578]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
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.00444e00
mov eax, dword [0xa89578]
add eax, 1
mov ecx, dword [0xa8957c]
mov dword [0xa89578], eax
adc ecx, 0
mov dword [0xa8957c], ecx
jmp 0x4172d7
cmp eax, 2
jne 0x417623
mov eax, 2
jmp 0x4172a1
xor eax, eax
jmp 0x4172a1
nop
lea eax, [0xa7f1e0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043a680
add esp, 0x4c
ret
call fcn.0041f190
cmp dword [esp], 0xffffffff
setne al
jmp 0x417224
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x417679
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417679
mov dword [eax + 8], 0xfffffade
add esp, 0x4c
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.0042c290
lea eax, [0x7a7faa]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0042cb30
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042c970
lea eax, [0x7a74fd]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042cb30
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042c840
lea eax, [0x7a865f]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0042cb30
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042c840
call fcn.0042c4b0
call fcn.0042c300
lea eax, [0x7abbfb]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042b460
nop
call fcn.0044fc40
jmp fcn.00417170