Function at 0x1000b3f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e8d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10013034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.1000bdd0
mov dword [ebp - 0x24], eax
cmp eax, 1
jne 0x1000b619
mov ecx, dword [esi + 0x3c]
lea eax, [ebp - 0x10]
push eax
call fcn.10006860
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.1000bc20
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
test edi, edi
jns 0x1000b468
push 0x80070057
call fcn.10001b80
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or eax, ecx
jge 0x1000b482
mov eax, edi
mov ecx, ebx
call fcn.10001740
mov eax, dword [ebx]
lea ecx, [edi + 1]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__wcslwr_s]
mov eax, dword [ebx]
add esp, 8
cmp edi, dword [eax - 8]
jg 0x1000b45e
mov dword [eax - 0xc], edi
mov edx, dword [ebx]
xor eax, eax
mov word [edx + edi*2], ax
mov eax, dword [ebx]
sub eax, 0x10
call fcn.10007d50
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000b4d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esi + 0x4c0]
xor ecx, ecx
test ebx, ebx
setne cl
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x1000b62e
mov eax, dword [edi]
mov ecx, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b526
test dx, dx
je 0x1000b522
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b526
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b500
xor eax, eax
jmp 0x1000b52b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x1000b638
mov eax, dword [ebp - 0x14]
inc eax
add edi, 4
mov dword [ebp - 0x14], eax
cmp eax, 3
jb 0x1000b4ee
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x4c0]
lea eax, [eax + ecx*4 - 4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [ebp - 0x10]
call fcn.100078f0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, 0x1000f36c
lea edx, [esi + 0x488]
call fcn.10002a40
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 0x48c], ebx
mov dword [esi + 0x490], ebx
mov dword [esi + 0x494], ebx
mov dword [esi + 0x498], ebx
mov dword [esi + 0x4a0], ebx
mov dword [esi + 0x49c], ebx
mov dword [esi + 0x4a8], eax
mov dword [esi + 0x4ac], eax
mov word [esi + 0x4a4], bx
mov eax, dword [esi + 0x4bc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000b5d1
mov eax, dword [esi + 0x4bc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000b5f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000b619
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001b80
lea eax, [ebp - 0x10]
mov edi, esi
call fcn.1000bac0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000b662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000b688
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret