Function at 0x4cfc90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657bbd
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x438], 0
push 8
mov dword [ebp - 0x43c], edi
mov dword [edi], 0
call fcn.00545b74
xor ecx, ecx
mov dword [edi], eax
mov dword [edi + 4], 0
add esp, 4
mov dword [edi + 8], 3
mov word [eax], cx
push 0x208
push ecx
lea eax, [ebp - 0x424]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x438], 1
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x424]
mov ecx, edi
push eax
call fcn.0049f700
mov byte [ebp - 0x425], 0
mov edx, 2
nop dword [eax + eax]
mov ebx, dword [edi + 4]
xor ecx, ecx
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ecx, eax
mov dword [ebp - 0x430], ebx
mov eax, dword [edi + 4]
add esp, 4
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x42c], ebx
lea eax, [eax*2 + 2]
push eax
push dword [edi]
push ecx
call fcn.005e0850
add esp, 0xc
mov dword [ebp - 4], 1
call fcn.004cd100
push 0x208
mov esi, eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push str.LS_PWD__d
push eax
call fcn.00485390
xor esi, esi
add esp, 0xc
cmp word [ebp - 0x21c], si
je 0x4cfe12
nop dword [eax + eax]
inc esi
cmp word [ebp + esi*2 - 0x21c], 0
jne 0x4cfde0
test esi, esi
je 0x4cfe12
lea ecx, [esi + ebx]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x434]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov ebx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x434]
lea ecx, [eax + ebx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.005e0850
add esp, 0xc
add ebx, esi
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x430], ebx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cfeab
lea eax, [ebp - 0x434]
mov byte [ebp - 0x425], 1
cmp eax, edi
je 0x4cfeab
cmp ebx, dword [edi + 8]
jbe 0x4cfe95
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov esi, eax
push dword [edi]
call fcn.00545b61
mov dword [edi], esi
add esp, 4
mov esi, dword [ebp - 0x434]
mov dword [edi + 8], ebx
lea eax, [ebx*2 + 2]
mov dword [edi + 4], ebx
push eax
push esi
push dword [edi]
call fcn.005e0850
add esp, 0xc
push esi
mov byte [ebp - 4], 0
call fcn.00545b61
add esp, 4
mov edx, 2
cmp byte [ebp - 0x425], 0
je 0x4cfd50
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
jne 0x4cfee7
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
mov ecx, edi
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov edx, dword [edi + 4]
mov eax, 0x5c
mov ecx, dword [edi]
mov word [ecx + edx*2], ax
inc edx
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, edi
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4