Function at 0x440800
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x530f98]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0x4e958c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x440879
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x440885
mov dword [esp + 0x24], 0
mov eax, ebx
or eax, 8
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44088c
xor esi, esi
cmp eax, 2
je 0x440ae9
mov esi, eax
jmp 0x440ae9
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x440846
xor esi, esi
jmp 0x440ae9
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
push edi
call fcn.004d03ae
add esp, 4
cmp eax, 0x7ffffff0
jae 0x440afe
mov ebx, eax
cmp eax, 5
jae 0x4408d0
lea esi, [esp + 0x18]
mov byte [esp + 0x23], bl
mov dword [esp], esi
test ebx, ebx
jne 0x440906
jmp 0x440915
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x440b07
lea eax, [edi + edi]
push eax
call fcn.004af396
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
or edi, 0x80000000
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x18]
mov dword [esp], eax
mov edi, dword [ebp + 0xc]
mov eax, ebx
add eax, ebx
push eax
push edi
push esi
call fcn.004b80c0
add esp, 0xc
mov word [esi + ebx*2], 0
mov eax, dword [esp]
mov al, byte [eax + 0xb]
test al, al
js 0x44094f
test al, al
je 0x44096b
movzx ecx, al
lea edx, [esp + 0x18]
cmp word [edx + ecx*2 - 2], 0x5c
je 0x440949
lea ecx, [esp + 0x18]
push 0x5c
call fcn.00429fe8
mov eax, dword [esp]
mov al, byte [eax + 0xb]
test al, al
jns 0x44096d
jmp 0x440965
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x440965
mov edx, dword [esp + 0x18]
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x440938
jmp 0x440949
mov ebx, dword [esp + 0x1c]
jmp 0x440970
xor eax, eax
movzx ebx, al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x104
lea esi, [esp + 8]
push 0x104
push esi
call fcn.00439650
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x440a7f
lea edi, [esp + 0x18]
nop word [eax + eax]
mov ecx, esi
push 0
push dword [esp + 8]
call fcn.00429a4e
mov ecx, edi
push 0
push ebx
call fcn.00429a4e
movzx eax, byte [esp + 0x13]
mov edx, esi
test al, al
jns 0x440a0a
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, edi
push eax
push edx
call fcn.00429d18
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
mov eax, edi
jns 0x440a22
mov eax, dword [esp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00440800
add esp, 0xc
test eax, eax
jne 0x440a7f
mov dword [esp + 4], 0x104
push 0x104
push esi
call fcn.00439650
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4409e0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4e958c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x440ab3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x440abf
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp byte [esp + 0x13], 0
jns 0x440ad4
push dword [esp + 8]
call fcn.004af3c6
add esp, 4
mov eax, dword [esp]
cmp byte [eax + 0xb], 0
jns 0x440ae9
push dword [esp + 0x18]
call fcn.004af3c6
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004af401
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00428aec
call fcn.004c9a66
int3