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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x430], eax
je 0x413499
mov ebx, dword [0x46508c]
push 0
push 0
push 0
push eax
push 1
push 4
push esi
call ebx
test eax, eax
je 0x413459
cmp eax, 2
je 0x413449
cmp eax, 3
je 0x413449
push esi
push eax
push str.DeleteKeyChildren:_could_not_set_owner_for_key:_0x_08x__S
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x413459
push esi
push str.DeleteKeyChildren:_could_not_set_owner_for_key_since_not_found:__S
push 4
call fcn.004343f0
add esp, 0xc
push 0
push 0
push 0
push 0
push 4
push 4
push esi
call ebx
test eax, eax
je 0x413499
cmp eax, 2
je 0x413489
cmp eax, 3
je 0x413489
push esi
push eax
push str.DeleteKeyChildren:_could_not_set_permissions_for_key:_0x_08x__S
push 1
call fcn.004343f0
add esp, 0x10
jmp 0x413499
push esi
push str.DeleteKeyChildren:_could_not_set_permissions_for_key_since_not_found:__S
push 4
call fcn.004343f0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x413662
push 0x1fc
lea ecx, [ebp - 0x638]
push ebx
push ecx
mov dword [ebp - 0x63c], ebx
call fcn.00405300
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x20e]
push eax
mov word [ebp - 0x210], dx
call fcn.00405300
mov edx, dword [ebp - 0x42c]
add esp, 0x18
lea ecx, [ebp - 0x420]
push ecx
push 0xf003f
push ebx
push edi
push edx
mov dword [ebp - 0x424], 0x105
call dword [0x4650cc]
test eax, eax
je 0x413540
push edi
cmp eax, 2
je 0x41352c
push eax
push str.DeleteKeyChildren:_could_not_open_subkey_with_all_access:_0x_08x__S
push 1
call fcn.004343f0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_subkey_already_deleted:__S
push 4
call fcn.004343f0
add esp, 0xc
jmp 0x4136f2
mov esi, dword [0x465090]
lea eax, [ebp - 0x43c]
push eax
mov eax, dword [ebp - 0x420]
push 0
push 0
push 0
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x210]
push edx
push 0
push eax
mov edi, 1
call esi
test eax, eax
jne 0x4135d2
cmp ebx, 0x80
jge 0x4135d2
lea ecx, [ebp - 0x210]
push ecx
call fcn.00457fae
add esp, 4
mov dword [ebp + ebx*4 - 0x63c], eax
test eax, eax
je 0x41369e
lea edx, [ebp - 0x43c]
push edx
push 0
push 0
push 0
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x210]
mov eax, edi
push edx
push eax
mov eax, dword [ebp - 0x420]
push eax
inc ebx
mov dword [ebp - 0x424], 0x105
inc edi
call esi
test eax, eax
je 0x413575
xor edi, edi
test ebx, ebx
jle 0x413649
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x41a]
push edx
mov word [ebp - 0x41c], cx
call fcn.00405300
mov esi, dword [ebp + edi*4 - 0x63c]
mov eax, dword [ebp - 0x428]
push esi
push eax
push 0x46c138
lea ecx, [ebp - 0x41c]
push 0x105
push ecx
call fcn.00457d45
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
push eax
mov eax, dword [ebp - 0x420]
push ecx
push esi
lea edx, [ebp - 0x41c]
push edx
push eax
call fcn.004133d0
push esi
call fcn.00403d53
inc edi
add esp, 0x3c
cmp edi, ebx
jl 0x4135d8
mov ecx, dword [ebp - 0x420]
push ecx
call dword [0x4650d0]
mov edi, dword [ebp - 0x434]
mov esi, dword [ebp - 0x428]
mov edx, dword [ebp - 0x42c]
push edi
push edx
call dword [section..rdata]
push edi
push esi
test eax, eax
je 0x4136e3
cmp eax, 2
je 0x4136da
push eax
push str.DeleteKeyChildren:_could_not_delete_key:_0x_08x__S__S
push 1
call fcn.004343f0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_out_of_memory
push 1
call fcn.004343f0
add esp, 8
sub ebx, 1
js 0x4136c7
mov eax, dword [ebp + ebx*4 - 0x63c]
push eax
call fcn.00403d53
add esp, 4
sub ebx, 1
jns 0x4136b2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push str.DeleteKeyChildren:_key_already_deleted:__S__S
push 0x20
jmp 0x4136ea
push str.DeleteKeyChildren:_deleted:__S__S
push 0x10
call fcn.004343f0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret