Function at 0x1030115
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 0x1030190
test byte [eax + 0x1c], 4
je 0x1030190
cmp byte [eax + 0x19], 5
jb 0x1030190
push 0x10022b4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 0x498], ebx
test ebx, ebx
jne 0x10301a4
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.0105ea16
test eax, eax
jne 0x103020a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030314
test byte [eax + 0x1c], 4
je 0x1030314
cmp byte [eax + 0x19], 2
jb 0x1030314
push dword [ebp - 0x48c]
push 0x10022b4
push 0x23
jmp 0x1030309
lea eax, [ebp - 0x514]
push eax
push edi
call fcn.0102d443
call fcn.0102d36b
mov dword [ebp - 0x490], eax
test eax, eax
jne 0x1030265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030314
test byte [eax + 0x1c], 4
je 0x1030314
cmp byte [eax + 0x19], 2
jb 0x1030314
push dword [ebp - 0x48c]
push 0x10022b4
push 0x24
jmp 0x1030309
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
call fcn.01068774
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x10302bc
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030314
test byte [eax + 0x1c], 4
je 0x1030314
cmp byte [eax + 0x19], 2
jb 0x1030314
push dword [ebp - 0x48c]
push dword [edi + 4]
push 0x10022b4
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
jmp 0x1030314
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x498]
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
call fcn.0105e9f3
or eax, edx
jne 0x103031b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48c], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030314
test byte [eax + 0x1c], 4
je 0x1030314
cmp byte [eax + 0x19], 2
jb 0x1030314
push dword [ebp - 0x48c]
push 0x10022b4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor edi, edi
jmp 0x103048b
push 2
pop eax
cmp word [ebp - 0x474], ax
jne 0x103032d
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.01068821
mov dword [ebp - 0x48c], eax
test eax, eax
je 0x10303e6
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030394
test byte [eax + 0x1c], 4
je 0x1030394
cmp byte [eax + 0x19], 2
jb 0x1030394
push dword [ebp - 0x48c]
push dword [edi + 4]
push 0x10022b4
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x103048b
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103048b
test byte [eax + 0x1c], 4
je 0x103048b
cmp byte [eax + 0x19], 2
jb 0x103048b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10022b4
push 0x28
jmp 0x1030476
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x49c]
call fcn.010676d2
mov ebx, eax
test ebx, ebx
jge 0x1030488
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1030430
test byte [eax + 0x1c], 4
je 0x1030430
cmp byte [eax + 0x19], 2
jb 0x1030430
push ebx
push dword [edi + 4]
push 0x10022b4
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
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 0x103048b
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103048b
test byte [eax + 0x1c], 4
je 0x103048b
cmp byte [eax + 0x19], 2
jb 0x103048b
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.010091cb
jmp 0x103048b
xor edi, edi
inc edi
push dword [ebp - 0x490]
call fcn.0105c21c
lea eax, [ebp - 0x514]
push eax
call fcn.0102d41b
test edi, edi
jne 0x10304c4
cmp dword [ebp - 0x48c], edi
jne 0x10304b8
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.0105b7af
leave
ret 0xc