Function at 0x1005f0b4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018405e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x101ed40c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
push dword [edi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], eax
call esi
push dword [edi + 0xc]
lea eax, [edi + 0xc]
mov dword [ebp - 0x24], eax
call esi
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x1005f2e6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.10043000
mov ecx, eax
test ecx, ecx
je 0x1005f2f0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
dec eax
mov byte [ebp - 4], 1
cmp eax, 3
ja case.default.0x1005f06b
jmp dword [eax*4 + 0x1005f2fc]
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
add eax, 0x10
push eax
call fcn.1004e420
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x14
push eax
call fcn.1004e420
mov esi, dword [ebp - 0x14]
jmp case.default.0x1005f06b
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
add eax, 0x2c
push eax
call fcn.1004e420
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x30
push eax
call fcn.1004e420
mov esi, dword [ebp - 0x14]
jmp case.default.0x1005f06b
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
add eax, 0x44
push eax
call fcn.1004e420
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x48
push eax
call fcn.1004e420
mov esi, dword [ebp - 0x14]
jmp case.default.0x1005f06b
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
add eax, 0x6c
push eax
call fcn.1004e420
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
cmp dword [eax - 0xc], 0
je 0x1005f1b1
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebp + 8], eax
call fcn.1012656a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x1005f12c
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1005e9b0
jmp 0x1005f12e
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1005e5c0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
push 0xea60
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
call fcn.1005eeb0
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x1005f26d
mov byte [ebp - 4], 1
test ecx, ecx
je 0x1005f197
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1005f197
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1005f197
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005f28f
cmp dword [esi - 0xc], 0
je 0x1005f296
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x2c], xmm0
mov eax, dword [eax + 0x10]
mov dword [ebp + 8], eax
call fcn.1012656a
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1005f1f4
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.1005e9b0
jmp 0x1005f1f6
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.1005e5c0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
push 0xea60
push dword [ebp - 0x24]
mov byte [ebp - 4], 5
push esi
call fcn.1005eeb0
mov ecx, dword [ebp - 0x28]
test eax, eax
je 0x1005f26d
test ecx, ecx
je 0x1005f255
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1005f255
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1005f255
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], 1
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005f296
jmp 0x1005f28f
test ecx, ecx
je 0x1005f28f
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1005f28f
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x28]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1005f28f
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005f2b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1005f2d0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10042d10
invalid
push 0x80004005
call fcn.10042d10
nop
jb 0x1005f2ee
add eax, 0x5f09310
adc byte [eax + esi*8 - 0xf2aeffb], dh
add eax, 0xcccccc10
int3