Function at 0x401f80
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x430700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
lea ecx, [esp + 0x15c]
mov dword [esp + 0x154], ebp
call fcn.00428dba
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov edx, 3
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 0x5c
cmp ecx, edx
jbe 0x40203b
cmp byte [esp + edx + 0x48], bl
je 0x402008
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x401fed
jmp 0x40203b
mov edi, 0x43b1ec
or ecx, 0xffffffff
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
or ecx, 0xffffffff
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, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.00428960
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call fcn.00428dba
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
push ecx
lea ecx, [esp + 0x160]
call fcn.0042780b
test eax, eax
jl 0x40207b
mov dword [esp + 0x20], 1
push ebx
lea ecx, [esp + 0x160]
call fcn.004277e9
mov esi, eax
cmp esi, ebp
jl 0x40226a
mov eax, dword [0x43db14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x15c]
lea ecx, [esp + 0x15c]
mov byte [esp + 0x154], 3
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004276f5
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.004289df
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 3
call fcn.004288f2
inc esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x164]
call fcn.00427771
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 5
call fcn.004289df
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 3
call fcn.004288f2
lea ecx, [esp + 0x2c]
call fcn.0041ab80
mov eax, dword [esp + 0x164]
mov byte [esp + 0x154], 6
cmp eax, ebp
mov dword [esp + 0x18], ebp
jle 0x402237
mov edx, dword [esp + 0x160]
lea ebp, [edx + 0x3c]
lea edi, [ebp - 0x1e]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402237
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4021b0
lea eax, [esp + 0x14]
push ebp
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00428b3b
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 7
call fcn.0041ac43
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x154], 6
call fcn.004288f2
test esi, esi
je 0x4021b0
mov ebx, 1
jmp 0x4021b2
xor ebx, ebx
lea edx, [ebp + 0x32]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402207
push edx
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00428b3b
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 8
call fcn.0041ac43
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x154], 6
call fcn.004288f2
test esi, esi
je 0x402207
mov eax, 1
jmp 0x402209
xor eax, eax
test ebx, ebx
jne 0x4022ad
test eax, eax
jne 0x40237e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x164]
inc eax
add ebp, 0xa0
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40214d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041abbd
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.004288f2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.004288f2
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x15c]
call fcn.004288f2
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
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40237e
lea edx, [ebp + 0x32]
or esi, 0xffffffff
mov edi, edx
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40232e
push str._sysdir_
push edx
call fcn.0041be60
add esp, 8
test eax, eax
je 0x40232e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041abbd
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.004288f2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.004288f2
mov dword [esp + 0x154], esi
jmp 0x4023cd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041abbd
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.004288f2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.004288f2
mov dword [esp + 0x154], esi
jmp 0x402286
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041abbd
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.004288f2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.004288f2
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x15c]
call fcn.004288f2
mov eax, 1
jmp 0x402294