Function at 0x10068cd
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x100c038]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], 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 0x1006976
cmp dword [esi + 0x18], ebx
je 0x1006926
push dword [ebp + 0xc]
push esi
call fcn.010065f1
jmp 0x1006bbd
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1006958
push ebx
push 0x1005b5f
push eax
mov dword [0x100ca88], ebx
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov eax, dword [0x100ca88]
cmp eax, ebx
je 0x1006950
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
inc eax
jmp 0x1006bbd
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 0x1006afa
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 0x1006b84
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0x344], eax
je 0x1006b84
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x324]
push eax
call fcn.01005aa9
cmp byte [eax], 0x2e
mov dword [ebp - 0x334], eax
jne 0x10069d4
inc eax
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x354]
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 - 0x354]
push eax
call edi
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 0x330]
lea eax, [ebp - 0x220]
push 0x1001538
push 0x118
push eax
call fcn.01001bac
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 0x1006b84
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, ebx
mov dword [ebp - 0x338], eax
jl 0x1006b84
push dword [esi + 4]
push dword [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, dword [esi + 4]
push dword [ebp - 0x338]
jae 0x1006a87
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x1006b77
call dword [sym.imp.KERNEL32.dll__lclose]
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x354]
push eax
call edi
push 1
push ebx
push ebx
push dword [ebp - 0x32c]
call fcn.0100ab80
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 0x1006b84
cmp dword [esi + 0x18], ebx
je 0x1006b53
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.0100683c
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x1006b8a
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 0x1006bb1
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [esi + 0x10], ebx
call fcn.01005d90
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x328], eax
je 0x1006bab
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [ebp - 0x328]
cmp dword [0x100c7ec], ebx
je 0x1006bb6
push ebx
push 0xf060
push 0x112
push dword [0x100d4a4]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x1006bb6
mov edi, dword [ebp - 0x328]
call fcn.01001a59
xor eax, eax
cmp edi, ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002fb9
leave
ret 8