Function at 0x414960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45da62
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x4762c4]
xor eax, esp
mov dword [esp + 0x1b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4762c4]
xor eax, esp
push eax
lea eax, [esp + 0x1cc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1e4]
mov ebp, dword [esp + 0x1dc]
mov esi, dword [esp + 0x1e0]
xor ebx, ebx
push ebx
push 0x462a70
lea ecx, [esp + 0xb0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00402de0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.WINDIR
push esi
mov dword [esp + 0x1dc], ebx
call edi
test eax, eax
jne 0x414a53
push 0x104
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x414c71
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb0]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push edx
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00402d00
cmp dword [esp + 0xc0], 0x10
jb 0x414e9c
mov eax, dword [esp + 0xac]
push eax
jmp 0x414e94
push str.WINSYSDIR
push esi
call edi
test eax, eax
jne 0x414a74
push 0x104
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x414a11
push str.WINSYSWOW64DIR
push esi
call edi
test eax, eax
jne 0x414abd
lea ecx, [esp + 0xc4]
push 0x104
push ecx
call fcn.004067a0
add esp, 8
test eax, eax
jne 0x414c71
lea edx, [esp + 0xa8]
push edx
mov ecx, ebp
call fcn.00402eb0
lea ecx, [esp + 0xa8]
call fcn.004115b0
jmp 0x414e9c
push str.PROGRAMFILES
push esi
call edi
test eax, eax
jne 0x414b03
push 0x26
lea eax, [esp + 0xc8]
push eax
call fcn.0042d510
add esp, 8
test al, al
jne 0x414c71
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebp
call fcn.00402eb0
lea ecx, [esp + 0xa8]
call fcn.004115b0
jmp 0x414e9c
push str.COLORDIR
push esi
call edi
test eax, eax
jne 0x414b37
cmp dword [0x477a54], 1
jne 0x414b25
cmp dword [0x477a58], 5
jb 0x414a9d
lea eax, [esp + 0xc4]
push eax
call fcn.0042d560
add esp, 4
jmp 0x414adb
push str.MODULEDIR
push esi
call edi
test eax, eax
jne 0x414ba6
cmp dword [0x477ab8], ebx
je 0x414a9d
cmp dword [0x477abc], 0x10
mov esi, dword [0x477aa8]
jae 0x414b63
mov esi, 0x477aa8
lea eax, [esp + 0xc4]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x414b98
mov cl, byte [eax + esi]
cmp cl, bl
je 0x414b98
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x414b73
sub eax, 1
mov byte [eax], bl
jmp 0x414c71
cmp edx, ebx
jne 0x414b9f
sub eax, 1
mov byte [eax], bl
jmp 0x414c71
push str.ALLUSERS_PROGRAM
push esi
call edi
test eax, eax
jne 0x414bc7
mov eax, dword [0x477a54]
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
jmp 0x414acb
push str.ALLUSER_DESKTOP
push esi
call edi
test eax, eax
jne 0x414c14
mov eax, dword [0x477a54]
neg eax
sbb eax, eax
and eax, 0x19
push eax
lea edx, [esp + 0xc8]
push edx
call fcn.0042d510
add esp, 8
test al, al
jne 0x414c71
lea eax, [esp + 0xa8]
push eax
mov ecx, ebp
call fcn.00402eb0
lea ecx, [esp + 0xa8]
call fcn.004115b0
jmp 0x414e9c
push str.ALLUSER_STARTUP
push esi
call edi
test eax, eax
jne 0x414c64
mov eax, dword [0x477a54]
neg eax
sbb eax, eax
and eax, 0x11
add eax, 7
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.0042d510
add esp, 8
test al, al
jne 0x414c71
lea edx, [esp + 0xa8]
push edx
mov ecx, ebp
call fcn.00402eb0
lea ecx, [esp + 0xa8]
call fcn.004115b0
jmp 0x414e9c
push esi
lea ecx, [esp + 0xac]
call fcn.00403240
lea eax, [esp + 0xc4]
push eax
call fcn.0042d790
mov esi, dword [esp + 0x18]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414e2f
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414cb0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00402de0
push 1
push 0x462a84
lea ecx, [esp + 0x20]
mov byte [esp + 0x1dc], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.00402de0
lea eax, [esp + 0xc4]
mov byte [esp + 0x1d4], 2
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414d08
sub eax, esi
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402de0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x94]
push ecx
mov byte [esp + 0x1e0], 3
call fcn.0040a3d0
lea edx, [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x1ec], 4
call fcn.0040a3d0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1e0], 5
call fcn.00402d00
mov esi, 0x10
cmp dword [esp + 0x88], esi
jb 0x414d95
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x414dc0
mov edx, dword [esp + 0x90]
push edx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
jb 0x414de8
mov eax, dword [esp + 0x38]
push eax
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x30], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x414e07
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f837
add esp, 4
cmp dword [esp + 0x68], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d4], bl
jb 0x414e68
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f837
add esp, 4
jmp 0x414e68
lea eax, [esp + 0xc4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414e40
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xb0]
call fcn.00402de0
mov edi, 0xf
lea esi, [edi + 1]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xb0]
push ecx
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], ebx
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00402d00
cmp dword [esp + 0xc0], esi
jb 0x414e9c
mov edx, dword [esp + 0xac]
push edx
call fcn.0042f837
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00440494
add esp, 0x1c4
ret 0xc