Function at 0x4118e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
cmp ecx, 5
push esi
mov esi, dword [0x4361b0]
mov eax, dword [esi + 0x338]
lea edx, [esi + 0x338]
ja case.default.0x411902
jmp dword [ecx*4 + 0x411a28]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00421da4
add esp, 8
jmp 0x4119bf
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.0041fb00
add esp, 0xc
jmp 0x4119bf
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4119bf
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4119bf
mov eax, dword [esi + 0x368]
push eax
push edx
call fcn.0040b4a0
mov ecx, dword [0x4361b0]
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 0x411a0e
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.0041f7e0
mov edx, dword [esp + 0xc]
mov eax, dword [0x4361b0]
push edx
add eax, 0x338
push eax
call fcn.0040b4a0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041f7f0
mov edx, dword [0x4361b0]
mov esi, dword [edx + 0x338]
push 0x5c
push esi
call fcn.0041fd50
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x218
ret
push 0x432754
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 3
call fcn.00420843
lea ecx, [ecx]
or dword [ecx], ebx
inc ecx
add byte [eax], ah
sbb dword [ecx], eax
dec esi
sbb dword [ecx], eax
pushal
sbb dword [ecx], eax
jb 0x411a53
inc ecx
add byte [esi - 0x7effbee7], dl
sub esp, 0xd0
push ebx
push ebp
mov ebx, eax
test bl, 0x10
mov eax, dword [0x4361b0]
mov ebp, dword [eax + 0x338]
push esi
mov esi, 4
test al, 0x38
add eax, dword [eax]
add byte [esi - 0x42], dl
add al, 0
add byte [eax], al
mov dword [esp + 0x10], 0x104
je 0x411a73
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x411a9c
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
and ebx, 0xf
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.0x411aad.3
movzx ecx, byte [ebx + 0x411c6c]
jmp dword [ecx*4 + 0x411c54]
mov edx, dword [str.Windows]
mov dword [ebp], edx
mov eax, dword [0x42d594]
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, ebp
dec edi
test eax, eax
js 0x411af0
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411ad2
mov cx, word [0x42d58c]
mov word [edi], cx
mov dl, byte [0x42d58e]
jmp 0x411b08
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411af0
mov cx, word [0x42d588]
mov word [edi], cx
mov dl, byte [0x42d58a]
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.00420547
lea eax, [esp + 0x70]
add esp, 0x10
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b30
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411b40
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.0041f7e0
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 0x411b70
jmp 0x411bd7
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.0041f7e0
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 0x411ba0
jmp 0x411bd7
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.0041f7e0
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 0x411bd0
sub eax, edx
cmp ebp, esi
je 0x411bf3
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.0041f7f0
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 0x432754
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 3
call fcn.00420843
lea ecx, [ecx]
mov ah, 0x1a
inc ecx
add byte [ecx + 0x1b], bh
inc ecx
add byte [ecx + 0x1200411b], ch
sbb al, 0x41
add byte [esi], ah
sbb al, 0x41
add byte [edx], bh
sbb al, 0x41
add byte [eax], al
add dword [edx], eax
add eax, 84215045
add eax, 84215045
add eax, 67306757
int3