Function at 0x4e3224
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov eax, 0x598c80
push ebx
push esi
push edi
call fcn.0054e578
xor edx, edx
mov eax, dword [0x5a1644]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x168]
mov esi, dword [0x5a1640]
push eax
push 0xf0
mov ebx, dword [0x5a1648]
call sub.KERNEL32.DLL_GetTempPathA
mov edx, dword [ebp - 0x50]
push edx
call fcn.0054d784
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.004c38b0
add esp, 0x10
test eax, eax
je 0x4e328f
or ebx, 0xffffffff
jmp 0x4e34c7
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 0x598a74
push ebx
call fcn.0054e1e8
add esp, 8
cmp dword [ebp - 0x54], 0
jle 0x4e32f5
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x60]
push eax
push 0x598a77
push edx
call fcn.005518b4
add esp, 0xc
lea ecx, [ebp - 0x60]
push ecx
push ebx
call fcn.0054e1e8
add esp, 8
push str..dll
push ebx
call fcn.0054e1e8
mov word [ebp - 0x38], 8
add esp, 8
mov edx, ebx
lea eax, [ebp - 4]
call fcn.0055c210
inc dword [ebp - 0x2c]
mov eax, dword [eax]
call fcn.005437f8
cmp al, 1
lea eax, [ebp - 4]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x2c]
call fcn.0055c51c
pop ecx
test cl, cl
je 0x4e3415
mov dl, 1
mov eax, dword [0x535c44]
call fcn.00409d30
mov dword [ebp - 0x64], eax
lea eax, [ebp - 8]
mov word [ebp - 0x38], 0x14
mov word [ebp - 0x38], 0x20
mov edx, ebx
call fcn.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
call fcn.00538f2c
dec dword [ebp - 0x2c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055c51c
mov eax, dword [ebp - 0x64]
call fcn.00538af4
cmp eax, dword [ebp - 0x50]
jne 0x4e33da
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.0054e378
add esp, 0xc
test eax, eax
jne 0x4e33da
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x4e34b5
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 0x4e34b5
mov word [ebp - 0x38], 0
jmp 0x4e33ed
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4e3415
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 [0x535c44]
call fcn.00409d30
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.0055c210
inc dword [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x64]
call fcn.00538e58
dec dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0055c51c
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4e34b5
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 0x4e34b5
cmp dword [ebp - 0x54], 0x64
jl 0x4e34c2
mov ebx, 0xfffffffe
jmp 0x4e34c7
mov ebx, 1
cmp dword [ebp - 0x4c], 0
je 0x4e34d7
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0054d5bc
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