Function at 0x413d70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cc4a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x102c
call fcn.00480a40
mov eax, dword [0x4bc704]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc704]
xor eax, esp
push eax
lea eax, [esp + 0x1040]
mov dword fs:[0], eax
cmp dword [0x4c8060], 0
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
je 0x413f9c
cmp dword [0x4c805c], 0
je 0x413f9c
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov ecx, str.Fp_InstallPath.cpp
mov dword [esp + 0x1048], 0
test ecx, 0xffff0000
jne 0x413e31
mov edx, ecx
movzx esi, dx
push esi
call fcn.00404830
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413e43
lea eax, [esp + 0x10]
push eax
mov eax, esi
call fcn.004049f0
jmp 0x413e3f
push str.Fp_InstallPath.cpp
lea eax, [esp + 0x14]
call fcn.00404530
mov ebx, dword [esp + 0x10]
push 0x5c
push ebx
mov dword [esp + 0x1050], 1
call fcn.00468696
add esp, 8
test eax, eax
jne 0x413e62
or eax, 0xffffffff
jmp 0x413e66
sub eax, ebx
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x14]
lea edx, [esp + 0x10]
call fcn.004045c0
mov esi, eax
mov byte [esp + 0x1048], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, str.CFpInstallPath::constructInstallpath
mov byte [esp + 0x1048], 3
test ecx, 0xffff0000
jne 0x413ece
mov edx, ecx
movzx edi, dx
push edi
call fcn.00404830
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x413edc
lea eax, [esp + 0x18]
push eax
mov eax, edi
call fcn.004049f0
jmp 0x413edc
push str.CFpInstallPath::constructInstallpath
lea eax, [esp + 0x1c]
call fcn.00404530
mov edi, dword [esp + 0x28]
mov byte [esp + 0x1048], 2
mov ecx, dword [edi]
mov edx, dword [esi]
mov esi, dword [esp + 0x18]
push ecx
push 0x44
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.LOG__u:_u__s__s:_u__CFpInstallPath::constructInstallpath:_Version___s_r_n
push 0xffffffffffffffff
lea eax, [esp + 0x54]
push 0x400
push eax
call fcn.00468675
lea eax, [esi - 0x10]
add esp, 0x28
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1048], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4c805c]
test eax, eax
je 0x413f75
lea ecx, [esp + 0x34]
push ecx
push 0x20
call eax
add esp, 8
lea eax, [ebx - 0x10]
mov dword [esp + 0x1048], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4144f3
mov edx, dword [edi]
cmp dword [edx - 0xc], 0
je 0x4144f3
test ecx, ecx
jns 0x413fc7
push 0x80070057
call fcn.00404c10
cmp word [eax], 0x5c
je 0x4144f3
call fcn.00408b80
cmp dword [eax + 8], 2
jne 0x414195
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00414ff0
mov dword [esp + 0x1048], 4
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41416e
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.00404780
add eax, 0x10
mov dword [esi], eax
call fcn.00414520
test al, al
je 0x41416e
cmp dword [0x4c8060], 0
je 0x41415b
cmp dword [0x4c805c], 0
je 0x41415b
lea edx, [esp + 0x14]
push edx
mov ecx, str.Fp_InstallPath.cpp
call fcn.004044a0
mov bl, 5
mov byte [esp + 0x1048], bl
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.00468696
add esp, 8
test eax, eax
jne 0x414078
or eax, 0xffffffff
jmp 0x41407e
sub eax, dword [esp + 0x14]
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.004045c0
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.CFpInstallPath::constructInstallpath
mov byte [esp + 0x104c], 6
call fcn.004044a0
mov edx, dword [esi]
mov eax, dword [eax]
push edi
push 0x52
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.LOG__u:_u__s__s:_u__CFpInstallPath::constructInstallpath:_Delete_Path___s_r_n
push 0xffffffffffffffff
lea ecx, [esp + 0x54]
push 0x400
push ecx
call fcn.00468675
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 0x28
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4140f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1048], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41411e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4c805c]
test eax, eax
je 0x414133
lea ecx, [esp + 0x34]
push ecx
push 0x20
call eax
add esp, 8
mov byte [esp + 0x1048], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41415b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00417e40
mov edi, dword [esp + 0x20]
add esp, 8
lea eax, [edi - 0x10]
mov dword [esp + 0x1048], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414195
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
sub eax, 0x10
call fcn.00404780
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push esi
mov dword [esp + 0x104c], 7
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea edx, [esp + 0x20]
push edx
mov ecx, eax
call fcn.00404d20
mov byte [esp + 0x1048], 8
mov ecx, dword [0x4c8310]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4141eb
push 0x80004005
call fcn.00404c10
mov eax, dword [esp + 0x20]
push ecx
push eax
call fcn.00469045
add esp, 8
test eax, eax
je 0x41420f
mov eax, 0x4c8310
lea esi, [esp + 0x18]
call fcn.004123e0
mov esi, dword [esp + 0x18]
lea ebx, [esi - 0x10]
mov eax, ebx
mov dword [esp + 0x2c], ebx
call fcn.00404780
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x14]
mov byte [esp + 0x1048], 9
call fcn.004123e0
cmp dword [0x4c8060], 0
je 0x414414
cmp dword [0x4c805c], 0
je 0x414414
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, str.Fp_InstallPath.cpp
mov byte [esp + 0x1048], 0xa
test ecx, 0xffff0000
jne 0x4142a1
mov edx, ecx
movzx esi, dx
push esi
call fcn.00404830
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4142af
lea eax, [esp + 0x10]
push eax
mov eax, esi
call fcn.004049f0
jmp 0x4142af
push str.Fp_InstallPath.cpp
lea eax, [esp + 0x14]
call fcn.00404530
mov byte [esp + 0x1048], 0xb
mov esi, dword [esp + 0x10]
push 0x5c
push esi
call fcn.00468696
add esp, 8
test eax, eax
jne 0x4142cf
or eax, 0xffffffff
jmp 0x4142d3
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
lea esi, [esp + 0x24]
lea edx, [esp + 0x10]
call fcn.004045c0
mov esi, eax
mov bl, 0xc
mov byte [esp + 0x1048], bl
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, str.CFpInstallPath::constructInstallpath
mov byte [esp + 0x1048], 0xd
test ecx, 0xffff0000
jne 0x41433c
mov edx, ecx
movzx edi, dx
push edi
call fcn.00404830
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x41434a
lea eax, [esp + 0x1c]
push eax
mov eax, edi
call fcn.004049f0
jmp 0x41434a
push str.CFpInstallPath::constructInstallpath
lea eax, [esp + 0x20]
call fcn.00404530
mov byte [esp + 0x1048], bl
mov edi, dword [esp + 0x14]
mov ecx, dword [esi]
mov esi, dword [esp + 0x1c]
push edi
push 0x61
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.LOG__u:_u__s__s:_u__CFpInstallPath::constructInstallpath:_InstallPath___s_r_n
push 0xffffffffffffffff
lea edx, [esp + 0x854]
push 0x400
push edx
call fcn.00468675
lea eax, [esi - 0x10]
add esp, 0x28
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1048], 0xb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4c805c]
test eax, eax
je 0x4143e6
lea ecx, [esp + 0x834]
push ecx
push 0x20
call eax
add esp, 8
mov byte [esp + 0x1048], 9
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41440e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x2c]
jmp 0x414418
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414434
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00417e40
add esp, 8
jmp 0x41444b
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, 0xa1
je 0x414483
cmp eax, 0xce
je 0x414483
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x18]
call fcn.004046a0
mov eax, dword [esp + 0x28]
add edi, 4
call fcn.004046a0
lea ecx, [esp + 0x14]
call fcn.00404810
lea ecx, [esp + 0x20]
call fcn.00404810
lea ecx, [esp + 0x18]
call fcn.00404810
xor eax, eax
jmp 0x4144f8
lea eax, [edi - 0x10]
mov byte [esp + 0x1048], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4144a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1048], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1048], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4144f3
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, 1
mov ecx, dword [esp + 0x1040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, esp
call fcn.00467ce1
mov esp, ebp
pop ebp
ret 4