Function at 0x1006891
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x100e03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x528], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x514], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x524], eax
mov eax, dword [ebp + 0x20]
push ebx
mov dword [ebp - 0x518], eax
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x520], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x530], eax
xor eax, eax
xor ebx, ebx
push reloc.KERNEL32.dll_GetSystemTime
pop ecx
lea edi, [ebp - 0x5a8]
mov dword [ebp - 0x5ac], ebx
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
mov dword [ebp - 0x59c], eax
mov al, byte [esi + 0x22f]
xor edi, edi
mov byte [ebp - 0x56a], al
inc edi
lea eax, [esi + 0x217]
cmp dword [eax], 0xffffffff
mov dword [ebp - 0x52c], edx
mov dword [ebp - 0x510], ebx
mov dword [ebp - 0x5a0], edx
mov dword [ebp - 0x588], edi
jne 0x100663c
xor cl, cl
jmp 0x1006640
mov cl, byte [eax]
inc cl
mov eax, dword [esi + 0x21f]
mov dword [ebp - 0x584], eax
mov eax, dword [esi + 0x223]
mov dword [ebp - 0x580], eax
lea eax, [esi + 0x107]
mov dword [ebp - 0x598], eax
movzx eax, byte [esi + 0x234]
mov dword [ebp - 0x568], eax
mov eax, dword [ebp - 0x518]
test eax, eax
mov byte [ebp - 0x56c], cl
je 0x1006878
cmp dword [eax + 0x630], 5
jne 0x10066e3
cmp dword [esi + 0x20b], 0
jne 0x10066e3
test cl, cl
jne 0x10066b5
lea ecx, [ebp - 0x56c]
push ecx
push dword [ebp - 0x59c]
add eax, 0x410
push eax
call fcn.010064d7
jmp 0x10066e3
cmp cl, 1
jne 0x10066e3
push 0x104
lea eax, [ebp - 0x50c]
push eax
push 0x1388
push dword [0x100e2c8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x50c]
mov dword [ebp - 0x59c], eax
cmp dword [ebp - 0x520], 0
je 0x1006878
mov ebx, dword [ebp - 0x520]
cmp dword [ebx + 0x610], 0
je 0x10067fc
mov ecx, dword [ebp - 0x518]
mov eax, dword [ecx + 0x630]
cmp eax, 4
jne 0x1006769
cmp dword [ebx + 0x630], 0
jne 0x1006769
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x51c]
push eax
push ebx
call fcn.01008a64
add esp, 0x14
lea eax, [esi + 0x107]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10067f3
or dword [ebp - 0x588], edi
jmp 0x10067ed
cmp eax, 5
jne 0x10067f3
cmp dword [ebx + 0x630], 2
jne 0x10067f3
add ecx, 0x410
push ecx
lea eax, [ebx + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10067f3
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x51c]
push eax
push ebx
call fcn.01008a64
lea eax, [ebp - 0x104]
push eax
push reloc.KERNEL32.dll_FreeEnvironmentStringsW
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0100bc14
add esp, 0x24
lea eax, [esi + 0x107]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10067f3
mov dword [ebp - 0x510], edi
cmp dword [ebp - 0x510], 0
jne 0x100680c
mov ebx, dword [ebx + 0x648]
test ebx, ebx
jne 0x10066f6
jmp 0x1006878
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebx + 0x208]
push eax
call fcn.01008a64
lea eax, [ebp - 0x104]
push eax
push reloc.KERNEL32.dll_FreeEnvironmentStringsW
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0100bc14
lea eax, [ebp - 0x208]
mov dword [ebp - 0x598], eax
mov eax, dword [ebx + 0x644]
mov dword [ebp - 0x584], eax
mov eax, dword [ebx + 0x640]
add esp, 0x24
mov dword [ebp - 0x580], eax
cmp byte [ebp - 0x56c], 0
mov eax, dword [ebp - 0x514]
mov ecx, dword [eax]
je 0x10068b3
lea edx, [ebp - 0x628]
push edx
push dword [ebp - 0x56c]
push dword [ebp - 0x52c]
push eax
call dword [ecx + 0xe4]
test eax, eax
jge 0x100698c
mov eax, dword [ebp - 0x514]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x5ac]
push edx
push 0
push eax
call dword [ecx + 0xc8]
test eax, eax
mov dword [ebp - 0x510], eax
jl 0x1006977
mov eax, dword [ebp - 0x5a4]
mov dword [esi + 0x238], eax
test ebx, ebx
je 0x1006909
push ebx
push dword [ebp - 0x56c]
lea eax, [esi + 4]
push eax
push dword [ebp - 0x5a4]
push dword [ebp - 0x528]
call fcn.0100634a
test eax, eax
mov dword [ebp - 0x510], eax
jl 0x1006977
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
jbe 0x1006965
mov edi, dword [ebp - 0x524]
mov eax, dword [edi + 0x20b]
cmp eax, dword [esi]
jne 0x1006959
push 0
push dword [ebp - 0x520]
push dword [ebp - 0x518]
push dword [ebp - 0x5a4]
push dword [ebp - 0x524]
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x514]
push dword [ebp - 0x528]
call fcn.01006596
test eax, eax
mov dword [ebp - 0x510], eax
jl 0x1006977
inc ebx
add edi, 0x23c
cmp ebx, dword [ebp + 0x14]
jb 0x1006916
mov eax, dword [ebp - 0x530]
test eax, eax
je 0x1006977
mov ecx, dword [ebp - 0x5a4]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x510]
pop edi
pop esi
pop ebx
call fcn.010086b7
leave
ret 0x24
mov eax, dword [ebp - 0x620]
mov edi, dword [ebp - 0x514]
mov dword [esi + 0x238], eax
mov dword [ebp - 0x5a4], eax
mov al, byte [ebp - 0x56a]
mov byte [ebp - 0x5e6], al
mov eax, dword [ebp - 0x588]
mov dword [ebp - 0x604], eax
mov eax, dword [ebp - 0x584]
mov dword [ebp - 0x600], eax
mov eax, dword [ebp - 0x580]
mov dword [ebp - 0x5fc], eax
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x568]
lea ecx, [ebp - 0x628]
push ecx
mov dword [ebp - 0x5e4], eax
mov eax, dword [edi]
push edi
call dword [eax + reloc.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov dword [ebp - 0x510], eax
jl 0x1006977
mov eax, dword [edi]
lea ecx, [ebp - 0x628]
push ecx
push edi
call dword [eax + 0x28]
jmp 0x10068df