Function at 0x40e070
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
cmp ecx, 5
push esi
mov esi, dword [0x42bea4]
mov eax, dword [esi + 0x338]
lea edx, [esi + 0x338]
ja case.default.0x40e092
jmp dword [ecx*4 + 0x40e1b8]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00417cb3
add esp, 8
jmp 0x40e14f
push 0x104
lea ecx, [esp + 0x118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x11c]
push eax
call fcn.00415aa0
add esp, 0xc
jmp 0x40e14f
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40e14f
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40e14f
mov eax, dword [esi + 0x368]
push eax
push edx
call fcn.0040b4b0
mov ecx, dword [0x42bea4]
mov eax, dword [ecx + 0x338]
add esp, 8
pop esi
add esp, 0x218
ret
mov byte [eax], 0
pop esi
add esp, 0x218
ret
test ecx, 0x10000
je 0x40e19e
push 0
and ecx, 0xffff
push ecx
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00415780
mov edx, dword [esp + 0xc]
mov eax, dword [0x42bea4]
push edx
add eax, 0x338
push eax
call fcn.0040b4b0
lea ecx, [esp + 0x14]
push ecx
call fcn.00415790
mov edx, dword [0x42bea4]
mov esi, dword [edx + 0x338]
push 0x5c
push esi
call fcn.00415cf0
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x218
ret
push 0x4282bc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 3
call fcn.004167e3
lea ecx, [ecx]
cdq
loopne 4252155
add byte [eax - 0x21ffbf20], dh
loopne 0x40e203
add al, dh
loopne 0x40e207
add byte [edx], al
loope 0x40e20b
add byte [esi], ah
loope 0x40e20f
add byte [ecx + 0xd0ec], al
add byte [ebx + 0x55], dl
mov ebx, eax
test bl, 0x10
mov eax, dword [0x42bea4]
mov ebp, dword [eax + 0x338]
push esi
mov esi, 4
mov dword [esp + 0x10], 0x104
je 0x40e203
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sbb byte [ecx - 1], dl
adc eax, sym.imp.KERNEL32.dll_GetSystemInfo
test bl, 0x20
je 0x40e22c
and al, 0x8d
push esp
and al, 0x3c
lea edx, [esp + 0x3c]
cmp al, 0x52
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
mov al, byte [0x83004231]
jecxz 0x40e225
mov eax, dword [esp + ebx*4 + 0x3c]
pop esi
mov dword [ebp], eax
pop ebp
mov eax, 4
pop ebx
add esp, 0xd0
ret
cmp ebx, 0x11
push edi
ja case.0x40e23d.3
movzx ecx, byte [ebx + 0x40e3fc]
jmp dword [ecx*4 + 0x40e3e4]
mov edx, dword [str.Windows]
mov dword [ebp], edx
mov eax, dword [0x4234a8]
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x40e280
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e262
mov cx, word [0x4234a0]
mov word [edi], cx
mov dl, byte [0x4234a2]
jmp 0x40e298
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e280
mov cx, word [0x42349c]
mov word [edi], cx
mov dl, byte [0x42349e]
movzx ecx, ah
push ecx
and eax, 0xff
push eax
mov byte [edi + 2], dl
lea edx, [esp + 0x68]
push str._ver_d._d
push edx
call fcn.004164e7
lea eax, [esp + 0x70]
add esp, 0x10
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e2c0
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e2d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
push eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00415780
mov esi, dword [esp + 0x18]
mov eax, esi
add esp, 8
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e300
jmp 0x40e367
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00415780
mov esi, dword [esp + 0x18]
mov eax, esi
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e330
jmp 0x40e367
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00415780
mov esi, dword [esp + 0x18]
mov eax, esi
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e360
sub eax, edx
cmp ebp, esi
je 0x40e383
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
lea eax, [esp + 0x10]
push eax
call fcn.00415790
add esp, 4
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xd0
ret
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
mov dword [ebp], ecx
pop ebp
pop ebx
add esp, 0xd0
ret
mov edx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xd0
ret
push 0x4282bc
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 3
call fcn.004167e3
lea ecx, [ecx]
inc esp
loop 4252711
add byte [ecx], cl
jecxz 0x40e42b
add byte [ecx], bh
jecxz 0x40e42f
add byte [edx - 0x49ffbf1d], ah
jecxz 0x40e437
add dl, cl
jecxz 0x40e43b
add byte [eax], al
add dword [edx], eax
add eax, 84215045
add eax, 84215045
add eax, 67306757
int3
add byte [esi + 0x48], dl
test byte [ebx - 0x2a000031], 0x85
sal byte [ebp - 0x15], 0xd
lea esp, [esp]
lea ebx, [ebx]