Function at 0x4345f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466c91
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 8]
push 0x475810
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0040fbe0
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 1
cmp dword [esi + 0x70], edi
je 0x4346a3
add esi, 0x7c
push esi
mov ecx, ebx
call fcn.0040f840
mov eax, dword [ebx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x434661
mov eax, dword [eax + 4]
push eax
mov ecx, ebx
call fcn.0040f210
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
cmp eax, edi
jne 0x434677
xor eax, eax
jmp 0x434685
push ecx
push eax
call fcn.00449ab1
add esp, 8
cmp eax, edi
jl 0x434699
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x434699
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4346e2
push 0x80070057
call fcn.00403dd0
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004192b0
add esp, 8
push eax
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.0040f840
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 0x4346e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xc
push 0x46e5c8
mov ecx, ebx
call fcn.00415770
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x434877
push 4
call fcn.004489fb
add esp, 4
cmp eax, edi
je 0x434716
lea ecx, [ebp - 0x34]
mov dword [eax], ecx
jmp 0x434718
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 4], 3
call fcn.0041abb0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
add esp, 4
sar eax, 2
cmp edi, eax
jae 0x4347fd
mov eax, dword [ebp - 0x28]
lea eax, [eax + edi*4]
push 0x46e5b0
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040f8b0
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [ebx]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov byte [ebp - 4], 4
cmp eax, esi
je 0x4347b9
cmp dword [esi + 0xc], 0
jl 0x4347ad
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4347ad
push eax
call fcn.0040f2a0
mov dword [ebp - 0x10], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4347a3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x4347b9
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.0040f710
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4347dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4347fb
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x28]
inc edi
sar eax, 2
cmp edi, eax
jb 0x434748
xor edi, edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434818
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00422c90
jmp 0x434877
push 4
call fcn.004489fb
add esp, 4
cmp eax, edi
je 0x43482d
lea ecx, [ebp - 0x4c]
mov dword [eax], ecx
jmp 0x43482f
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 6
call fcn.0041acf0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
xor esi, esi
sar eax, 2
add esp, 4
mov dword [ebp - 0x10], esi
test eax, eax
ja 0x4348aa
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00422c90
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00422c90
xor edi, edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x434891
push edi
push 0x475810
mov ecx, ebx
call fcn.0040f710
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
cmp esi, eax
jb 0x4348b3
call fcn.00448717
mov eax, dword [ebp - 0x40]
lea eax, [eax + esi*4]
push 0x46e5b0
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040f8b0
add esp, 0xc
mov eax, dword [eax]
mov edi, dword [ebx]
lea esi, [eax - 0x10]
sub edi, 0x10
mov byte [ebp - 4], 7
cmp esi, edi
je 0x43497b
cmp dword [edi + 0xc], 0
jl 0x43496f
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x43496f
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x434910
cmp eax, dword [esi]
jne 0x434910
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x43494f
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4349cc
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
lea edx, [ecx + ecx + 2]
push edx
add esi, 0x10
push esi
lea ecx, [ecx + ecx + 2]
push ecx
add eax, 0x10
push eax
call fcn.004484c0
mov esi, dword [ebp - 0x18]
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x434968
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [ebx], esi
jmp 0x43497b
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.0040f710
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43499e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43485d
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
inc ecx
sar eax, 2
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jb 0x4348a7
jmp 0x43485d
call fcn.0040f200
int3