Function at 0x401090
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425a58
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
je 0x4013c9
mov eax, dword [0x42f3b0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x154], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
je 0x4013b5
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x4013b5
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.00401440
test eax, eax
je 0x4013b5
mov eax, dword [esp + 0x10]
push 0x432af0
push eax
call fcn.00411964
add esp, 8
test eax, eax
je 0x4013b5
lea ecx, [esp + 0x10]
call fcn.0041f3fd
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ebp, 0xffffffff
lea edi, [esp + 0x48]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov ebx, 3
dec ecx
cmp ecx, ebx
mov edx, ebx
jbe 0x4011b1
cmp byte [esp + edx + 0x48], 0x5c
je 0x401181
lea edi, [esp + 0x48]
mov ecx, ebp
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x401166
jmp 0x4011b1
mov edi, 0x42e158
mov ecx, ebp
xor eax, eax
mov byte [esp + edx + 0x48], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x14]
push eax
call fcn.0041eff0
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 1
call fcn.0041f3fd
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e046
test eax, eax
jge 0x4011f1
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041e024
test eax, eax
jge 0x40120e
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], ebp
jmp 0x4013c0
mov edx, dword [0x42f3b0]
mov dword [esp + 0x18], edx
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 2
call fcn.0041df81
push 0x42e158
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x160], bl
call fcn.0041f1cb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 4
call fcn.0041f06f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], bl
call fcn.0041ef82
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 2
call fcn.0041ef82
lea ecx, [esp + 0x2c]
call fcn.00410850
mov byte [esp + 0x154], 5
mov dword [esp + 0x1c], 0
mov edx, dword [0x432b84]
mov eax, dword [esp + 0x1c]
or ecx, 0xffffffff
lea ebp, [eax + edx + 0x621]
xor eax, eax
lea edi, [ebp + 0x1e]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401382
lea edx, [ebp + 0x3c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401309
push edx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0041f1cb
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 6
call fcn.00410913
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x154], 5
call fcn.0041ef82
test esi, esi
je 0x401309
mov ebx, 1
jmp 0x40130b
xor ebx, ebx
lea edx, [ebp + 0x6e]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401360
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0041f1cb
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 7
call fcn.00410913
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x154], 5
call fcn.0041ef82
test esi, esi
je 0x401360
mov eax, 1
jmp 0x401362
xor eax, eax
test ebx, ebx
jne 0x4013e4
test eax, eax
jne 0x4013e4
mov eax, dword [esp + 0x1c]
add eax, 0xa0
cmp eax, 0x13880
mov dword [esp + 0x1c], eax
jl 0x401292
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 2
call fcn.0041088d
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0041ef82
xor eax, eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x148
ret
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 2
call fcn.0041088d
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 0
call fcn.0041ef82
lea ecx, [esp + 0x10]
mov dword [esp + 0x154], 0xffffffff
call fcn.0041ef82
mov eax, 1
jmp 0x4013cb