Function at 0x1003eb60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10070024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
cmp byte [0x100713f2], bl
je 0x1003ec83
call fcn.1003f080
test ax, ax
je 0x1003eba2
mov eax, dword [0x100713f4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1003eba2
call eax
mov byte [0x100713f1], 1
call fcn.1003f080
test ax, ax
je 0x1003ec83
mov eax, dword [0x100713f4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1003ec83
call eax
cmp byte [0x100713f1], bl
je 0x1003ec83
push 0x44
push dword [0x100713f4]
call fcn.10002353
xor eax, eax
mov dword [0x100713f4], ebx
mov ecx, 0x2710
mov edi, 0x10071400
rep stosd dword es:[edi], eax
mov ecx, dword [0x1007b048]
add esp, 8
test ecx, ecx
je 0x1003ec30
mov edx, dword [0x1007b044]
test edx, edx
je 0x1003ec24
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
mov eax, dword [0x1007b044]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x1007b048]
mov dword [0x1007b044], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1007b048], ebx
cmp dword [0x100708a0], ebx
je 0x1003ec63
cmp dword [0x100708a4], 8
mov eax, 0x10070890
cmovae eax, dword [0x10070890]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x100462fc
mov ecx, 0x10070890
call fcn.10001630
mov byte [0x100713f2], bl
cmp byte [0x100713f0], bl
je 0x1003ec83
push dword [0x100713f8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x100713f0], bl
call fcn.1003f080
test ax, ax
je 0x1003ee07
mov eax, dword [0x100713f4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003ee07
call eax
cmp byte [0x100713f0], 0
movzx ebx, ax
jne 0x1003edf9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1007b040]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x214], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x210], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ecf2
sub ecx, edx
lea eax, [ebp - 0x20c]
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.10001630
cmp dword [ebp - 0x210], 8
lea esi, [ebp - 0x224]
mov edi, dword [ebp - 0x214]
cmovae esi, dword [ebp - 0x224]
test edi, edi
je 0x1003ed5b
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [esi + ecx*2], 0x5c
lea edx, [esi + ecx*2]
je 0x1003ed55
cmp edx, esi
je 0x1003ed5b
sub edx, 2
cmp word [edx], 0x5c
jne 0x1003ed48
sub edx, esi
sar edx, 1
jmp 0x1003ed5e
or edx, 0xffffffff
inc edx
lea ecx, [ebp - 0x224]
cmp edi, edx
cmovb edx, edi
cmp dword [ebp - 0x210], 8
cmovae ecx, dword [ebp - 0x224]
sub edi, edx
mov dword [ebp - 0x214], edi
lea eax, [edi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.10004ee0
add esp, 0xc
lea eax, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x210]
mov dword [0x100713f8], eax
mov byte [0x100713f0], 1
pop esi
cmp edx, 8
jb 0x1003edf9
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003edef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ee1a
push edx
push ecx
call fcn.10002353
add esp, 8
mov byte [0x100713f1], 0
mov byte [0x100713f2], 1
mov ecx, dword [ebp - 4]
mov ax, bx
pop edi
xor ecx, ebp
pop ebx
call fcn.10002345
mov esp, ebp
pop ebp
ret
call fcn.10005d83
int3