Function at 0x585060
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d35b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov ecx, esi
call fcn.005b00f0
cmp eax, 0x10e2
je 0x585129
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi]
mov ebx, dword [edi]
lea edx, [ecx - 0x10]
sub ebx, 0x10
cmp edx, ebx
je 0x5850e3
cmp dword [ebx + 0xc], 0
jl 0x5850d8
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x5850d8
push edx
call fcn.004035b0
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.00402670
lea eax, [esi + 0x10]
mov dword [edi], eax
jmp 0x5850e3
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00403620
mov eax, 0x128e
mov dword [edi + 4], 0xffffffff
mov word [edi + 0x18], ax
xor eax, eax
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov byte [edi + 0x1a], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x58515b
push 0x62e4b0
lea eax, [ebp - 0x1c]
mov dword [0x6441b4], 0x9ca05
push eax
mov dword [ebp - 0x1c], 0xd66
call fcn.005479aa
mov edi, dword [ebp + 0xc]
push edi
push 3
push ecx
push 0
call fcn.005832c0
test al, al
jne 0x585182
push 0x62e4b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xd6b
push eax
call fcn.005479aa
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_80]
mov ecx, dword [0x643bcc]
test ecx, ecx
je 0x5851b9
xor eax, eax
cmp edi, 0x9fbf1
push 2
push dword [ebp - 0x18]
setne al
dec eax
and eax, 4
push dword [eax + 0x644028]
call ecx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x18]
push 0x10ed
push eax
mov edx, dword [ecx]
call dword [edx + 0x68]
push dword [ebp - 0x18]
call dword [0x643b88]
test al, al
lea eax, [ebp - 0x18]
push eax
jne 0x5851fb
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
push 0x62e4b0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0xd79
push eax
call fcn.005479aa
call dword [sym.imp.SUCMLIB.dll_Ordinal_82]
lea eax, [ebp - 0x14]
mov byte [ebp + 0x13], 0xff
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.SUCMLIB.dll_Ordinal_73]
mov ecx, dword [ebp - 0x14]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea eax, [ebp + 0x13]
push eax
push 1
push dword [ebp - 0x14]
call dword [0x643b68]
test al, al
jne 0x585252
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
push 0x62e4b0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xd88
push eax
call fcn.005479aa
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.00403220
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
imul eax, dword [edi + 8]
mov dword [esi + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov edi, eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
imul eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esi + 0xc], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], eax
mov eax, dword [ecx]
call dword [eax + 4]
fld qword [eax + 0x10]
call fcn.005451d0
mov dword [esi + 0x14], eax
mov eax, 0x128e
mov word [esi + 0x18], ax
lea eax, [ebp - 0x14]
push eax
mov byte [esi + 0x1a], 0
call dword [sym.imp.SUCMLIB.dll_Ordinal_76]
jmp 0x585300
sub esp, 8
mov dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
call fcn.00583250
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10