Function at 0x4eade0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x12c
mov eax, dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x118], eax
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
lea esi, [ebx - 1]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x593
mov eax, dword [edi + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.returned__ld_with__ld__expected__0__n
mov dword [esp], eax
call fcn.004e88d0
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp], 0
mov eax, dword [ebp - 0x118]
call eax
sub esp, 8
mov dword [ebp - 0x11c], eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x59d
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x11c]
xor eax, eax
mov dword [esp + 4], str.returned__lu_with__lu__expected__lu__n
cmp ebx, edx
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004e88d0
cmp ebx, 0x104
jbe 0x4eaec8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x114]
mov byte [ebp - 0x114], 0
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x118]
call eax
sub esp, 8
mov dword [ebp - 0x11c], eax
call fcn.0057d110
mov edx, dword [ebp - 0x11c]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x5a6
xor eax, eax
mov ecx, dword [edi + 0x34]
cmp esi, edx
jne 0x4eaf21
xor eax, eax
cmp byte [ebp - 0x114], 0
setne al
lea edi, [ebp - 0x114]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x14], esi
mov dword [esp + 4], str.returned__ld_with__ld_and__s__expected__ld_and_a_string__n
call fcn.004e88d0
lea eax, [ebx + 1]
mov byte [ebp - 0x114], 0
mov edx, dword fs:[0x18]
mov dword [ebp - 0x11c], eax
mov dword [edx + 0x34], 0xdeadbeef
mov dword [ebp - 0x120], edx
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x118]
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov edx, dword [ebp - 0x120]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x5ae
xor eax, eax
mov edx, dword [edx + 0x34]
cmp esi, edi
jne 0x4eafac
xor eax, eax
cmp byte [ebp - 0x114], 0
setne al
lea ecx, [ebp - 0x114]
mov dword [esp], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str.returned__ld_with__ld_and__s__expected__ld_and_a_string__n
call fcn.004e88d0
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jae 0x4eb130
test eax, eax
jne 0x4eb188
lea edx, [ebx + 2]
lea eax, [ebp - 0x114]
mov byte [ebp + ebx - 0x112], 0
mov dword [ebp - 0x120], edx
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
call eax
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x5b7
lea eax, [ebp - 0x114]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
cmp ebx, esi
sete al
mov dword [esp + 4], str.returned__ld_with__ld_and__s__expected__ld__n
mov dword [esp], eax
call fcn.004e88d0
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
cmp eax, 4
jae 0x4eb100
test eax, eax
jne 0x4eb160
lea eax, [ebx - 2]
mov byte [ebp + edx - 0x114], 0
mov edi, dword fs:[0x18]
mov dword [edi + 0x34], 0xdeadbeef
mov dword [esp + 4], eax
lea eax, [ebp - 0x114]
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
call eax
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x5bf
lea eax, [ebp - 0x114]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
cmp ebx, esi
sete al
mov dword [esp + 4], str.returned__ld_with__ld_and__s__expected__ld__n
mov dword [esp], eax
call fcn.004e88d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x11c]
lea edi, [ebp - 0x114]
mov dword [ebp + eax - 0x118], 0x23232323
lea ecx, [eax - 1]
mov eax, 0x23232323
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x4eb081
mov eax, dword [ebp - 0x11c]
lea edi, [ebp - 0x114]
mov dword [ebp + eax - 0x118], 0x23232323
lea ecx, [eax - 1]
mov eax, 0x23232323
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x4eafe9
mov byte [ebp - 0x114], 0x23
test al, 2
je 0x4eb081
mov ecx, 0x2323
mov word [ebp + eax - 0x116], cx
jmp 0x4eb081
mov byte [ebp - 0x114], 0x23
test al, 2
je 0x4eafe9
mov edi, 0x2323
mov word [ebp + eax - 0x116], di
jmp 0x4eafe9