Function at 0x401f90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4259b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push ebp
push esi
push edi
xor ebp, ebp
lea ecx, [esp + 0x158]
mov dword [esp + 0x150], ebp
call fcn.0041f24d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x44]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x44]
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 0x40204b
cmp byte [esp + edx + 0x44], bl
je 0x402018
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x401ffd
jmp 0x40204b
mov edi, 0x42e158
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + edx + 0x44], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
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 + 0x44]
lea ecx, [esp + 0x14]
push eax
call fcn.0041ee40
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 1
call fcn.0041f24d
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x15c]
call fcn.0041de96
test eax, eax
jge 0x40225d
push ebx
lea ecx, [esp + 0x15c]
call fcn.0041de74
mov esi, eax
cmp esi, ebp
jl 0x40225d
mov eax, dword [0x42f390]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x158]
lea ecx, [esp + 0x158]
mov byte [esp + 0x150], 3
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0041dd55
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 4
call fcn.0041eebf
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 3
call fcn.0041edd2
inc esi
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x160]
call fcn.0041ddd1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x154], 5
call fcn.0041eebf
lea ecx, [esp + 0x10]
mov byte [esp + 0x150], 3
call fcn.0041edd2
lea ecx, [esp + 0x28]
call fcn.004106c0
mov edx, dword [esp + 0x15c]
mov dword [esp + 0x10], ebp
mov byte [esp + 0x150], 6
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 0x40222a
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4021a9
lea eax, [esp + 0x18]
push ebp
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0041f01b
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 7
call fcn.00410783
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x150], 6
call fcn.0041edd2
test esi, esi
je 0x4021a9
mov ebx, 1
jmp 0x4021ab
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 0x402200
push edx
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0041f01b
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 8
call fcn.00410783
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x150], 6
call fcn.0041edd2
test esi, esi
je 0x402200
mov eax, 1
jmp 0x402202
xor eax, eax
test ebx, ebx
jne 0x4022a0
test eax, eax
jne 0x4022a0
mov eax, dword [esp + 0x10]
add ebp, 0xa0
inc eax
cmp eax, 0x64
mov dword [esp + 0x10], eax
jl 0x402146
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 3
call fcn.004106fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 2
call fcn.0041edd2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 1
call fcn.0041edd2
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 0
call fcn.0041edd2
lea ecx, [esp + 0x158]
mov dword [esp + 0x150], 0xffffffff
call fcn.0041edd2
xor eax, eax
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret
lea ecx, [esp + 0x28]
mov byte [esp + 0x150], 3
call fcn.004106fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], 2
call fcn.0041edd2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x150], 1
call fcn.0041edd2
lea ecx, [esp + 0x14]
mov byte [esp + 0x150], 0
call fcn.0041edd2
lea ecx, [esp + 0x158]
mov dword [esp + 0x150], 0xffffffff
call fcn.0041edd2
mov eax, 1
jmp 0x402287