Function at 0x1002ba50
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100590c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1006c3ac]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006c3ac]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x1002ba99
mov eax, dword [eax + 4]
push eax
push esi
call fcn.10004850
mov eax, dword [esi]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x24], cx
mov ecx, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
lea esi, [ecx + 2]
mov ebx, 2
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, ebx
cmp dx, di
jne 0x1002bac0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.1000b540
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x1002bb02
cmp dword [esp + 0x38], 8
jb 0x1002bafb
mov edx, dword [esp + 0x24]
push edx
call fcn.1003f2c6
add esp, 4
xor eax, eax
jmp 0x1002bd91
cmp eax, 1
jne 0x1002bb16
push eax
push 0x1006065c
lea eax, [esp + 0x28]
call fcn.10017510
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
xor edx, edx
lea esi, [esp + 0x40]
call fcn.1002be00
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x40]
mov ebp, 8
cmp dword [esp + 0x54], ebp
jae 0x1002bb43
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002bb8e
cmp dword [esp + 0x54], ebp
jb 0x1002bb61
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1003f2c6
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
cmp dword [esp + 0x38], ebp
jb 0x1002bafb
mov eax, dword [esp + 0x24]
push eax
call fcn.1003f2c6
add esp, 4
xor eax, eax
jmp 0x1002bd91
mov edx, dword [0x1006e504]
mov eax, dword [edx + 0xc]
mov ecx, 0x1006e504
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x80], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.5AF7F6BE_B495_450d_9259_94D5926309A0_d__d
lea edi, [esp + 0x28]
call fcn.100126a0
mov ecx, dword [esp + 0x4c]
xor edi, edi
add esp, 0xc
mov dword [esp + 0x18], edi
cmp dword [esp + 0x54], ebp
jae 0x1002bbdf
lea ecx, [esp + 0x40]
lea edx, [esp + 0x14]
push edx
call fcn.10001cd0
mov byte [esp + 0x80], 3
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push eax
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.10013900
mov ecx, dword [esp + 0x14]
push 0x100605fc
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.1003fec1
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
jne 0x1002bc7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bc50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bb4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1002bb4e
push eax
call fcn.1004001f
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x80], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1002bcb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x80], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002bcdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x1002bd23
jae 0x1002bceb
call fcn.1003f767
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebp
jae 0x1002bcf9
lea eax, [esp + 0x24]
cmp word [eax + 4], di
je 0x1002bd23
mov edi, ebx
lea eax, [esp + 0x20]
call fcn.1002bdd0
cmp word [eax], 0x5c
je 0x1002bd23
lea eax, [esp + 0x20]
call fcn.1002bdd0
cmp word [eax], 0x2f
jne 0x1002bdb9
mov eax, str.:___
lea ecx, [esp + 0x58]
call fcn.1000b630
mov eax, dword [esp + 0x34]
cmp eax, 3
jbe 0x1002bd71
mov edi, 3
nop
lea eax, [esp + 0x20]
call fcn.1002bdd0
movzx ecx, word [eax]
lea edx, [esp + 0x18]
push edx
mov ebx, 1
xor eax, eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x1c], ecx
call fcn.1002be30
cmp eax, 0xffffffff
jne 0x1002bdb0
inc edi
cmp edi, dword [esp + 0x34]
jb 0x1002bd40
lea esi, [esp + 0x58]
call fcn.10002040
lea esi, [esp + 0x3c]
call fcn.10002040
lea esi, [esp + 0x20]
call fcn.10002040
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1003f2d1
add esp, 0x70
ret
lea esi, [esp + 0x58]
call fcn.10002040
lea esi, [esp + 0x3c]
call fcn.10002040
lea esi, [esp + 0x20]
call fcn.10002040
xor eax, eax
jmp 0x1002bd91