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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4185b8
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 0x41800f
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x41800f
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x41800f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x418037
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x418037
mov dword [eax + 8], 0xfffffade
jmp 0x418037
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x41802d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41802d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0xa7928c]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.00417e40
movzx eax, byte [esp + 0x10]
test al, al
jne 0x418068
xor eax, eax
jmp 0x418074
call fcn.00424c50
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x418031
lea eax, [0xa79638]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449490
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.00417e40
movzx eax, byte [esp + 0x10]
test al, al
je 0x4181d5
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0xa7964c], al
mov eax, dword [0xaa01f8]
cmp eax, 1
jne 0x4180ee
mov eax, 1
jmp 0x4180fc
cmp eax, 2
jne 0x4180fa
mov eax, 2
jmp 0x4180fc
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x79a244]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449490
lea eax, [0x79a264]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449490
movzx eax, byte [0xa842a8]
test al, al
je 0x4181bd
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xa842d8]
mov ecx, dword [0xa842dc]
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.00457420
mov eax, dword [0xa842d8]
add eax, 1
mov ecx, dword [0xa842dc]
mov dword [0xa842d8], eax
adc ecx, 0
mov dword [0xa842dc], ecx
mov eax, dword [0xa78e90]
mov dword [esp + 0x44], eax
mov ecx, dword [0xa78e94]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x418204
nop
lea eax, [0xa79638]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497a0
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x418239
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, 0x24c
mov dword [esp], ebx
call fcn.004026a0
mov eax, dword [esp + 4]
mov ecx, dword [0xa7fcf0]
cmp ecx, eax
je 0x4181f5
jmp 0x418501
call fcn.00419fd0
lea eax, [0x852774]
mov dword [esp], eax
call fcn.004633d0
mov eax, dword [0xa9fd7c]
mov dword [0xa79678], eax
mov dword [0xa7967c], eax
mov ecx, dword [0xa9fd98]
cmp ecx, eax
jge 0x41826e
mov dword [0xa79678], ecx
lea eax, [0xaa0970]
mov dword [esp], eax
call fcn.004028e0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xa796b4], eax
mov dword [0xa796b0], ecx
mov dword [0xa796a0], 0
mov dword [0xa796a4], 0
mov eax, dword [esp + 0x14]
mov dword [0xa79648], eax
call fcn.00465790
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0xa79684], eax
mov dword [0xa79680], ecx
mov dword [0xa796ac], eax
mov dword [0xa796a8], ecx
movzx eax, byte [0xa842a8]
test al, al
je 0x41832f
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.00457420
lea eax, [0x852838]
mov dword [esp], eax
call fcn.004633d0
lea eax, [0x852778]
mov dword [esp], eax
call fcn.004633d0
call fcn.0041aff0
inc dword [0xa79674]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0xa9fd7c]
lea ebx, [0xaa0900]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041f310
mov eax, dword [0xaa0960]
mov ecx, dword [0xaa0964]
mov dword [0xa796c8], eax
mov dword [0xa796cc], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4183a7
mov byte [esp], 0
call fcn.00445740
lea eax, [0xa9fd78]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004028b0
mov eax, dword [0xa9fd78]
cmp eax, 1
jne 0x4183cf
mov eax, 1
jmp 0x4183d5
cmp eax, 2
sete al
mov byte [0xaa0034], al
test al, al
je 0x4183e6
mov eax, 1
jmp 0x4183ed
movzx eax, byte [0xaa0035]
mov byte [0xaa0030], al
nop
mov dword [0xa795f8], 0xffffffff
mov dword [0xa79604], 0xffffffff
call fcn.0041b5e0
call fcn.0041f220
lea eax, [0xa9fd70]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004028b0
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, [0x4185d0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.004633d0
lea eax, [0x79a264]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497a0
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 0x4184cb
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4184c3
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x4184d1
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x4184d1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4184e1
lea eax, [0x852784]
mov dword [esp], eax
call fcn.00463370
nop
lea eax, [0xa79638]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497a0
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.00438dd0
lea eax, [0x837ad4]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439a00
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439800
lea eax, [0x83708f]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439a00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004396a0
lea eax, [0x8381c4]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439a00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004396a0
call fcn.00438ff0
call fcn.00438e40
lea eax, [0x83b50f]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004372c0
nop
call fcn.004634e0
jmp fcn.00417fa0