Function at 0x4d8200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc38
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d90
mov eax, dword [ebp - 8]
call fcn.00404d90
xor eax, eax
push ebp
push 0x4d84ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404cec
jne 0x4d8274
push 0xa
push 3
mov ecx, dword [ebp - 4]
mov edx, 0x390
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4d84bf
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00409bd8
mov esi, eax
mov dword [ebp - 0x26f], esi
cmp esi, 0xffffffff
jne 0x4d82a3
push 2
push 1
mov ecx, dword [ebp - 4]
mov edx, 0x391
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4d84bf
mov ecx, 2
xor edx, edx
mov eax, esi
call fcn.00409cb4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4d82d9
mov eax, esi
call fcn.00409cf8
push 0xa
push 2
mov ecx, dword [ebp - 4]
mov edx, 0x392
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp 0x4d84bf
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00409cb4
lea eax, [ebp - 0x123]
push eax
push 0
push 0x4d8500
mov eax, dword [ebx + 0x140]
call fcn.00404da0
push eax
call sub.kernel32.dll_GetTempFileNameA
lea edx, [ebp - 0x3c0]
lea eax, [ebp - 0x123]
call fcn.0040a3c4
mov eax, dword [ebp - 0x3c0]
call fcn.00409c30
mov edi, eax
mov dword [ebp - 0x3bb], edi
test edi, edi
jge 0x4d8337
mov eax, esi
call fcn.00409cf8
jmp 0x4d84bf
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1e], 0
mov eax, 0x4000
call fcn.004027bc
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
mov edx, edi
mov ecx, 0x4000
mov eax, dword [ebp - 0x26f]
call fcn.00409c5c
mov esi, eax
test esi, esi
jge 0x4d838e
mov eax, dword [ebp - 0x26f]
call fcn.00409cf8
mov eax, dword [ebp - 0x3bb]
call fcn.00409cf8
mov edx, 0x4000
mov eax, dword [ebp - 0x18]
call fcn.004027dc
mov byte [ebp - 0x1e], 1
mov edx, edi
mov ecx, esi
mov eax, dword [ebp - 0x3bb]
call fcn.00409c88
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4d83cd
mov eax, dword [ebp - 0x26f]
call fcn.00409cf8
mov eax, dword [ebp - 0x3bb]
call fcn.00409cf8
mov edx, 0x4000
mov eax, dword [ebp - 0x18]
call fcn.004027dc
mov byte [ebp - 0x1e], 1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
cmp word [ebx + 0x8a], 0
je 0x4d83f6
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
cmp word [ebx + 0xaa], 0
je 0x4d8411
lea ecx, [ebp - 0x1d]
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [0x512408]
mov eax, dword [eax]
call fcn.00496fa0
test esi, esi
je 0x4d8436
cmp esi, dword [ebp - 0x14]
jne 0x4d8436
cmp byte [ebp - 0x1d], 0
jne 0x4d8436
cmp byte [ebp - 0x1e], 0
je 0x4d834c
mov eax, dword [ebp - 0x26f]
call fcn.00409cf8
mov eax, dword [ebp - 0x3bb]
call fcn.00409cf8
mov edx, 0x4000
mov eax, dword [ebp - 0x18]
call fcn.004027dc
mov al, byte [ebp - 0x1d]
mov byte [ebx + 0x171], al
mov al, byte [ebp - 0x1d]
or al, byte [ebp - 0x1e]
je 0x4d8488
lea edx, [ebp - 0x3c4]
lea eax, [ebp - 0x123]
call fcn.0040a3c4
mov eax, dword [ebp - 0x3c4]
call fcn.00409e90
jmp 0x4d84bf
mov eax, dword [ebp - 8]
call fcn.00409d68
test al, al
je 0x4d849c
mov eax, dword [ebp - 8]
call fcn.00409e90
lea edx, [ebp - 0x3c8]
lea eax, [ebp - 0x123]
call fcn.0040a3c4
mov eax, dword [ebp - 0x3c8]
mov edx, dword [ebp - 8]
call fcn.00409ea8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d84f1
lea eax, [ebp - 0x3c8]
mov edx, 3
call fcn.00404904
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404904
ret