Function at 0x1001312e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22b8
call fcn.1003366c
mov eax, dword [0x100440b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22a0], ebx
mov dword [ebp - 0x22b4], ecx
mov dword [ebp - 0x22b8], eax
test esi, esi
je 0x1001343e
test ebx, ebx
je 0x1001343e
test ecx, ecx
je 0x1001343e
mov ecx, esi
call fcn.10018d09
test eax, eax
jne 0x10013199
push esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, 0x80044809
jmp 0x10013443
push 0x104
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.10018d09
test eax, eax
js 0x10013443
and dword [ebp - 0x22b0], 0
lea eax, [ebp - 0x22b0]
and dword [ebp - 0x22ac], 0
lea edx, [ebp - 0x229c]
and dword [ebp - 0x22a8], 0
push edi
push eax
push ecx
lea ecx, [ebp - 0x20c]
call fcn.10018d09
mov esi, eax
test esi, esi
js 0x10013420
mov eax, dword [ebp - 0x22ac]
test eax, eax
jg 0x10013200
mov esi, 0x80004005
jmp 0x10013420
and dword [ebp - 0x22a4], 0
test eax, eax
jle 0x1001341e
mov edi, dword [ebp - 0x22b0]
add edi, 0x5198
lea esi, [edi - 0x5198]
push ebx
mov ecx, esi
call fcn.10018d09
test eax, eax
js 0x100133ff
push 0x7d
push edi
call fcn.10018d09
pop ecx
pop ecx
test eax, eax
je 0x100133ff
add eax, 2
jne 0x1001324c
xor ecx, ecx
jmp 0x1001326b
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x1254]
push 0x824
push eax
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013437
lea ebx, [ebp - 0x1254]
test edi, edi
jne 0x10013281
xor ecx, ecx
jmp 0x1001329f
push 0xffffffffffffffff
push dword [ebp - 0x22b4]
push 0x824
push edi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013430
xor eax, eax
cmp ax, word [ebp - 0x1254]
je 0x1001331a
cmp dword [ebp + 0x18], eax
jne 0x1001331a
push 0x5c
pop eax
cmp ax, word [ebp - 0x1254]
jne 0x10013437
xor eax, eax
lea ebx, [ebp - 0x1252]
cmp ax, word [ebp - 0x1252]
je 0x10013437
mov ecx, ebx
call fcn.10008967
test al, al
jne 0x10013437
test edi, edi
jne 0x100132f3
xor ecx, ecx
jmp 0x10013312
push 0xffffffffffffffff
lea eax, [ebp - 0x1252]
push eax
push 0x824
push edi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013437
push 0
push 0
push ecx
lea eax, [edi - 0x4150]
mov edx, esi
push eax
push ecx
push edi
lea ecx, [ebp - 0x20c]
call fcn.10018d09
mov esi, eax
test esi, esi
js 0x10013420
mov esi, dword [ebp - 0x22b8]
test esi, esi
je 0x100133f9
cmp dword [ebp + 0x20], 0
jle 0x100133f9
cmp dword [ebp - 0x22a4], 0
je 0x10013383
push 0xffffffffffffffff
push 0x1003d408
push dword [ebp + 0x20]
push esi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013430
xor eax, eax
cmp ax, word [ebx]
je 0x100133c9
cmp dword [ebp + 0x18], eax
jne 0x100133c9
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x20]
push esi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
jne 0x100133c9
push 0xffffffffffffffff
push 0x1003cf90
push dword [ebp + 0x20]
push esi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013430
lea eax, [edi - 0x4150]
test eax, eax
jne 0x100133d8
xor ecx, ecx
inc ecx
jmp 0x100133f5
push 0xffffffffffffffff
lea eax, [edi - 0x4150]
push eax
push dword [ebp + 0x20]
push esi
call fcn.10018d09
xor ecx, ecx
add esp, 0x10
cmp eax, 0x50
setne cl
test ecx, ecx
je 0x10013430
mov ebx, dword [ebp - 0x22a0]
mov eax, dword [ebp - 0x22a4]
add edi, 0x7228
inc eax
mov dword [ebp - 0x22a4], eax
cmp eax, dword [ebp - 0x22ac]
jl 0x1001321b
xor esi, esi
lea ecx, [ebp - 0x22b0]
call fcn.1000b143
mov eax, esi
pop edi
jmp 0x10013443
mov esi, 0x80040161
jmp 0x10013420
mov esi, 0x80041610
jmp 0x10013420
mov eax, 0x80040013
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001eea4
leave
ret 0x1c