Function at 0x1003a530
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 [0x100713e2], bl
je 0x1003a653
call fcn.1003aa50
test ax, ax
je 0x1003a572
mov eax, dword [0x100713e4]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1003a572
call eax
mov byte [0x100713e1], 1
call fcn.1003aa50
test ax, ax
je 0x1003a653
mov eax, dword [0x100713e4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x1003a653
call eax
cmp byte [0x100713e1], bl
je 0x1003a653
push 0x44
push dword [0x100713e4]
call fcn.10002383
xor eax, eax
mov dword [0x100713e4], ebx
mov ecx, 0x2710
mov edi, 0x100713f0
rep stosd dword es:[edi], eax
mov ecx, dword [0x1007b038]
add esp, 8
test ecx, ecx
je 0x1003a600
mov edx, dword [0x1007b034]
test edx, edx
je 0x1003a5f4
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x50]
mov eax, dword [0x1007b034]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [0x1007b038]
mov dword [0x1007b034], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x1007b038], ebx
cmp dword [0x100708a0], ebx
je 0x1003a633
cmp dword [0x100708a4], 8
mov eax, 0x10070890
cmovae eax, dword [0x10070890]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x10046290
mov ecx, 0x10070890
call fcn.100014a0
mov byte [0x100713e2], bl
cmp byte [0x100713e0], bl
je 0x1003a653
push dword [0x100713e8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [0x100713e0], bl
call fcn.1003aa50
test ax, ax
je 0x1003a7d7
mov eax, dword [0x100713e4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1003a7d7
call eax
cmp byte [0x100713e0], 0
movzx ebx, ax
jne 0x1003a7c9
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1007b030]
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 0x1003a6c2
sub ecx, edx
lea eax, [ebp - 0x20c]
push esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x224]
call fcn.100014a0
cmp dword [ebp - 0x210], 8
lea esi, [ebp - 0x224]
mov edi, dword [ebp - 0x214]
cmovae esi, dword [ebp - 0x224]
test edi, edi
je 0x1003a72b
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 0x1003a725
cmp edx, esi
je 0x1003a72b
sub edx, 2
cmp word [edx], 0x5c
jne 0x1003a718
sub edx, esi
sar edx, 1
jmp 0x1003a72e
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 [0x100713e8], eax
mov byte [0x100713e0], 1
pop esi
cmp edx, 8
jb 0x1003a7c9
mov ecx, dword [ebp - 0x224]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003a7bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a7ea
push edx
push ecx
call fcn.10002383
add esp, 8
mov byte [0x100713e1], 0
mov byte [0x100713e2], 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