Function at 0x4215b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a7b1
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4b42b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x138]
mov dword [ebp - 0x138], 0
push eax
call fcn.00421520
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x138]
test eax, eax
setne bl
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x421625
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x421630
xor al, al
jmp 0x421847
push 0x70
lea eax, [ebp - 0x134]
push 0
push eax
call fcn.004454b0
add esp, 0xc
lea ecx, [ebp - 0x134]
call fcn.00407ba0
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.00405ca0
test al, al
jne 0x421671
mov ecx, dword [esi + 0xc]
call fcn.00405d60
test al, al
jne 0x42181c
push 0x54
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.004454b0
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.00411700
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], 0x48e304
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4b6e90]
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00421520
push 0x40
push 1
push dword [eax]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00428840
mov edx, dword [ebp - 0x138]
mov ebx, eax
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x421743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x421810
push 0x60
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.004454b0
add esp, 0xc
mov dword [ebp - 0xc4], 0x48cbd0
push 0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov dword [ebp - 0x138], 1
push eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0x48ffb4
mov dword [ebp - 0xb0], 0
movlpd qword [ebp - 0xbc], xmm0
call fcn.00417580
push 0
push dword [esi + 0xc]
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x134]
call fcn.00408140
lea ecx, [ebp - 0x64]
call fcn.00428200
mov eax, dword [ebp - 0xc4]
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], 0x48ffb4
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0xac], 0x48078c
call fcn.00442631
add esp, 4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.004246e0
mov ecx, dword [esi + 0xc]
call fcn.00405ca0
test al, al
jne 0x421838
mov ecx, dword [esi + 0xc]
call fcn.00405d60
test al, al
je 0x421838
mov bl, 1
jmp 0x42183a
xor bl, bl
lea ecx, [ebp - 0x134]
call fcn.00411f00
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044448b
mov esp, ebp
pop ebp
ret