Function at 0x414910
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x45daa2
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.00402d40
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.WINDIR
push esi
mov dword [esp + 0x1dc], ebx
call edi
test eax, eax
jne 0x414a03
push 0x104
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x414c21
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.00402c60
cmp dword [esp + 0xc0], 0x10
jb 0x414e4c
mov eax, dword [esp + 0xac]
push eax
jmp 0x414e44
push str.WINSYSDIR
push esi
call edi
test eax, eax
jne 0x414a24
push 0x104
lea ecx, [esp + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4149c1
push str.WINSYSWOW64DIR
push esi
call edi
test eax, eax
jne 0x414a6d
lea ecx, [esp + 0xc4]
push 0x104
push ecx
call fcn.00406770
add esp, 8
test eax, eax
jne 0x414c21
lea edx, [esp + 0xa8]
push edx
mov ecx, ebp
call fcn.00402e10
lea ecx, [esp + 0xa8]
call fcn.00411590
jmp 0x414e4c
push str.PROGRAMFILES
push esi
call edi
test eax, eax
jne 0x414ab3
push 0x26
lea eax, [esp + 0xc8]
push eax
call fcn.0042d550
add esp, 8
test al, al
jne 0x414c21
lea ecx, [esp + 0xa8]
push ecx
mov ecx, ebp
call fcn.00402e10
lea ecx, [esp + 0xa8]
call fcn.00411590
jmp 0x414e4c
push str.COLORDIR
push esi
call edi
test eax, eax
jne 0x414ae7
cmp dword [0x477a54], 1
jne 0x414ad5
cmp dword [0x477a58], 5
jb 0x414a4d
lea eax, [esp + 0xc4]
push eax
call fcn.0042d5a0
add esp, 4
jmp 0x414a8b
push str.MODULEDIR
push esi
call edi
test eax, eax
jne 0x414b56
cmp dword [0x477ab8], ebx
je 0x414a4d
cmp dword [0x477abc], 0x10
mov esi, dword [0x477aa8]
jae 0x414b13
mov esi, 0x477aa8
lea eax, [esp + 0xc4]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x414b48
mov cl, byte [eax + esi]
cmp cl, bl
je 0x414b48
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x414b23
sub eax, 1
mov byte [eax], bl
jmp 0x414c21
cmp edx, ebx
jne 0x414b4f
sub eax, 1
mov byte [eax], bl
jmp 0x414c21
push str.ALLUSERS_PROGRAM
push esi
call edi
test eax, eax
jne 0x414b77
mov eax, dword [0x477a54]
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
jmp 0x414a7b
push str.ALLUSER_DESKTOP
push esi
call edi
test eax, eax
jne 0x414bc4
mov eax, dword [0x477a54]
neg eax
sbb eax, eax
and eax, 0x19
push eax
lea edx, [esp + 0xc8]
push edx
call fcn.0042d550
add esp, 8
test al, al
jne 0x414c21
lea eax, [esp + 0xa8]
push eax
mov ecx, ebp
call fcn.00402e10
lea ecx, [esp + 0xa8]
call fcn.00411590
jmp 0x414e4c
push str.ALLUSER_STARTUP
push esi
call edi
test eax, eax
jne 0x414c14
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.0042d550
add esp, 8
test al, al
jne 0x414c21
lea edx, [esp + 0xa8]
push edx
mov ecx, ebp
call fcn.00402e10
lea ecx, [esp + 0xa8]
call fcn.00411590
jmp 0x414e4c
push esi
lea ecx, [esp + 0xac]
call fcn.004031a0
lea eax, [esp + 0xc4]
push eax
call fcn.0042d7d0
mov esi, dword [esp + 0x18]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414ddf
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 0x414c60
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00402d40
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.00402d40
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 0x414cb8
sub eax, esi
push eax
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402d40
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.0040a3f0
lea edx, [esp + 0x5c]
push edx
push eax
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x1ec], 4
call fcn.0040a3f0
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1e0], 5
call fcn.00402c60
mov esi, 0x10
cmp dword [esp + 0x88], esi
jb 0x414d45
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0042f877
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
jb 0x414d70
mov edx, dword [esp + 0x90]
push edx
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
jb 0x414d98
mov eax, dword [esp + 0x38]
push eax
call fcn.0042f877
add esp, 4
cmp dword [esp + 0x30], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x414db7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0042f877
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 0x414e18
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f877
add esp, 4
jmp 0x414e18
lea eax, [esp + 0xc4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x414df0
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xb0]
call fcn.00402d40
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.00402c60
cmp dword [esp + 0xc0], esi
jb 0x414e4c
mov edx, dword [esp + 0xac]
push edx
call fcn.0042f877
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.004404d4
add esp, 0x1c4
ret 0xc