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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ad5f
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x5ba870]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [edi + 0x34]
xor ebx, ebx
cmp eax, ebx
jne 0x418344
call fcn.00407095
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
and eax, 0xffff0fff
cmp eax, 1
je 0x417fc8
cmp eax, 2
jne 0x4182d5
cmp dword [edi + 0x30], ebx
jne 0x4182d5
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x70], 0x5958d8
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0xa
lea esi, [esp + 0x70]
mov dword [esp + 0x98], ebx
call fcn.004192a9
lea ecx, [esp + 0x3c]
call fcn.00432f7a
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x9c], 1
call fcn.00417bb6
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0x104
jge 0x418235
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00433012
cmp eax, ebx
je 0x418235
lea ecx, [esp + 0x3c]
call fcn.00432c63
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [eax + 0x38]
test eax, eax
je 0x4180ae
lea ecx, [esp + 0x3c]
call fcn.00432f3b
test eax, eax
jne 0x41822b
add dword [esp + 0x34], 1
push edi
lea esi, [esp + 0x40]
adc dword [esp + 0x3c], ebx
call fcn.00418e59
jmp 0x41822b
add dword [esp + 0x2c], 1
adc dword [esp + 0x30], ebx
call fcn.00427609
push eax
lea ecx, [esp + 0x58]
call fcn.0040198d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 3
call fcn.004332a2
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x9c], 4
call fcn.004074a5
mov byte [esp + 0x98], 3
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00401b3d
lea ecx, [esp + 0x3c]
call fcn.00432c9f
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x64], edx
call fcn.00432c11
sub esp, 0x18
mov esi, esp
lea eax, [esp + 0x6c]
mov dword [esp + 0x40], esp
push eax
mov ecx, esi
call fcn.00401a21
mov eax, dword [esp + 0x74]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x80]
mov dword [esi + 0x14], eax
lea esi, [esp + 0x88]
call fcn.004191ea
add dword [0x5c5fd8], 1
adc dword [0x5c5fdc], ebx
call dword [0x560450]
mov ecx, eax
sub ecx, dword [0x5c6348]
cmp ecx, 0x3e8
jb 0x418217
mov dword [0x5c6348], eax
call fcn.00427609
push eax
lea ecx, [esp + 0x14]
call fcn.0040198d
mov byte [esp + 0x98], 5
push dword [0x5c5fdc]
lea eax, [esp + 0x14]
push dword [0x5c5fd8]
push 0x595850
push eax
call fcn.0040197a
push 4
call fcn.0041f52e
add esp, 0x14
cmp eax, ebx
je 0x4181d8
mov ecx, eax
call fcn.004019b2
mov esi, eax
jmp 0x4181da
xor esi, esi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004074a5
mov eax, dword [esp + 0x14]
push esi
push 4
push 0x502
push dword [eax + 0x20]
cmp dword [0x5c12ec], ebx
je 0x418205
call dword [0x560664]
jmp 0x41820b
call dword [0x560640]
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401b3d
mov byte [esp + 0x98], 2
mov ecx, dword [esp + 0x54]
add ecx, 0xfffffff0
call fcn.00401b3d
cmp dword [esp + 0x24], ebx
jne 0x418067
lea ecx, [esp + 0x3c]
call fcn.00432b7d
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x10], ebx
jl 0x418254
jg 0x418250
cmp dword [esp + 0x2c], ebx
jbe 0x418254
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x74]
jmp 0x418268
push dword [esp + 0x10]
lea ecx, [esi + 8]
call fcn.00418f7d
mov esi, dword [esi]
cmp esi, ebx
jne 0x41825a
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x418281
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.00417a4e
push dword [esp + 0x38]
mov eax, edi
push dword [esp + 0x38]
call fcn.00417a31
mov esi, dword [esp + 0x1c]
xor edi, edi
inc edi
call fcn.00417eed
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00401b3d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x98], bl
call fcn.00432fa3
or dword [esp + 0x98], 0xffffffff
lea esi, [esp + 0x70]
mov dword [esp + 0x70], 0x5958d8
call fcn.004192a9
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 8]
and eax, 0xffff0fff
cmp eax, 1
je 0x4182eb
cmp eax, 2
je 0x4182eb
cmp eax, ebx
jne 0x41833d
cmp dword [edi + 0x34], ebx
jne 0x418344
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x41833d
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x1c], ebx
call dword [eax + 0x10]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x24], eax
jle 0x41833d
mov eax, esi
mov ecx, edi
call fcn.0041791e
cmp dword [eax + 0x34], ebx
jne 0x418322
mov dword [esp + 0x1c], eax
inc esi
cmp esi, dword [esp + 0x24]
jl 0x418310
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x41833d
push 0x258
call fcn.00417f64
jmp 0x4182fb
mov esi, edi
call fcn.00417f18
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4