Function at 0x4e2118
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
mov eax, 0x596470
push ebx
push esi
push edi
call fcn.0054c16c
xor edx, edx
mov ecx, dword [str.fbababdbj]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x78], ecx
mov ecx, dword [0x5962cc]
xor eax, eax
mov dword [ebp - 0x74], ecx
xor edx, edx
mov cx, word [0x5962d0]
mov word [ebp - 0x70], cx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], edx
xor ecx, ecx
mov dword [ebp - 0x84], ecx
xor eax, eax
mov word [ebp - 0x44], 8
push 0x40
mov ecx, dword [0x59ec34]
mov word [ebp - 0x44], 0x14
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
inc dword [ebp - 0x38]
mov eax, dword [ecx]
call fcn.00516744
lea ecx, [ebp - 4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x534a74]
call fcn.00537c04
mov ebx, eax
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0055a088
mov word [ebp - 0x44], 0
jmp 0x4e21c8
mov eax, ebx
call fcn.005379fc
mov edx, eax
mov eax, ebx
add edx, 0xffa00000
call fcn.005379f0
push 0x600000
call fcn.0054b378
pop ecx
mov dword [ebp - 0x84], eax
mov eax, ebx
mov edx, dword [ebp - 0x84]
mov ecx, 0x600000
mov esi, dword [eax]
call dword [esi + 4]
mov esi, ebx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4e2228
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov word [ebp - 0x44], 0x2c
mov edx, 3
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x20
mov dword [ebp - 0x5c], 0x5ffff6
push 0xa
lea edx, [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x5c]
push eax
call fcn.0054bf6c
add esp, 0xc
test eax, eax
je 0x4e2254
dec dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0
jge 0x4e222f
cmp dword [ebp - 0x5c], 0
jne 0x4e2264
mov ebx, 0xfffffffc
jmp 0x4e2526
add dword [ebp - 0x5c], 0xa
push 4
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x7c]
push edx
call fcn.0054bcc8
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
add ecx, 4
mov dword [ebp - 0x5c], ecx
push 4
mov eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x5c]
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.0054bcc8
mov ecx, dword [ebp - 0x5c]
add esp, 0xc
add ecx, 4
lea eax, [ebp - 0x188]
mov dword [ebp - 0x5c], ecx
mov ebx, dword [ebp - 0x84]
add ebx, dword [ebp - 0x5c]
push eax
push 0xf0
call sub.KERNEL32.DLL_GetTempPathA
mov edx, dword [ebp - 0x7c]
push edx
call fcn.0054b378
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push ecx
push ebx
push eax
mov edx, dword [ebp - 0x58]
push edx
call fcn.004c55d0
add esp, 0x10
test eax, eax
je 0x4e22f2
or ebx, 0xffffffff
jmp 0x4e2526
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
lea edi, [ebp - 0x188]
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.libfaad2
mov eax, dword [ebp + 8]
push eax
call fcn.0054bddc
add esp, 8
cmp dword [ebp - 0x5c], 0
jle 0x4e235b
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
push edx
push 0x5962f9
push ecx
call fcn.0054f4a8
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0054bddc
add esp, 8
push 0x5962fc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0054bddc
mov word [ebp - 0x44], 0x38
mov edx, dword [ebp + 8]
add esp, 8
lea eax, [ebp - 0x10]
call fcn.00559dd8
inc dword [ebp - 0x38]
mov eax, dword [eax]
call fcn.005426c0
cmp al, 1
lea eax, [ebp - 0x10]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x38]
call fcn.0055a088
pop ecx
test cl, cl
je 0x4e2480
mov dl, 1
mov eax, dword [0x534b4c]
call fcn.00409d18
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x44], 0x44
mov word [ebp - 0x44], 0x50
mov edx, dword [ebp + 8]
call fcn.00559dd8
inc dword [ebp - 0x38]
mov edx, dword [eax]
mov eax, dword [ebp - 0x6c]
call fcn.00537e34
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0055a088
mov eax, dword [ebp - 0x6c]
call fcn.005379fc
cmp eax, dword [ebp - 0x7c]
jne 0x4e2445
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + 4]
push eax
mov edx, dword [ebp - 0x58]
push edx
call fcn.0054bf6c
add esp, 0xc
test eax, eax
jne 0x4e2445
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x4e251d
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x44], 0x68
mov edx, 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x5c
jmp 0x4e251d
mov word [ebp - 0x44], 0
jmp 0x4e2458
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x24], ebx
test ebx, ebx
je 0x4e2480
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x44], 0x80
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x74
mov word [ebp - 0x44], 0x8c
mov dl, 1
mov eax, dword [0x534b4c]
call fcn.00409d18
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x58]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx]
mov word [ebp - 0x44], 0x98
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.00559dd8
inc dword [ebp - 0x38]
mov edx, dword [eax]
mov eax, dword [ebp - 0x6c]
call fcn.00537d60
dec dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0055a088
mov ebx, dword [ebp - 0x6c]
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x4e251d
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x44], 0xb0
mov edx, 3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0xa4
jmp 0x4e251d
cmp dword [ebp - 0x5c], 0x64
mov ebx, 1
cmp dword [ebp - 0x84], 0
je 0x4e253c
mov eax, dword [ebp - 0x84]
push eax
call fcn.0054b1b0
pop ecx
cmp dword [ebp - 0x58], 0
je 0x4e254c
mov edx, dword [ebp - 0x58]
push edx
call fcn.0054b1b0
pop ecx
mov eax, ebx
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret