Function at 0x4d7e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x448
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4d9670
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
cmp esi, 0x201
jae 0x4d7f20
jmp 0x4d7f0e
jbe 0x4d7fa6
cmp esi, 0x201
jae 0x4d7f20
mov dword [ebp - 0x20], 0x200
lea ebx, [ebp - 0x454]
mov edi, esi
jmp 0x4d7f51
mov edi, dword [ebp - 0x24]
sub esi, edi
je 0x4d7f45
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.004ffc50
add esp, 0xc
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
test eax, eax
jne 0x4d7f75
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4d8086
cmp esi, edi
jne 0x4d7f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d80a5
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4d7f0e
jmp 0x4d7f20
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4d80c2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
call fcn.004d19c0
add esp, 0xc
movsd xmm0, qword [ebp - 0x54]
movsd xmm1, qword [ebp - 0x4c]
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x44]
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x10], 1
push ecx
push eax
push edx
call fcn.004c15e0
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
jne 0x4d8020
push 3
push str.exemain
lea eax, [ebp - 0x44]
push eax
call fcn.004c2050
add esp, 0xc
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea eax, [ebp - 0x54]
push eax
call fcn.004cc760
add esp, 0xc
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4d8047
push 1
push eax
push dword [ebp - 0x40]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x54]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4d8070
add eax, eax
push 2
push eax
push dword [ebp - 0x2c]
call fcn.00402cf0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x448
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], reloc.WS2_32.dll_accept
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4d8060
jmp 0x4d8070
mov dword [ebp - 0x10], 0
push 0x5685a4
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.005005f0
add esp, 0xc
jmp 0x4d80d1
push 0x56856c
push eax
push esi
call fcn.00500430
add esp, 0xc
ud2