Function at 0x4e2e78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov eax, 0x59676c
push ebx
push esi
push edi
call fcn.0054c16c
xor edx, edx
mov eax, dword [0x59f058]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x168]
mov esi, dword [0x59f054]
push eax
push 0xf0
mov ebx, dword [0x59f05c]
call sub.KERNEL32.DLL_GetTempPathA
mov edx, dword [ebp - 0x50]
push edx
call fcn.0054b378
pop ecx
mov dword [ebp - 0x4c], eax
push esi
push ebx
lea ecx, [ebp - 0x50]
push ecx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004c55d0
add esp, 0x10
test eax, eax
je 0x4e2ee3
or ebx, 0xffffffff
jmp 0x4e311b
xor eax, eax
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp + 8]
xor eax, eax
add ebx, 0x48
lea edi, [ebp - 0x168]
or ecx, 0xffffffff
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x596560
push ebx
call fcn.0054bddc
add esp, 8
cmp dword [ebp - 0x54], 0
jle 0x4e2f49
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x60]
push eax
push 0x596563
push edx
call fcn.0054f4a8
add esp, 0xc
lea ecx, [ebp - 0x60]
push ecx
push ebx
call fcn.0054bddc
add esp, 8
push str..dll
push ebx
call fcn.0054bddc
mov word [ebp - 0x38], 8
add esp, 8
mov edx, ebx
lea eax, [ebp - 4]
call fcn.00559dd8
inc dword [ebp - 0x2c]
mov eax, dword [eax]
call fcn.005426c0
cmp al, 1
lea eax, [ebp - 4]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x2c]
call fcn.0055a088
pop ecx
test cl, cl
je 0x4e3069
mov dl, 1
mov eax, dword [0x534b4c]
call fcn.00409d18
mov dword [ebp - 0x64], eax
lea eax, [ebp - 8]
mov word [ebp - 0x38], 0x14
mov word [ebp - 0x38], 0x20
mov edx, ebx
call fcn.00559dd8
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
call fcn.00537e34
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055a088
mov eax, dword [ebp - 0x64]
call fcn.005379fc
cmp eax, dword [ebp - 0x50]
jne 0x4e302e
mov edx, dword [ebp - 0x50]
push edx
mov ecx, dword [ebp - 0x64]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0054bf6c
add esp, 0xc
test eax, eax
jne 0x4e302e
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4e3109
mov eax, dword [ebx]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x38], 0x38
mov edx, 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x38], 0x2c
jmp 0x4e3109
mov word [ebp - 0x38], 0
jmp 0x4e3041
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4e3069
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov word [ebp - 0x38], 0x50
mov edx, 3
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x38], 0x44
mov word [ebp - 0x38], 0x5c
mov dl, 1
mov eax, dword [0x534b4c]
call fcn.00409d18
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx]
mov word [ebp - 0x38], 0x68
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
add edx, 0x48
call fcn.00559dd8
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
call fcn.00537d60
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0055a088
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4e3109
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x38], 0x80
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x38], 0x74
jmp 0x4e3109
cmp dword [ebp - 0x54], 0x64
jl 0x4e3116
mov ebx, 0xfffffffe
jmp 0x4e311b
mov ebx, 1
cmp dword [ebp - 0x4c], 0
je 0x4e312b
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0054b1b0
pop ecx
mov eax, ebx
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret