Function at 0x40dd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49285a
mov eax, dword fs:[0]
push eax
mov eax, 0x48bc
call fcn.0047f210
mov eax, dword [0x4b6798]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, 7
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x48b0], eax
mov dword [ebp - 0x206c], esi
mov dword [ebp - 0x2070], edi
mov word [ebp - 0x2080], cx
mov dword [ebp - 4], edi
xor edx, edx
mov dword [ebp - 0x2018], esi
mov dword [ebp - 0x201c], edi
mov word [ebp - 0x202c], dx
lea eax, [ebp - 0x2010]
push eax
push 0x800
mov byte [ebp - 4], 1
mov dword [ebp - 0x48ac], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1010]
push ecx
push edi
push str.orig
lea edx, [ebp - 0x2010]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor eax, eax
mov word [ebp - 0x2048], ax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x2034], esi
mov dword [ebp - 0x2038], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40de06
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1010]
lea esi, [ebp - 0x2048]
call fcn.00409bc0
push edi
mov ecx, esi
push ecx
or eax, 0xffffffff
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004097e0
push 0xa
push str..extracted
mov eax, ebx
call fcn.004046f0
lea edx, [ebp - 0x48a8]
push edx
call fcn.0040d640
lea esi, [ebp - 0x48a8]
mov byte [ebp - 4], 3
call fcn.0040bea0
test eax, eax
jne 0x40de73
mov ebx, 0x80004005
lea esi, [eax + 8]
jmp 0x40dfc6
mov esi, dword [ebp - 0x48b0]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40de80
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x202c]
call fcn.00409bc0
push 1
lea eax, [ebp - 0x48b0]
push eax
mov ecx, esi
push ecx
xor eax, eax
mov dword [ebp - 0x48b0], 0x23
call fcn.00403340
cmp eax, 0xffffffff
je 0x40df06
push eax
xor ecx, ecx
lea esi, [ebp - 0x2064]
lea edx, [ebp - 0x202c]
call fcn.00402e20
mov edi, eax
lea esi, [ebp - 0x202c]
mov byte [ebp - 4], 4
call fcn.004030e0
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2050], esi
jb 0x40df0b
mov edx, dword [ebp - 0x2064]
push edx
call fcn.004736d0
add esp, 4
jmp 0x40df0b
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x40df12
mov ebx, dword [ebx]
mov edi, ebx
lea eax, [ebp - 0x48bc]
call fcn.00409e50
lea edi, [ebp - 0x1010]
lea eax, [ebp - 0x48c4]
mov byte [ebp - 4], 5
call fcn.00409e50
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x202c]
cmp dword [ebp - 0x2018], esi
jae 0x40df4c
lea edi, [ebp - 0x202c]
lea eax, [ebp - 0x48b4]
call fcn.00409e50
lea eax, [ebp - 0x48bc]
push eax
lea ecx, [ebp - 0x48a8]
push ecx
lea edx, [ebp - 0x48c4]
lea ecx, [ebp - 0x48b4]
mov byte [ebp - 4], 7
call fcn.0040d940
mov edx, dword [ebp - 0x48b4]
test eax, eax
push edx
sete bl
call fcn.00473f95
mov eax, dword [ebp - 0x48c4]
add esp, 4
push eax
call fcn.00473f95
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48bc]
add esp, 4
push ecx
call fcn.00473f95
add esp, 4
xor edi, edi
test bl, bl
je 0x40dfc0
mov dword [ebp - 0x48ac], 0x80004005
mov ebx, dword [ebp - 0x48ac]
lea eax, [ebp - 0x48a8]
call fcn.0040d780
lea edx, [ebp - 0x48a8]
push edx
mov byte [ebp - 4], 2
call fcn.0040d6e0
cmp dword [ebp - 0x2034], esi
jb 0x40dff8
mov eax, dword [ebp - 0x2048]
push eax
call fcn.004736d0
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2034], 7
mov dword [ebp - 0x2038], edi
mov word [ebp - 0x2048], cx
cmp dword [ebp - 0x2018], esi
jb 0x40e028
mov edx, dword [ebp - 0x202c]
push edx
call fcn.004736d0
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004736db
mov esp, ebp
pop ebp
ret 8