Function at 0x42f800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x2080
push 8
push dword [0x576b44]
mov dword [ebp - 0x214], esi
mov dword [esi + 0x3c], 0x1040
mov dword [esi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esi + 0x40]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x38], eax
mov esi, dword [esi + 0x3c]
lea edi, [eax + ecx*2]
sub esi, ecx
push edi
push 0
push 0
push 0x28
push 0
call ebx
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esi
mov ecx, edi
push eax
push 0x52e1dc
call fcn.004070a0
mov esi, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
mov word [esi + 2], ax
add eax, 0xfffffffe
mov word [esi], ax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*2]
mov dword [esi + 4], eax
lea eax, [edx + 1]
add dword [esi + 0x40], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
sub esi, ecx
lea edi, [eax + ecx*2]
push edi
push 0
push 0
push 0x1a
push 0
call ebx
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esi
mov ecx, edi
push eax
push 0x52e1dc
call fcn.004070a0
mov esi, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
mov word [esi + 0xa], ax
add eax, 0xfffffffe
mov word [esi + 8], ax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*2]
mov dword [esi + 0xc], eax
lea eax, [edx + 1]
add dword [esi + 0x40], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
sub esi, ecx
lea edi, [eax + ecx*2]
push edi
push 0
push 0
push 0x1c
push 0
call ebx
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esi
mov ecx, edi
push eax
push 0x52e1dc
call fcn.004070a0
mov esi, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
mov word [esi + 0x12], ax
add eax, 0xfffffffe
mov word [esi + 0x10], ax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*2]
mov dword [esi + 0x14], eax
lea eax, [edx + 1]
add dword [esi + 0x40], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
sub esi, ecx
lea edi, [eax + ecx*2]
push edi
push 0
push 0
push 0
push 0
call ebx
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esi
mov ecx, edi
push eax
push 0x52e1dc
call fcn.004070a0
mov esi, dword [ebp - 0x214]
mov edx, dword [ebp - 0x210]
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
mov word [esi + 0x1a], ax
add eax, 0xfffffffe
mov word [esi + 0x18], ax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
lea eax, [eax + ecx*2]
mov dword [esi + 0x1c], eax
lea eax, [edx + 1]
add dword [esi + 0x40], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
sub esi, ecx
lea edi, [eax + ecx*2]
push edi
push 0
push 0
push 5
push 0
call ebx
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esi
mov ecx, edi
push eax
push 0x52e1dc
call fcn.004070a0
mov edx, dword [ebp - 0x210]
sub edx, edi
sar edx, 1
lea eax, [edx*2 + 2]
mov ebx, dword [ebp - 0x214]
mov word [ebx + 0x22], ax
add eax, 0xfffffffe
mov word [ebx + 0x20], ax
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x38]
lea eax, [eax + ecx*2]
mov dword [ebx + 0x24], eax
lea eax, [edx + 1]
add dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x40]
lea esi, [eax + ecx*2]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x40]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, eax
sub esp, 0xc
lea eax, [edx*2 + 2]
mov word [ebx + 0x2a], ax
add eax, 0xfffffffe
mov word [ebx + 0x28], ax
mov ecx, dword [ebx + 0x40]
mov eax, dword [ebx + 0x38]
lea eax, [eax + ecx*2]
lea ecx, [edx + 1]
mov dword [ebx + 0x2c], eax
add dword [ebx + 0x40], ecx
lea ecx, [ebx + 0x30]
push ecx
mov ecx, ebx
call fcn.0042fac0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret