Function at 0x10030b2b
Capabilities:
Check if file exists
Delete file

Disassembly:
pop ebp
adc al, 0x89
je 0x10030b43
sub al, 0x89
insb byte es:[edi], dx
and al, 0x34
mov word [ebp + 4], bx
mov dword [esp + 0x64], ebx
mov eax, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
and al, 0x89
pop esp
and al, 0x28
mov dword [esp + 0x64], eax
and al, 0x64
push esi
lea ecx, [esp + 0x20]
call 0x1006081f
mov edi, dword [esp + 0x20]
cmp edi, ebx
je 0x10030b9f
mov ecx, dword [esp + 0x24]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
je 0x10030b9f
lea esi, [eax - 1]
cmp esi, eax
jb 0x10030b85
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
lea eax, [esi*8]
sub eax, esi
push 0xffffffffffffffff
lea eax, [edi + eax*4]
push ebx
mov ecx, ebp
call fcn.10032b6b
mov esi, dword [esp + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x10030dac
lea ecx, [esp + 0x38]
push ecx
mov edi, ebp
mov byte [esp + 0x1f], bl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call 0x10060fe8
add esp, 4
test al, al
je 0x10030d37
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jl 0x10030c17
jg 0x10030d37
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jl 0x10030c17
jg 0x10030d37
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x10030c17
jg 0x10030d37
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jl 0x10030c17
jg 0x10030d37
push 0xffffffffffffffff
push ebx
mov eax, esi
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.10032c06
mov byte [esp + 0x64], 2
cmp dword [esp + 0x4c], ebx
je 0x10030c92
push 0xb
push str.Application
lea ecx, [esp + 0x40]
call fcn.10036361
push 1
push 0x1005c008
lea ecx, [esp + 0x40]
call fcn.10036371
push ebx
push ebp
or eax, 0xffffffff
lea esi, [esp + 0x40]
call fcn.1003626f
push 1
push 0x1005c008
mov ecx, esi
call 0x1003638d
mov edx, esi
push edx
mov ecx, ebp
call fcn.10033e27
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x1b], 1
jmp 0x10030c99
mov edi, ebp
call fcn.10040469
mov byte [esp + 0x64], 1
cmp dword [esp + 0x50], 8
jb 0x10030cb2
mov eax, dword [esp + 0x3c]
push eax
call 0x1007cc3f
add esp, 4
cmp byte [esp + 0x1b], bl
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
je 0x10030d37
lea ecx, [esp + 0x38]
push ebp
push ecx
mov edi, 0x1005bc40
call fcn.10042779
add esp, 8
mov byte [esp + 0x64], 3
mov eax, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x10030cf4
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10030d04
test al, 0x10
je 0x10030d08
mov byte [esp + 0x1b], bl
mov byte [esp + 0x64], 1
cmp dword [esp + 0x50], edi
jb 0x10030d20
mov edx, dword [esp + 0x3c]
push edx
call 0x1007ccad
add esp, 4
cmp byte [esp + 0x1b], bl
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jne 0x10030dac
mov edi, ebp
call fcn.1004050e
push esi
lea esi, [esp + 0x3c]
call 0x10060978
mov byte [esp + 0x64], 4
cmp dword [esp + 0x4c], ebx
mov esi, 8
je 0x10030d83
cmp dword [esp + 0x50], esi
mov eax, dword [esp + 0x3c]
jae 0x10030d66
lea eax, [esp + 0x3c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x50], esi
mov eax, dword [esp + 0x3c]
jae 0x10030d7c
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x64], 1
cmp dword [esp + 0x50], esi
jb 0x10030d9b
mov eax, dword [esp + 0x3c]
push eax
call 0x1007cd28
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov byte [esp + 0x64], bl
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10030dd6
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
push ecx
call fcn.10033d06
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call 0x1007cd63
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call 0x1007cd79
add esp, 0x54
ret 4