Function at 0x1036d8b
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
mov esi, 0x1002380
cmp eax, ebx
je 0x1036dcb
test byte [eax + 0x1c], 4
je 0x1036dcb
cmp byte [eax + 0x19], 5
jb 0x1036dcb
push esi
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call fcn.0105e5e0
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x1036e2a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1036f76
test byte [eax + 0x1c], 4
je 0x1036f76
cmp byte [eax + 0x19], 2
jb 0x1036f76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x1075004]
push esi
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x1036ef4
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.01035e7a
test eax, eax
je 0x1036e66
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1036f76
test byte [ecx + 0x1c], 4
je 0x1036f76
cmp byte [ecx + 0x19], 2
jb 0x1036f76
push eax
push dword [ebp + 8]
push esi
push 0x26
jmp 0x1036eee
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x1036efb
lea eax, [ebp - 8]
push eax
push edi
call fcn.010366f8
test eax, eax
je 0x1036fd3
mov ecx, 0x80091007
cmp eax, ecx
jne 0x1036ec5
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1036f6f
test byte [eax + 0x1c], 4
je 0x1036f6f
cmp byte [eax + 0x19], 2
jb 0x1036f6f
push ecx
push dword [ebp + 8]
push esi
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1036f6f
mov ecx, dword [0x1075004]
cmp ecx, ebx
je 0x1036f76
test byte [ecx + 0x1c], 4
je 0x1036f76
cmp byte [ecx + 0x19], 2
jb 0x1036f76
push eax
push dword [ebp + 8]
push esi
push 0x28
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100a6e9
jmp 0x1036f76
cmp dword [ebp - 0x10], 0x590
je 0x1036f09
mov dword [ebp - 4], eax
jmp 0x1036f76
lea eax, [ebp - 8]
push eax
push edi
call fcn.0103689d
mov edi, eax
test edi, edi
je 0x1036fd3
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1036f49
test byte [eax + 0x1c], 4
je 0x1036f49
cmp byte [eax + 0x19], 2
jb 0x1036f49
push edi
push dword [ebp + 8]
push esi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
mov eax, dword [0x1075004]
cmp edi, 0x570
jne 0x1036f76
cmp eax, ebx
je 0x1036f6f
test byte [eax + 0x1c], 4
je 0x1036f6f
cmp byte [eax + 0x19], 2
jb 0x1036f6f
push esi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 4], 1
push dword [ebp - 8]
call fcn.0105c5dc
xor edi, edi
cmp dword [ebp - 4], edi
je 0x1036fd6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
or dword [ebp - 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1036fe5
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1036fe5
test byte [eax + 0x1c], 4
je 0x1036fe5
cmp byte [eax + 0x19], 2
jb 0x1036fe5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
mov eax, dword [0x1075004]
push esi
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6e9
jmp 0x1036fd6
mov edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0xffffffff
je 0x1036fe5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 8