Function at 0x413120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a1db
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
mov eax, dword [0x5e2500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
push str.DirChangePage::OnWizardNext
lea ecx, [ebp - 0x18]
call fcn.00404670
mov dword [ebp - 4], 0
call fcn.0044c93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41317e
push 0x80004005
call fcn.00401330
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x278]
mov byte [ebp - 4], 1
call fcn.0045c4ed
mov ecx, 0x5e3c90
call fcn.0042a260
cmp eax, 1
jne 0x4131ba
mov edx, dword [ebp - 0x18]
push str.Overwrite_check_box_is_checked
push edx
jmp 0x4131c3
mov eax, dword [ebp - 0x18]
push str.Overwrite_check_box_is_unchecked
push eax
push 8
push 0x5e3e78
call fcn.0042b490
mov ecx, dword [0x5e3b8c]
mov eax, dword [ebp - 0x10]
add esp, 0x10
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401e40
add eax, 0x10
mov dword [esi], eax
mov edx, esp
mov dword [ebp - 0x20], esp
push edx
mov ecx, 0x5e3c90
mov byte [ebp - 4], 2
call fcn.004276d0
mov ecx, 0x5e3c90
mov byte [ebp - 4], 1
call fcn.0042a630
mov edi, eax
mov eax, dword [ebp - 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
mov ebx, edx
call fcn.00401e40
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x5e3e60
call fcn.0042f630
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
mov byte [ebp - 4], 3
je 0x413257
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.00403380
push ebx
push edi
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5e3c6c
call fcn.00422740
test eax, eax
jne 0x41330b
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x2ec]
push eax
call fcn.0045e699
mov ecx, dword [esi + 0x2ec]
push 0
call fcn.0045e6db
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413397
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x413397
push eax
lea ecx, [ebp - 0x154]
call fcn.0040c150
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
call fcn.0045332b
lea ecx, [ebp - 0x154]
call fcn.0040b890
cmp eax, 0x3ea
jne 0x413388
mov ecx, dword [esi + 0x2ec]
push 5
call fcn.0045e699
mov ecx, dword [esi + 0x2ec]
push 1
call fcn.0045e6db
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 3
call fcn.0040c200
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41332e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413373
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 3
call fcn.0040c200
mov ecx, esi
call fcn.00511e8b
mov esi, eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41340c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret