Function at 0x4028a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42c9e9
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x43ab90]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
call fcn.00409516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4028ee
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x28]
sub ecx, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 1
je 0x402a12
sub ecx, 1
je 0x4029df
sub ecx, 1
jne 0x402ab4
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x40294f
push 0x104
mov ecx, esi
call fcn.00401710
mov edi, dword [esi]
call fcn.00409e7a
mov eax, dword [eax + 8]
push 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi]
test ecx, ecx
mov ebp, eax
jne 0x402972
xor eax, eax
jmp 0x402984
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402977
sub eax, edi
js 0x4029d5
cmp eax, dword [ecx - 8]
jg 0x4029d5
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x4029b7
push 0x104
mov ecx, esi
call fcn.00401710
mov edx, dword [esi]
cmp byte [edx + ebp - 1], 0x5c
lea eax, [edx + ebp - 1]
je 0x402ab1
sub eax, 1
cmp byte [eax], 0x5c
jne 0x4029c8
jmp 0x402ab1
push 0x80070057
call fcn.00401090
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x4029ff
push 0x104
mov ecx, esi
call fcn.00401710
mov eax, dword [esi]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x402ab4
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x402a32
push 0x104
mov ecx, esi
call fcn.00401710
mov eax, dword [esi]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esi]
test ecx, ecx
mov ebp, eax
jne 0x402a4c
xor eax, eax
jmp 0x402a62
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402a51
sub eax, edi
js 0x4029d5
cmp eax, dword [ecx - 8]
jg 0x4029d5
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x402a99
push 0x104
mov ecx, esi
call fcn.00401710
mov edx, dword [esi]
cmp byte [edx + ebp - 1], 0x5c
lea eax, [edx + ebp - 1]
je 0x402aae
sub eax, 1
cmp byte [eax], 0x5c
jne 0x402aa6
add eax, 1
mov byte [eax], 0
mov ecx, dword [esi]
test ecx, ecx
jne 0x402abe
xor eax, eax
jmp 0x402ad4
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402ac3
sub eax, edi
js 0x4029d5
cmp eax, dword [ecx - 8]
jg 0x4029d5
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
jl 0x4029d5
cmp eax, edx
jg 0x4029d5
cmp byte [ecx + eax], 0x5c
je 0x402b0d
push 0x5c
mov ecx, esi
call fcn.00402760
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 8