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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4178f8
sub esp, 0x50
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 0x41734f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41734f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41734f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x417377
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417377
mov dword [eax + 8], 0xfffffade
jmp 0x417377
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41736d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41736d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0xd31c4c]
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.00417180
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4173a8
xor eax, eax
jmp 0x4173b4
call fcn.00423550
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x417371
lea eax, [0xd323f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0044b870
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.00417180
movzx eax, byte [esp + 0x10]
test al, al
je 0x417515
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0xd3240c], al
mov eax, dword [0xd5a278]
cmp eax, 1
jne 0x41742e
mov eax, 1
jmp 0x41743c
cmp eax, 2
jne 0x41743a
mov eax, 2
jmp 0x41743c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0xcd8ce0]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0044b870
lea eax, [0xcd8d00]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0044b870
movzx eax, byte [0xd3e268]
test al, al
je 0x4174fd
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xd3e298]
mov ecx, dword [0xd3e29c]
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.00458030
mov eax, dword [0xd3e298]
add eax, 1
mov ecx, dword [0xd3e29c]
mov dword [0xd3e298], eax
adc ecx, 0
mov dword [0xd3e29c], ecx
mov eax, dword [0xd31418]
mov dword [esp + 0x44], eax
mov ecx, dword [0xd3141c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x417544
nop
lea eax, [0xd323f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044bb80
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 0x417579
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.004020c0
mov eax, dword [esp + 4]
mov ecx, dword [0xd39cb0]
cmp ecx, eax
je 0x417535
jmp 0x417841
call fcn.004192b0
lea eax, [0x98c69c]
mov dword [esp], eax
call fcn.00466160
mov eax, dword [0xd59cfc]
mov dword [0xd32438], eax
mov dword [0xd3243c], eax
mov ecx, dword [0xd59d18]
cmp ecx, eax
jge 0x4175ae
mov dword [0xd32438], ecx
lea eax, [0xd5acf0]
mov dword [esp], eax
call fcn.00402300
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xd32474], eax
mov dword [0xd32470], ecx
mov dword [0xd32460], 0
mov dword [0xd32464], 0
mov eax, dword [esp + 0x14]
mov dword [0xd32408], eax
call fcn.004685c0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0xd32444], eax
mov dword [0xd32440], ecx
mov dword [0xd3246c], eax
mov dword [0xd32468], ecx
movzx eax, byte [0xd3e268]
test al, al
je 0x41766f
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.00458030
lea eax, [0x98c76c]
mov dword [esp], eax
call fcn.00466160
lea eax, [0x98c6a0]
mov dword [esp], eax
call fcn.00466160
call fcn.0041a2c0
inc dword [0xd32434]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0xd59cfc]
lea ebx, [0xd5ac80]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041e5f0
mov eax, dword [0xd5ace0]
mov ecx, dword [0xd5ace4]
mov dword [0xd32488], eax
mov dword [0xd3248c], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4176e7
mov byte [esp], 0
call fcn.004469a0
lea eax, [0xd59cf8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004022d0
mov eax, dword [0xd59cf8]
cmp eax, 1
jne 0x41770f
mov eax, 1
jmp 0x417715
cmp eax, 2
sete al
mov byte [0xd5a084], al
test al, al
je 0x417726
mov eax, 1
jmp 0x41772d
movzx eax, byte [0xd5a085]
mov byte [0xd5a080], al
nop
mov dword [0xd323b8], 0xffffffff
mov dword [0xd323c4], 0xffffffff
call fcn.0041a8b0
call fcn.0041e500
lea eax, [0xd59cf0]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004022d0
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 + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x417910]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00466160
lea eax, [0xcd8d00]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044bb80
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41780b
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417803
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417811
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417811
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417821
lea eax, [0x98c6b0]
mov dword [esp], eax
call fcn.00466100
nop
lea eax, [0xd323f8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0044bb80
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.00439d50
lea eax, [0x95e0b7]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0043a630
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0043a430
lea eax, [0x95caf2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0043a630
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.0043a2d0
lea eax, [0x95efe5]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0043a630
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0043a2d0
call fcn.00439f70
call fcn.00439dc0
lea eax, [0x965c67]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00438150
nop
call fcn.00466270
jmp fcn.004172e0