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

Disassembly:
push 0xffffffffffffffff
push 0x51a050
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x80]
mov dword [esp + 0x78], ebx
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x4174d7
mov esi, dword [edi + 8]
mov eax, esi
sub eax, ecx
sar eax, 5
jne 0x4174f3
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.00418510
mov eax, dword [esp + 0x28]
cmp eax, ebx
jmp 0x4177a1
and dword [esp + 0x60], 0xfc000000
and byte [esp + 0x64], 0xf0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], 0xffffffff
mov byte [esp + 0x78], 1
mov eax, dword [edi + 0x8c]
imul dword [esp + 0x88]
mov ebp, eax
add ebp, dword [esp + 0x8c]
mov ebx, edx
adc ebx, dword [esp + 0x90]
mov dword [esp + 0x54], ebp
or ebx, 0xffff0000
cmp ecx, esi
mov dword [esp + 0x58], ebx
jbe 0x41754c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x88], eax
jbe 0x417561
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x88]
mov dword [esp + 0x90], eax
push eax
lea ecx, [esp + 0x50]
mov eax, esi
call fcn.00419490
add esp, 4
test edi, edi
mov esi, eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], esi
jne 0x417598
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
ja 0x4175a3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x8c]
lea edi, [esi - 0x20]
cmp edi, dword [ecx + 8]
jb 0x4175b8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.00515a40
mov esi, eax
mov eax, edx
mov dword [esp + 0x88], eax
mov eax, ebp
mov edx, ebx
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.00515a40
mov ebp, eax
sub ebp, esi
mov esi, dword [esp + 0x88]
mov ebx, edx
sbb ebx, esi
cmp dword [esp + 0x94], 0
jle 0x417770
jmp 0x417610
mov esi, dword [esp + 0x8c]
cmp edi, dword [esi + 8]
jb 0x417622
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.00515a40
cmp ebx, edx
jg 0x417731
jl 0x417648
cmp ebp, eax
jae 0x417731
mov esi, dword [esp + 0x80]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x88], eax
jbe 0x417664
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esp + 0x8c], esi
je 0x417673
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x8c]
mov edx, edi
sub edx, dword [esp + 0x88]
sar edx, 5
cmp edi, dword [eax + 8]
mov dword [esp + 0x34], edx
jb 0x417695
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, edi
mov ecx, esi
call fcn.00417fe0
mov ecx, dword [esp + 0x8c]
add eax, ebp
adc edx, ebx
cmp edi, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x40], edx
cdq
mov esi, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
jb 0x4176ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.00515a40
sub eax, ebp
sbb edx, ebx
cmp esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
jg 0x417700
jl 0x4176fa
cmp dword [esp + 0x14], eax
jae 0x417700
lea ecx, [esp + 0x14]
jmp 0x417704
lea ecx, [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub dword [esp + 0x94], eax
lea edx, [esp + 0x34]
add ebp, eax
push edx
lea esi, [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
adc ebx, ecx
call fcn.00418620
mov esi, dword [esp + 0x8c]
cmp edi, dword [esi + 8]
jb 0x41773c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
shld edx, eax, 0x10
shl eax, 0x10
mov cl, 0x10
call fcn.00515a40
sub ebp, eax
sbb ebx, edx
cmp edi, dword [esi + 8]
jb 0x41775f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 0x20
cmp dword [esp + 0x94], 0
jg 0x417610
mov esi, dword [esp + 0x84]
push esi
lea ecx, [esp + 0x28]
call fcn.00418510
mov ecx, dword [esp + 0x60]
and ecx, 0x3ff0000
xor eax, eax
or eax, ecx
jne 0x41779b
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4177ac
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x18