Function at 0x4eed40
Capabilities:
Get common file path

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x41
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x110]
mov edi, ebx
mov esi, dword fs:[0x18]
sub esp, 0x118
rep stosd dword es:[edi], eax
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
sub esp, 8
mov edi, eax
mov eax, 0x63b
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.GetWindowsDirectory_error__lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
mov eax, 0x63c
call fcn.004e7d80
xor eax, eax
cmp edi, 0x103
mov dword [esp + 8], edi
setbe al
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x63d
call fcn.004e7d80
movsx edx, byte [ebp - 0x10f]
xor eax, eax
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp dl, 0x3a
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x63e
call fcn.004e7d80
movsx edx, byte [ebp - 0x110]
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
mov eax, edx
mov dword [esp + 8], edx
sub eax, 0x41
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov edx, dword [sym.imp.kernel32.dll_GetFullPathNameA]
lea eax, [ebp - 0x10e]
mov byte [ebp - 0x10e], 0x2f
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], eax
mov dword [ebp - 0x114], edx
call edx
sub esp, 0x10
mov edi, eax
mov eax, 0x644
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.GetFullPathName_error__lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x645
xor eax, eax
cmp edi, 0x103
setbe al
mov dword [esp + 8], edi
mov edi, ebx
mov dword [esp], eax
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
call fcn.004e88d0
mov eax, 0x646
call fcn.004e7d80
movsx ecx, byte [ebp - 0x10f]
xor eax, eax
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp cl, 0x3a
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
movsx ecx, byte [ebp - 0x110]
mov dword [eax + 4], 0x647
mov eax, ecx
mov dword [esp + 8], ecx
sub eax, 0x41
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
sub esp, 8
mov edi, eax
mov eax, 0x64c
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.GetSystemDirectory_error__lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x64d
xor eax, eax
cmp edi, 0x103
setbe al
mov dword [esp + 8], edi
mov edi, ebx
mov dword [esp], eax
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
call fcn.004e88d0
mov eax, 0x64e
call fcn.004e7d80
movsx ecx, byte [ebp - 0x10f]
xor eax, eax
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp cl, 0x3a
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x64f
call fcn.004e7d80
movsx ecx, byte [ebp - 0x110]
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
mov eax, ecx
mov dword [esp + 8], ecx
sub eax, 0x41
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x654
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetCurrentDirectory_error__lu_n
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x655
xor eax, eax
cmp edi, 0x103
setbe al
mov dword [esp + 8], edi
mov edi, ebx
mov dword [esp], eax
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
movsx ecx, byte [ebp - 0x10f]
mov dword [eax + 4], 0x656
xor eax, eax
cmp cl, 0x3a
mov dword [esp + 8], ecx
sete al
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
movsx ecx, byte [ebp - 0x110]
mov dword [eax + 4], 0x657
mov eax, ecx
mov dword [esp + 8], ecx
sub eax, 0x41
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x65d
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetTempPath_error__lu_n
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x65e
xor eax, eax
cmp edi, 0x103
setbe al
mov dword [esp + 8], edi
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
mov dword [esp], eax
call fcn.004e88d0
cmp byte [ebp - 0x110], 0
mov edx, dword [ebp - 0x114]
jne 0x4ef428
xor eax, eax
mov edi, ebx
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov esi, dword fs:[0x18]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp], 0x5e914c
call edx
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x668
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetFullPathName_error__lu_n
call fcn.004e88d0
mov eax, 0x669
call fcn.004e7d80
xor eax, eax
cmp edi, 0x103
mov dword [esp + 8], edi
setbe al
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
movsx edx, byte [ebp - 0x10f]
mov dword [eax + 4], 0x66a
cmp dl, 0x3a
mov dword [esp + 8], edx
sete al
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x66b
call fcn.004e7d80
movsx edx, byte [ebp - 0x110]
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
mov eax, edx
mov dword [esp + 8], edx
sub eax, 0x41
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov dword [esp + 8], 0x104
call dword [sym.imp.kernel32.dll_GetShortPathNameA]
sub esp, 0xc
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x670
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetShortPathName_error__lu_n
call fcn.004e88d0
mov eax, 0x671
call fcn.004e7d80
xor eax, eax
cmp edi, 0x103
mov dword [esp + 8], edi
setbe al
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x672
call fcn.004e7d80
movsx edx, byte [ebp - 0x10f]
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp dl, 0x3a
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x673
call fcn.004e7d80
movsx edx, byte [ebp - 0x110]
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
mov eax, edx
mov dword [esp + 8], edx
sub eax, 0x41
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 4], ebx
mov dword [esp], ebx
mov dword [esp + 8], 0x104
call dword [sym.imp.kernel32.dll_GetLongPathNameA]
sub esp, 0xc
mov ebx, eax
mov eax, 0x678
call fcn.004e7d80
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.GetLongPathNameA_error__lu_n
mov dword [esp + 8], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x679
xor eax, eax
cmp ebx, 0x103
setbe al
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.buffer_should_be__u_bytes_n
call fcn.004e88d0
mov eax, 0x67a
call fcn.004e7d80
movsx edx, byte [ebp - 0x10f]
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp dl, 0x3a
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x67b
call fcn.004e7d80
movsx edx, byte [ebp - 0x110]
mov dword [esp + 4], str.expected_buf_0__upper_case_letter_got__c_n
mov eax, edx
mov dword [esp + 8], edx
sub eax, 0x41
cmp al, 0x19
setbe al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x661
call fcn.004e7d80
movsx ecx, byte [ebp - 0x10f]
mov dword [esp + 4], str.expected_buf_1___:_got__c_n
cmp cl, 0x3a
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x662
call fcn.004e7d80
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Temporary_path___s__doesnt_end_in_a_slash_n
cmp byte [ebp + eax - 0x111], 0x5c
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov edx, dword [ebp - 0x114]
jmp 0x4ef180