Function at 0x401030
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4246e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov al, byte [esp + 3]
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
lea ecx, [ebp + 4]
push edi
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
mov byte [ecx], al
call fcn.00402800
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x14]
push esi
mov dword [esp + 0x130], esi
mov byte [ecx], dl
call fcn.00402800
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x28]
push esi
mov byte [esp + 0x130], 1
mov byte [ecx], al
call fcn.00402800
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x38]
push esi
mov byte [esp + 0x130], 2
mov byte [ecx], dl
call fcn.00402800
mov al, byte [esp + 0x13]
lea ebx, [ebp + 0x48]
push esi
mov ecx, ebx
mov byte [esp + 0x130], 3
mov byte [ebx], al
call fcn.00402800
lea ecx, [ebp + 0x6c]
mov byte [esp + 0x12c], 4
call fcn.00405f00
lea esi, [ebp + 0x134]
mov byte [esp + 0x12c], 5
mov dword [esp + 0x1c], esi
lea edi, [esi + 0x58]
mov dword [esi], 0x426220
mov ecx, edi
call fcn.004029a0
mov dword [edi], 0x42621c
mov dword [esp + 0x14], 1
push 0
lea edi, [esi + 4]
push 1
push 0
push edi
mov ecx, esi
mov byte [esp + 0x13c], 6
call fcn.00402850
push 0
mov ecx, edi
mov dword [esp + 0x130], 7
call fcn.004029d0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
mov dword [edx + esi], 0x426218
mov al, byte [esp + 0x13]
lea ecx, [ebp + 0x1c0]
push 0
mov byte [esp + 0x130], 8
mov byte [ecx], al
call fcn.00402800
mov dl, byte [esp + 0x13]
lea ecx, [ebp + 0x1d0]
push 0
mov byte [esp + 0x130], 9
mov byte [ecx], dl
call fcn.00402800
mov edi, 0x42e93c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x130], 0xa
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00402ca0
test al, al
je 0x4011c3
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x42e93c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
lea eax, [ebp + 0x58]
xor edx, edx
mov dword [ebp], 0
mov byte [ebp + 0x24], 0
mov byte [ebp + 0x130], 0
mov byte [ebp + 0x27], 0
mov byte [ebp + 0x25], 0
mov byte [ebp + 0x26], 0
mov dword [eax], edx
mov ecx, 0x40
lea edi, [esp + 0x21]
push 0x104
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov byte [esp + 0x24], dl
mov dword [eax + 0x10], edx
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00402ca0
test al, al
je 0x401260
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
lea edx, [esp + 0x20]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp + 0x14]
mov ebx, ecx
mov ecx, edi
push ebx
call fcn.00402ca0
test al, al
je 0x4012b2
mov edi, dword [edi + 4]
mov ecx, ebx
mov eax, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], ebx
mov byte [ebx + ecx], 0
mov ecx, dword [esp + 0x124]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret