Function at 0x411900
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.0x411922
jmp dword [ecx*4 + 0x411a48]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.00421d03
add esp, 8
jmp 0x4119df
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.0041faf0
add esp, 0xc
jmp 0x4119df
push 0x104
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4119df
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4119df
mov eax, dword [esi + 0x368]
push eax
push edx
call fcn.0040b4c0
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 0x411a2e
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.0040b4c0
lea ecx, [esp + 0x14]
push ecx
call fcn.0041f7f0
mov edx, dword [0x4361b0]
mov esi, dword [edx + 0x338]
push 0x5c
push esi
call fcn.0041fd40
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.00420833
lea ecx, [ecx]
sub dword [ecx], ebx
inc ecx
add byte [eax + 0x19], al
inc ecx
add byte [esi + 0x19], ch
inc ecx
add byte [eax - 0x6dffbee7], al
sbb dword [ecx], eax
mov dh, 0x19
inc ecx
add byte [ecx + 0xd0ec], al
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
mov dword [esp + 0x10], 0x104
je 0x411a93
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test bl, 0x20
je 0x411abc
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.0x411acd.3
movzx ecx, byte [ebx + 0x411c8c]
jmp dword [ecx*4 + 0x411c74]
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 0x411b10
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411af2
mov cx, word [0x42d58c]
mov word [edi], cx
mov dl, byte [0x42d58e]
jmp 0x411b28
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411b10
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.00420537
lea eax, [esp + 0x70]
add esp, 0x10
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411b50
mov edi, ebp
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411b60
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 0x411b90
jmp 0x411bf7
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 0x411bc0
jmp 0x411bf7
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 0x411bf0
sub eax, edx
cmp ebp, esi
je 0x411c13
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.00420833
lea ecx, [ecx]
aam 0x1a
inc ecx
add byte [ecx - 0x36ffbee5], bl
sbb eax, dword [ecx]
xor bl, byte [ecx + eax*2]
add byte [esi + 28], al
inc ecx
add byte [edx + 0x1c], bl
inc ecx
add byte [eax], al
add dword [edx], eax
add eax, 84215045
add eax, 84215045
add eax, 67306757
int3