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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4181fb
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 0x418124
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x418124
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x418124
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x417c21
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417c21
mov dword [eax + 8], 0xfffffade
jmp 0x417c21
inc dword [0xb3b1bc]
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.00417a70
movzx eax, byte [esp + 0x10]
test al, al
jne 0x418113
xor eax, eax
test al, al
jne 0x417c1b
nop
lea eax, [0xb53120]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00444e30
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.00417a70
movzx eax, byte [esp + 0x10]
test al, al
je 0x4180f3
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0xb53134], al
mov eax, dword [0xb5295c]
cmp eax, 1
jne 0x4180dd
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0xaf5228]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00444e30
nop
lea eax, [0xaf5248]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00444e30
movzx eax, byte [0xb4a308]
test al, al
jne 0x41806c
mov eax, dword [0xb3ad28]
mov dword [esp + 0x44], eax
mov ecx, dword [0xb3ad2c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x417d52
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jle 0x417d87
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 [0xb43aac]
cmp eax, ecx
je 0x417d43
jmp 0x418146
call fcn.00419450
lea eax, [0x8875e0]
mov dword [esp], eax
call fcn.00460a90
mov eax, dword [0xb52498]
mov dword [0xb53160], eax
mov dword [0xb53164], eax
mov ecx, dword [0xb524ac]
cmp eax, ecx
jle 0x417dbc
mov dword [0xb53160], ecx
lea eax, [0xb56000]
mov dword [esp], eax
call fcn.00402100
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0xb53198], eax
mov dword [0xb5319c], ecx
mov dword [0xb53188], 0
mov dword [0xb5318c], 0
mov eax, dword [esp + 0x14]
mov dword [0xb53130], eax
call fcn.00463140
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [0xb53168], eax
mov dword [0xb5316c], ecx
mov dword [0xb53190], eax
mov dword [0xb53194], ecx
movzx eax, byte [0xb4a308]
test al, al
jne 0x41801e
lea eax, [0x8876cc]
mov dword [esp], eax
call fcn.00460a90
lea eax, [0x8875e4]
mov dword [esp], eax
call fcn.00460a90
call fcn.0041a2c0
inc dword [0xb5315c]
lea eax, [0xb52d80]
mov dword [esp], eax
call fcn.00416240
mov eax, dword [0xb54a68]
mov ecx, dword [0xb54a6c]
mov dword [0xb531b0], eax
mov dword [0xb531b4], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418010
nop
lea eax, [0xb52494]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020e0
mov eax, dword [0xb52494]
cmp eax, 1
jne 0x418005
mov eax, 1
mov byte [0xb527f4], al
test al, al
je 0x417ff9
mov eax, 1
mov byte [0xb527f0], al
nop
mov dword [0xb530f8], 0xffffffff
mov dword [0xb53104], 0xffffffff
call fcn.0041a730
call fcn.0041e340
lea eax, [0xb52488]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0xb52db0], eax
mov dword [0xb52db4], 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, [0x4594a0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00460a90
nop
lea eax, [0xaf5248]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445140
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 0x417ff1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x417fe9
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x417fd8
lea eax, [0xb53120]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445140
add esp, 0x50
ret
nop
lea eax, [0x8875f8]
mov dword [esp], eax
call fcn.00460a30
jmp 0x417fb9
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417fb7
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x417fb7
movzx eax, byte [0xb527f5]
jmp 0x417ece
cmp eax, 2
sete al
jmp 0x417ebb
mov byte [esp], 0
call fcn.00440890
jmp 0x417e90
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.00450990
jmp 0x417e37
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0xb4a338]
mov ecx, dword [0xb4a33c]
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.00450990
mov eax, dword [0xb4a338]
add eax, 1
mov ecx, dword [0xb4a33c]
mov dword [0xb4a338], eax
adc ecx, 0
mov dword [0xb4a33c], ecx
jmp 0x417d2b
cmp eax, 2
jne 0x4180ec
mov eax, 2
jmp 0x417cd1
xor eax, eax
jmp 0x417cd1
nop
lea eax, [0xb53120]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00445140
add esp, 0x50
ret
call fcn.00420940
cmp dword [esp], 0xffffffff
setne al
jmp 0x417c54
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x418142
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x418142
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.00434e00
lea eax, [0x8606c6]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.004356a0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.004354d0
lea eax, [0x85f0cd]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.004356a0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004353a0
lea eax, [0x86138e]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004356a0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.004353a0
call fcn.00435020
call fcn.00434e70
lea eax, [0x867587]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00433550
nop
call fcn.00460bb0
jmp fcn.00417ba0