Function at 0x10006758
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd9
push 0
push 0
dec ecx
jne 0x10006760
push ebx
push esi
push edi
lea eax, [ebp - 0x4c8]
mov edx, dword [0x10005b4c]
call fcn.10002a7c
lea edi, [ebp - 0x694]
xor eax, eax
push ebp
push 0x10006b6c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x28]
mov eax, 0x10006b84
call fcn.10003c48
lea eax, [ebp - 0x28]
push eax
mov edx, dword [ebp - 0x28]
mov eax, 0x10006ba0
call fcn.10002964
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x28]
call fcn.10002924
lea edx, [ebp - 0x20]
mov eax, 0x10006bac
call fcn.10003c48
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x20]
mov eax, 0x10006ba0
call fcn.10002964
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.10002924
lea edx, [ebp - 0x24]
mov eax, 0x10006c14
call fcn.10003c48
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x24]
mov eax, 0x10006ba0
call fcn.10002964
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.10002924
lea edx, [ebp - 0x1c]
mov eax, 0x10006c80
call fcn.10003c48
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebp - 0x1c]
mov eax, 0x10006ba0
call fcn.10002964
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.10002924
mov dword [ebp - 8], pe_nt_image_headers32
mov dword [ebp - 0xc], pe_nt_image_headers32
mov dword [ebp - 0x10], pe_nt_image_headers32
xor ebx, ebx
lea edx, [ebp - 0x698]
mov eax, 0xa
call fcn.10003a7c
mov eax, dword [ebp - 0x698]
push eax
lea eax, [ebp - 0x69c]
call fcn.10003c18
mov edx, dword [ebp - 0x69c]
lea eax, [ebp - 0x18]
pop ecx
call fcn.1000276c
xor esi, esi
mov eax, 8
call fcn.10001a94
mov esi, eax
cmp si, 5
jb 0x10006891
lea edx, [ebp - 0x14]
movzx eax, si
call fcn.10003b48
lea eax, [ebp - 0x6a0]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.10002924
mov eax, dword [ebp - 0x6a0]
mov edx, 0x10006cf0
call fcn.10002864
je 0x100068a3
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x6a4]
mov eax, 0x10006cfc
call fcn.10003c48
mov eax, dword [ebp - 0x6a4]
call fcn.10002918
push eax
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x128]
push eax
push 0
push 0
lea edx, [ebp - 0x6a8]
mov eax, 0x10006d58
call fcn.10003c48
mov eax, dword [ebp - 0x6a8]
call fcn.10002918
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push 0
lea edx, [ebp - 0x6ac]
mov eax, 0x10006d70
call fcn.10003c48
mov eax, dword [ebp - 0x6ac]
call fcn.10002918
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x328]
push eax
push 0
push 0
lea edx, [ebp - 0x6b0]
mov eax, 0x10006d94
call fcn.10003c48
mov eax, dword [ebp - 0x6b0]
call fcn.10002918
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0x10], 0x100
je 0x100069ce
lea eax, [ebp - 0x128]
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x330], eax
lea eax, [ebp - 0x328]
mov dword [ebp - 0x32c], eax
jmp 0x100069f8
mov eax, dword [ebp - 0x1c]
call fcn.10002918
mov dword [ebp - 0x334], eax
mov eax, dword [ebp - 0x20]
call fcn.10002918
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x24]
call fcn.10002918
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x6b4]
mov edx, dword [ebp - 0x330]
call fcn.100026cc
mov eax, dword [ebp - 0x6b4]
mov edx, dword [ebp - 0x18]
call fcn.10005c6c
lea eax, [ebp - 0x6bc]
call fcn.10003be8
push dword [ebp - 0x6bc]
push 0x10006db0
push dword [ebp - 0x28]
lea eax, [ebp - 0x6b8]
mov edx, 3
call fcn.100027e0
mov edx, dword [ebp - 0x6b8]
mov eax, edi
call fcn.10001800
lea eax, [ebp - 0x6c8]
call fcn.10003be8
push dword [ebp - 0x6c8]
push 0x10006db0
push dword [ebp - 0x28]
lea eax, [ebp - 0x6c4]
mov edx, 3
call fcn.100027e0
mov eax, dword [ebp - 0x6c4]
call fcn.10002918
mov edx, eax
lea eax, [ebp - 0x6c0]
call fcn.100026cc
mov eax, dword [ebp - 0x6c0]
call fcn.10003a58
test al, al
je 0x10006b30
mov eax, edi
call fcn.10001590
call fcn.10001298
jmp 0x10006ae9
lea edx, [ebp + ebx*4 - 0x4c8]
mov eax, edi
call fcn.10001bd8
mov eax, edi
call fcn.10001c44
call fcn.10001298
inc ebx
cmp ebx, 0x64
jne 0x10006ae9
xor ebx, ebx
mov dword [ebp - 0x338], 0x64
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x4c8]
call fcn.10006eb8
mov eax, edi
call fcn.100019f0
call fcn.10001298
test al, al
je 0x10006aaf
mov eax, edi
call fcn.10001998
call fcn.10001298
test ebx, ebx
jle 0x10006b1d
mov dword [ebp - 0x338], ebx
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x4c8]
call fcn.10006eb8
mov eax, dword [ebp - 0x18]
call fcn.10002918
push eax
call sub.kernel32.dll_DeleteFileA
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10006b73
lea eax, [ebp - 0x6c8]
mov edx, 0xd
call fcn.100025c4
lea eax, [ebp - 0x4c8]
mov edx, dword [0x10005b4c]
call fcn.10002b40
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.100025c4
ret