Function at 0x402000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x425b70
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.0041f3fd
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 0x4020bb
cmp byte [esp + edx + 0x48], bl
je 0x402088
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 0x40206d
jmp 0x4020bb
mov edi, 0x42e158
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.0041eff0
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 1
call fcn.0041f3fd
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
push ecx
lea ecx, [esp + 0x160]
call fcn.0041e046
test eax, eax
jl 0x4020fb
mov dword [esp + 0x20], 1
push ebx
lea ecx, [esp + 0x160]
call fcn.0041e024
mov esi, eax
cmp esi, ebp
jl 0x4022d4
mov eax, dword [0x42f3b0]
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.0041df05
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 4
call fcn.0041f06f
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 3
call fcn.0041ef82
inc esi
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x164]
call fcn.0041df81
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 5
call fcn.0041f06f
lea ecx, [esp + 0x18]
mov byte [esp + 0x154], 3
call fcn.0041ef82
lea ecx, [esp + 0x2c]
call fcn.00410850
mov edx, dword [esp + 0x160]
mov bl, 6
mov byte [esp + 0x154], bl
mov dword [esp + 0x18], ebp
lea esi, [edx + 0x3c]
lea edi, [esi - 0x1e]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4022a1
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402221
lea eax, [esp + 0x14]
push esi
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 edi, eax
mov byte [esp + 0x154], bl
call fcn.0041ef82
test edi, edi
je 0x402221
mov ebp, 1
jmp 0x402223
xor ebp, ebp
lea edx, [esi + 0x32]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402277
push edx
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0041f1cb
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 8
call fcn.00410913
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x154], bl
call fcn.0041ef82
test edi, edi
je 0x402277
mov eax, 1
jmp 0x402279
xor eax, eax
test ebp, ebp
jne 0x402317
test eax, eax
jne 0x4023e8
mov eax, dword [esp + 0x18]
add esi, 0xa0
inc eax
cmp eax, 0x64
mov dword [esp + 0x18], eax
jl 0x4021bf
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041088d
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0041ef82
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x15c]
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
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4023e8
lea edx, [esi + 0x32]
or esi, 0xffffffff
mov edi, edx
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402398
push str._sysdir_
push edx
call fcn.00411f10
add esp, 8
test eax, eax
je 0x402398
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041088d
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0041ef82
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], esi
jmp 0x402437
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041088d
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0041ef82
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], esi
jmp 0x4022f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 3
call fcn.0041088d
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0041ef82
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 1
call fcn.0041ef82
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.0041ef82
mov dword [esp + 0x154], 0xffffffff
lea ecx, [esp + 0x15c]
call fcn.0041ef82
mov eax, 1
jmp 0x4022fe