Function at 0x1006a28
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x100d058]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 0x344], eax
xor eax, eax
cmp dword [esi + 8], ebx
lea edi, [ebp - 0x33c]
mov dword [ebp - 0x340], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x32c]
mov dword [ebp - 0x330], ebx
mov dword [ebp - 0x328], 1
stosd dword es:[edi], eax
jne 0x1006ada
cmp dword [esi + 0x18], ebx
je 0x1006a8a
push dword [ebp + 0xc]
push esi
call fcn.0100674c
jmp 0x1006d27
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1006abc
push ebx
push 0x1005c3a
push eax
mov dword [0x100d788], ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [0x100d788]
cmp eax, ebx
je 0x1006ab4
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
inc eax
jmp 0x1006d27
push 0x104
lea eax, [ebp - 0x108]
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
jmp 0x1006c5e
push 0x104
lea eax, [ebp - 0x324]
push eax
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
test eax, eax
je 0x1006cee
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x348], eax
je 0x1006cee
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x324]
push eax
call fcn.01005b84
cmp byte [eax], 0x2e
mov dword [ebp - 0x334], eax
jne 0x1006b38
inc eax
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x358]
push eax
call edi
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x330]
lea eax, [ebp - 0x220]
push 0x1001530
push 0x118
push eax
call fcn.01001c0c
add esp, 0x14
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryA]
test eax, eax
je 0x1006cee
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, ebx
mov dword [ebp - 0x338], eax
jl 0x1006cee
push dword [esi + 4]
push dword [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [esi + 4]
push dword [ebp - 0x338]
jae 0x1006beb
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x1006ce1
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x358]
push eax
call edi
push 1
push ebx
push ebx
push dword [ebp - 0x32c]
call fcn.0100afe0
mov ecx, dword [ebp - 0x330]
xor edi, edi
add eax, ecx
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x334]
adc edx, edi
push ebx
push ebx
push ebx
push dword [ebp - 0x33c]
add eax, 0x9534e000
push dword [ebp - 0x340]
adc edx, 0x64
push edx
push eax
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x108]
push eax
mov eax, ecx
push eax
mov dword [ebp - 0x32c], edx
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryA]
test eax, eax
je 0x1006cee
cmp dword [esi + 0x18], ebx
je 0x1006cb7
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.01006997
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x1006cf4
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov word [esi + 2], ax
lea eax, [ebp - 0x220]
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov word [esi + 0x24], ax
jmp 0x1006d1b
push dword [ebp - 0x344]
lea eax, [ebp - 0x220]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [esi + 0x10], ebx
call fcn.01005e6b
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x328], eax
je 0x1006d15
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x328]
cmp dword [0x100d4ec], ebx
je 0x1006d20
push ebx
push 0xf060
push 0x112
push dword [0x100e1c4]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1006d20
mov edi, dword [ebp - 0x328]
call fcn.01001ab9
xor eax, eax
cmp edi, ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01003019
leave
ret 0xc