Function at 0x1030521
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x49c], eax
xor eax, eax
push 0x74
push eax
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x514], eax
lea eax, [ebp - 0x510]
push eax
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x494], 1
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x103059c
test byte [eax + 0x1c], 4
je 0x103059c
cmp byte [eax + 0x19], 5
jb 0x103059c
push 0x10022b4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 0x498], ebx
test ebx, ebx
jne 0x10305b0
mov dword [ebp - 0x498], 0x10019cc
xor eax, eax
mov word [ebp - 0x20c], ax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [edi + 8]
push 0
push dword [edi + 4]
call fcn.0105edd6
test eax, eax
jne 0x1030616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030720
test byte [eax + 0x1c], 4
je 0x1030720
cmp byte [eax + 0x19], 2
jb 0x1030720
push dword [ebp - 0x48c]
push 0x10022b4
push 0x23
jmp 0x1030715
lea eax, [ebp - 0x514]
push eax
push edi
call fcn.0102d84f
call fcn.0102d777
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x1030671
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030720
test byte [eax + 0x1c], 4
je 0x1030720
cmp byte [eax + 0x19], 2
jb 0x1030720
push dword [ebp - 0x48c]
push 0x10022b4
push 0x24
jmp 0x1030715
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
call fcn.0106897e
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x10306c8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030720
test byte [eax + 0x1c], 4
je 0x1030720
cmp byte [eax + 0x19], 2
jb 0x1030720
push dword [ebp - 0x48c]
push dword [edi + 4]
push 0x10022b4
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1030720
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x498]
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
call fcn.0105edb3
or eax, edx
jne 0x1030727
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030720
test byte [eax + 0x1c], 4
je 0x1030720
cmp byte [eax + 0x19], 2
jb 0x1030720
push dword [ebp - 0x48c]
push 0x10022b4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
xor edi, edi
jmp 0x1030897
push 2
pop eax
cmp word [ebp - 0x474], ax
jne 0x1030739
mov dword [ebp - 0x494], eax
lea eax, [ebp - 0x514]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x494]
push dword [ebp - 0x490]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01068a2b
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x10307f2
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10307a0
test byte [eax + 0x1c], 4
je 0x10307a0
cmp byte [eax + 0x19], 2
jb 0x10307a0
push dword [ebp - 0x48c]
push dword [edi + 4]
push 0x10022b4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1030897
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030897
test byte [eax + 0x1c], 4
je 0x1030897
cmp byte [eax + 0x19], 2
jb 0x1030897
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10022b4
push 0x28
jmp 0x1030882
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x49c]
call fcn.01009a5d
mov ebx, eax
test ebx, ebx
jge 0x1030894
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103083c
test byte [eax + 0x1c], 4
je 0x103083c
cmp byte [eax + 0x19], 2
jb 0x103083c
push ebx
push dword [edi + 4]
push 0x10022b4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
movzx eax, bx
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1030897
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030897
test byte [eax + 0x1c], 4
je 0x1030897
cmp byte [eax + 0x19], 2
jb 0x1030897
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10022b4
push 0x2a
mov eax, dword [0x1075004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1030897
xor edi, edi
inc edi
push dword [ebp - 0x490]
call fcn.0105c5dc
lea eax, [ebp - 0x514]
push eax
call fcn.0102d827
test edi, edi
jne 0x10308d0
cmp dword [ebp - 0x48c], edi
jne 0x10308c4
mov dword [ebp - 0x48c], 0x1f
push dword [ebp - 0x48c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 0xc