Function at 0x464520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x526b38
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55bb24]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
mov esi, dword [esp + 0x70]
test al, al
je 0x4645f5
mov eax, dword [esi + 8]
sub eax, dword [esi + 4]
push 0x534dc4
push ecx
sar eax, 2
push eax
push ecx
push str.size:
push ecx
push 0x534dd4
push ecx
push 0x3d6
push ecx
push 0x534dd8
push ecx
push str.TRegUnitList::DeleteWatchKey
push ecx
push 0x534dc0
push ecx
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.0041f0d0
add esp, 4
push eax
call fcn.00405660
add esp, 8
push 0x100
call fcn.004cf0e5
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x18], 0
test ecx, ecx
jbe 0x4646e8
mov dword [esp + 0x20], eax
mov edi, dword [eax]
mov edx, dword [edi + 0x30]
sub edx, dword [edi + 0x2c]
mov dword [esp + 0x14], 0
sar edx, 2
test edx, edx
jbe 0x4646c3
mov edx, dword [esp + 0x74]
mov ebp, dword [edi + 0x30]
sub ebp, dword [edi + 0x2c]
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov ebx, dword [edi + 0x2c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
sar ebp, 2
jmp 0x464654
mov edx, dword [esp + 0x74]
mov eax, dword [ebx]
add eax, 0x84
cmp dword [esp + 0x24], 0x10
jb 0x464667
mov edx, dword [edx + 4]
jmp 0x46466a
add edx, 4
mov esi, dword [eax + 0x14]
mov ecx, esi
cmp ecx, esi
jae 0x464673
mov ecx, dword [esp + 0x1c]
cmp esi, ecx
jae 0x46467d
mov ecx, esi
cmp dword [eax + 0x18], 0x10
jb 0x464688
mov eax, dword [eax + 4]
jmp 0x46468b
add eax, 4
push ecx
push edx
push eax
call fcn.004010a0
add esp, 0xc
test eax, eax
jne 0x4646af
mov eax, dword [esp + 0x1c]
cmp esi, eax
jb 0x4646af
xor edx, edx
cmp esi, eax
setne dl
mov eax, edx
test eax, eax
je 0x464700
mov eax, dword [esp + 0x14]
inc eax
add ebx, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
jb 0x464650
mov esi, dword [esp + 0x70]
mov edx, dword [esi + 8]
sub edx, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc ecx
add eax, 4
sar edx, 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp ecx, edx
jb 0x464614
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
or ebp, 0xffffffff
test al, al
je 0x464841
mov ecx, dword [edi + 0x2c]
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx*4]
mov eax, dword [eax]
add eax, 0x30
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004022c0
mov esi, eax
lea edx, [edi + 0xc]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x78], 0
call fcn.004022c0
add esp, 0x10
push 0x534dc4
push ecx
push esi
push ecx
push 0x53e2dc
push ecx
push eax
push ecx
push str.Delete_key:
push ecx
push 0x534dd4
push ecx
push 0x3dc
push ecx
push 0x534dd8
push ecx
push str.TRegUnitList::DeleteWatchKey
push ecx
push 0x534dc0
push ecx
mov byte [esp + 0xb8], 1
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
mov ebx, 0x10
add esp, 8
cmp dword [esp + 0x40], ebx
jb 0x464809
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004f0cfc
add esp, 4
mov dword [esp + 0x68], ebp
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
cmp dword [esp + 0x5c], ebx
jb 0x464835
mov edx, dword [esp + 0x48]
push edx
call fcn.004f0cfc
add esp, 4
push 0x100
call fcn.004cf0e5
jmp 0x464846
mov ebx, 0x10
mov eax, dword [edi + 0x2c]
mov ecx, dword [esp + 0x14]
lea ecx, [eax + ecx*4]
mov eax, dword [edi + 0x30]
lea edx, [ecx + 4]
sub eax, edx
sar eax, 2
test eax, eax
jle 0x46486f
add eax, eax
add eax, eax
push eax
push edx
push eax
push ecx
call fcn.004f071c
add esp, 0x10
mov esi, 0xfffffffc
add dword [edi + 0x30], esi
mov edx, dword [edi + 0x30]
sub edx, dword [edi + 0x2c]
test esi, edx
jne 0x464989
call fcn.004cefff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
push 0x100
call eax
test al, al
je 0x464959
add edi, 0xc
lea ecx, [esp + 0x44]
push edi
push ecx
call fcn.004022c0
add esp, 8
push 0x534dc4
push ecx
push eax
push ecx
push str.Delete_hive:
push ecx
push 0x534dd4
push ecx
push 0x3df
push ecx
push 0x534dd8
push ecx
push str.TRegUnitList::DeleteWatchKey
push ecx
push 0x534dc0
push ecx
mov dword [esp + 0xa8], 2
call fcn.004cf0d6
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00402b90
add esp, 4
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405660
add esp, 0xc
push eax
call fcn.00405890
add esp, 0xc
push eax
call fcn.00405660
add esp, 8
mov dword [esp + 0x68], ebp
cmp dword [esp + 0x5c], ebx
jb 0x46494f
mov edx, dword [esp + 0x48]
push edx
call fcn.004f0cfc
add esp, 4
push 0x100
call fcn.004cf0e5
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x18]
lea ecx, [eax + ecx*4]
mov eax, dword [edi + 8]
lea edx, [ecx + 4]
sub eax, edx
sar eax, 2
test eax, eax
jle 0x464986
add eax, eax
add eax, eax
push eax
push edx
push eax
push ecx
call fcn.004f071c
add esp, 0x10
add dword [edi + 8], esi
mov al, 1
jmp 0x4646ea