Function at 0x4d5e08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc0c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3f4], ecx
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x2e4], ecx
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2e0], ecx
mov dword [ebp - 0x2d8], ecx
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 4], ecx
test dl, dl
je 0x4d5e5b
add esp, 0xfffffff0
call fcn.00403dfc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d60f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403a68
mov byte [esi + 4], 0
mov byte [esi + 5], 0
xor eax, eax
cmp eax, 0x23
jbe 0x4d5e8a
call fcn.004039d8
mov byte [esi + eax + 0x10], 0
inc eax
cmp eax, 0x24
jne 0x4d5e80
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x2d4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404b10
lea eax, [ebp - 0x2d4]
mov edx, 0x4d6120
call fcn.00404b68
mov edx, dword [ebp - 0x2d4]
lea eax, [esi + 0x167]
mov ecx, 0xff
call fcn.00404b3c
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x2d8]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404b10
lea eax, [ebp - 0x2d8]
mov edx, 0x4d6120
call fcn.00404b68
mov edx, dword [ebp - 0x2d8]
lea eax, [esi + 0x67]
mov ecx, 0xff
call fcn.00404b3c
lea edx, [ebp - 0x2e0]
mov eax, dword [0x5346e8]
mov eax, dword [eax]
call fcn.00462250
mov eax, dword [ebp - 0x2e0]
lea edx, [ebp - 0x2dc]
call fcn.00409584
mov edx, dword [ebp - 0x2dc]
lea eax, [esi + 0x267]
mov ecx, 0xff
call fcn.00404b3c
lea eax, [ebp - 0x2e4]
lea edx, [esi + 0x267]
call fcn.00404b04
lea eax, [ebp - 0x2e4]
mov edx, 0x4d612c
call fcn.00404b68
mov edx, dword [ebp - 0x2e4]
lea eax, [esi + 0x467]
mov ecx, 0xff
call fcn.00404b3c
lea edx, [ebp - 0x2e8]
mov eax, dword [0x5346e8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
call fcn.004095b8
mov edx, dword [ebp - 0x2e8]
lea eax, [esi + 0x367]
mov ecx, 0xff
call fcn.00404b3c
mov byte [esi + 7], 0
mov byte [esi + 6], 0
call fcn.0040afb0
fstp qword [esi + 8]
wait
mov byte [esi + 0x34], 0
lea edx, [ebp - 0x2f0]
mov eax, dword [0x5346e8]
mov eax, dword [eax]
call fcn.00462250
mov eax, dword [ebp - 0x2f0]
lea edx, [ebp - 0x2ec]
call fcn.00409584
mov edx, dword [ebp - 0x2ec]
lea eax, [ebp - 4]
mov ecx, 0x4d613c
call fcn.00404bac
mov eax, dword [ebp - 4]
call fcn.004093c4
test al, al
je 0x4d608d
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x2d0]
call fcn.00402e80
lea eax, [ebp - 0x2d0]
call fcn.00402c10
call fcn.00402908
lea edx, [ebp - 4]
lea eax, [ebp - 0x2d0]
call fcn.00403234
lea eax, [ebp - 0x2d0]
call fcn.004032a0
call fcn.00402908
lea eax, [ebp - 0x2d0]
call fcn.00402f48
call fcn.00402908
lea eax, [ebp - 0x3f0]
mov edx, dword [ebp - 4]
mov ecx, 0xff
call fcn.00404b3c
lea edx, [ebp - 0x3f0]
lea eax, [esi + 0x34]
mov cl, 0x32
call fcn.00402fdc
cmp byte [esi + 0x34], 0
jne 0x4d60a1
push esi
lea edi, [esi + 0x34]
mov esi, 0x4d6154
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x3f4]
lea edx, [esi + 0x34]
call fcn.00404b04
mov edx, dword [ebp - 0x3f4]
mov eax, dword [0x5346e8]
mov eax, dword [eax]
call fcn.004617ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d60f9
lea eax, [ebp - 0x3f4]
call fcn.004048a8
lea eax, [ebp - 0x2f0]
mov edx, 8
call fcn.004048cc
lea eax, [ebp - 4]
call fcn.004048a8
ret