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

Disassembly:
push 0xffffffffffffffff
push 0x3a2dbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x3a7682c]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x4a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c0]
mov edi, dword [esp + 0x4b8]
mov ebp, dword [esp + 0x4c4]
mov esi, dword [esp + 0x4bc]
lea ecx, [esp + 0x38]
mov dword [esp + 0x64], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], ebp
call fcn.0394ec90
xor ebx, ebx
mov dword [esp + 0x4b0], ebx
lea ecx, [esp + 0x38]
call fcn.03953a00
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x4b0], 1
cmp esi, ebx
je 0x3972153
push edi
call fcn.039619c0
add esp, 4
test al, al
je 0x3972124
cmp word [esi], bx
je 0x3972153
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push edi
push eax
call fcn.039685c0
add esp, 0x10
test al, al
jne 0x397217e
cmp ebp, ebx
je 0x3972153
push edi
push str.__hKey_x__not_seen_before__
push ebp
call fcn.039f0800
add esp, 0xc
mov byte [esp + 0x4b0], bl
lea ecx, [esp + 0x14]
call fcn.03961a00
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0394fcd0
xor al, al
jmp 0x3972d62
mov eax, dword [esp + 0x2c]
cmp ebp, ebx
je 0x39721a2
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 8]
call fcn.039619a0
push eax
push edi
push str.__xh_ls_ls_
push ebp
call fcn.039f0800
add esp, 0x14
lea ecx, [esp + 0xcc]
call fcn.039efdc0
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0xcc]
push ecx
push esi
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0xc]
push edx
call fcn.03961ae0
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0xd8]
xor esi, esi
add esp, 0xc
cmp dword [ecx + 8], 0x80000000
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], esi
jne 0x397229b
mov edx, ecx
mov eax, dword [edx + 0x38]
shr eax, 2
and eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
lea esi, [esp + 0x40]
lea edi, [esp + 0x20]
call fcn.0396b0d0
mov edx, dword [esp + 0x70]
mov eax, edi
push eax
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.039685c0
add esp, 0x1c
test al, al
jne 0x3972293
cmp ebp, ebx
je 0x3972254
mov ecx, dword [esp + 0x64]
push ecx
push str.__hKey_x__not_seen_before__
push ebp
call fcn.039f0800
add esp, 0xc
mov byte [esp + 0x4b0], 1
lea ecx, [esp + 0xcc]
call fcn.039ef660
mov byte [esp + 0x4b0], bl
lea ecx, [esp + 0x14]
call fcn.03961a00
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0394fcd0
xor al, al
jmp 0x3972d62
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x5c]
push eax
push esi
push edi
push ecx
lea edx, [esp + 0x4c]
push ebx
push edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x43], 1
call fcn.03964520
add esp, 0x1c
mov dword [esp + 0x1c], eax
cmp eax, 1
jne 0x3972304
mov eax, dword [esp + 0x20]
mov dword [eax], 2
cmp dword [esp + 0x14], ebx
je 0x3972d28
dec dword [esp + 0x14]
push 0x3a78b38
call dword [0x3a5ff24]
jmp 0x3972d28
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x397258a
cmp ebp, ebx
je 0x3972327
mov ecx, dword [0x3a56b80]
push ecx
push str._found_in_RW_View_
mov ecx, ebp
call fcn.039efdd0
lea ecx, [esp + 0x214]
call fcn.039efdc0
mov byte [esp + 0x4b0], 3
mov edx, dword [esp + 0x58]
push ebx
push edx
lea ecx, [esp + 0x40]
call fcn.0394edf0
push ebx
lea ecx, [esp + 0x70]
mov ebp, eax
call fcn.0396d340
mov byte [esp + 0x4b0], 4
mov eax, dword [esp + 0x28]
push 1
push esi
push edi
push eax
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x84]
call fcn.039709c0
mov edx, dword [esp + 0x94]
sub edx, dword [esp + 0x90]
test edx, 0xfffffffc
je 0x39723ea
lea ecx, [esp + 0x14]
call fcn.039619e0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x39723b6
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__key_subkeys__cannot_delete_
push eax
call fcn.039f0800
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [edx], 5
mov byte [esp + 0x4b0], 3
lea ecx, [esp + 0x6c]
call fcn.0396a110
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x214]
call fcn.039ef660
jmp 0x3972d28
mov edx, dword [ebp + 4]
push 1
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
lea ecx, [esp + 0x4c]
call fcn.0394edf0
push eax
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.03963440
add esp, 0x18
lea ecx, [esp + 0x170]
call fcn.039efdc0
mov byte [esp + 0x4b0], 5
mov ecx, dword [ebp + 8]
push ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.0394edf0
movzx ecx, word [eax + 2]
movzx edx, cx
push edx
add eax, 4
push eax
lea ecx, [esp + 0x178]
call fcn.039efdd0
mov ecx, dword [esp + 0x214]
mov edx, dword [esp + 0x1c]
push 1
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.039655a0
add esp, 0x24
test al, al
jne 0x39724c3
lea ecx, [esp + 0x14]
call fcn.039619e0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x39724a0
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__CreateKeyPath_failed_
push eax
call fcn.039f0800
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [edx], 0x57
mov byte [esp + 0x4b0], 4
lea ecx, [esp + 0x170]
call fcn.039ef660
jmp 0x39723c0
mov eax, dword [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.0394edf0
mov esi, dword [eax]
lea ecx, [esp + 0x35c]
and esi, 7
call fcn.039efdc0
mov byte [esp + 0x4b0], 6
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0x170]
push ebx
push 1
push ecx
push eax
mov ebp, ecx
push ebx
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x48]
mov edi, eax
call fcn.03966db0
cmp esi, 4
je 0x3972529
push ebx
push ebp
push edi
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x48]
call fcn.03962040
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x3972541
mov eax, dword [0x3a56b80]
push eax
push str._found__deleted_from_RW_View_
call fcn.039efdd0
lea ecx, [esp + 0x14]
push ecx
call fcn.03967e90
add esp, 4
lea ecx, [esp + 0x14]
call fcn.039619e0
mov edx, dword [esp + 0x20]
mov dword [edx], ebx
mov byte [esp + 0x4b0], 5
lea ecx, [esp + 0x35c]
call fcn.039ef660
mov byte [esp + 0x4b0], 4
lea ecx, [esp + 0x170]
call fcn.039ef660
jmp 0x39723c0
cmp eax, 2
jne 0x39725e3
mov eax, dword [esp + 0x58]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.0394edf0
mov eax, dword [eax]
and eax, 7
cmp eax, 4
jne 0x39725da
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x39725cb
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__not_found_in_RW_View__fully_isolated_
push ebp
call fcn.039f0800
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [edx], 2
jmp 0x3972d28
cmp eax, 3
jne 0x39725e3
mov byte [esp + 0x27], bl
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x60]
push ecx
push esi
push edi
push edx
lea eax, [esp + 0x4c]
push 1
push eax
call fcn.03964520
add esp, 0x1c
cmp eax, 1
jne 0x3972624
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x39725cb
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__Already_deleted_from_RO_View_
jmp 0x39725c2
cmp eax, ebx
jne 0x3972827
cmp ebp, ebx
je 0x3972642
mov eax, dword [0x3a56b80]
push eax
push str._found_in_RO_View_
mov ecx, ebp
call fcn.039efdd0
mov ecx, dword [esp + 0x5c]
push 1
push ecx
lea ecx, [esp + 0x40]
call fcn.0394edf0
push ebx
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], eax
call fcn.0396d340
mov byte [esp + 0x4b0], 7
mov edx, dword [esp + 0x28]
push 1
push esi
push edi
push edx
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x84]
call fcn.039709c0
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x90]
test ecx, 0xfffffffc
je 0x39726dc
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x39726bc
mov edx, dword [esp + 0xcc]
push edx
push str.__ls__key_subkeys__cannot_delete_
push ebp
call fcn.039f0800
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [eax], 5
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x6c]
call fcn.0396a110
jmp 0x3972d28
lea ecx, [esp + 0x170]
call fcn.039efdc0
mov byte [esp + 0x4b0], 8
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push 1
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x3c]
push edx
push 1
push eax
lea ecx, [esp + 0x4c]
call fcn.0394edf0
push eax
lea ecx, [esp + 0x48]
push 1
push ecx
call fcn.03963440
mov edx, dword [esi + 8]
add esp, 0x18
push 1
push edx
lea ecx, [esp + 0x40]
call fcn.0394edf0
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x34]
push 1
push ebx
push ebx
mov esi, eax
lea eax, [esp + 0x3c]
push eax
push ebx
push ecx
push edx
lea eax, [esp + 0x54]
push ebx
push eax
call fcn.039655a0
add esp, 0x24
test al, al
jne 0x39727b3
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x397277f
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__CreateKeyPath_failed_
push ebp
call fcn.039f0800
add esp, 0xc
mov edx, dword [esp + 0x20]
mov dword [edx], 0x57
mov byte [esp + 0x4b0], 7
lea ecx, [esp + 0x170]
call fcn.039ef660
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x6c]
call fcn.0396a110
jmp 0x3972d28
lea ecx, [esp + 0x35c]
call fcn.039efdc0
mov byte [esp + 0x4b0], 9
movzx ecx, word [esi + 2]
cmp word [esi], bx
movzx edi, cx
setne cl
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push edi
lea eax, [esi + 4]
push eax
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x48]
call fcn.03962040
lea ecx, [esp + 0x14]
push ecx
call fcn.03967e90
add esp, 4
lea ecx, [esp + 0x14]
call fcn.039619e0
mov edx, dword [esp + 0x20]
mov dword [edx], ebx
mov byte [esp + 0x4b0], 8
lea ecx, [esp + 0x35c]
call fcn.039ef660
jmp 0x3972789
cmp eax, 2
jne 0x39728db
mov eax, dword [esp + 0x5c]
push 1
push eax
lea ecx, [esp + 0x40]
call fcn.0394edf0
mov eax, dword [eax]
and eax, 7
cmp eax, 3
je 0x39728b8
cmp eax, 2
jne 0x3972969
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0x3972879
cmp ebp, ebx
je 0x3972879
mov eax, dword [0x3a56b80]
push eax
push str._deleting_from_System_
mov ecx, ebp
call fcn.039efdd0
mov byte [esp + 0x4b0], 1
lea ecx, [esp + 0xcc]
call fcn.039ef660
mov byte [esp + 0x4b0], bl
lea ecx, [esp + 0x14]
call fcn.03961a00
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0394fcd0
xor al, al
jmp 0x3972d62
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x39725cb
mov ecx, dword [esp + 0xcc]
push ecx
push str.__ls__not_found_in_RO_View_or_RW_View_and_isolated_
jmp 0x39725c2
cmp eax, 3
jne 0x3972969
cmp dword [esp + 0x1c], 2
jne 0x3972969
mov eax, dword [esp + 0x58]
push ebx
push eax
lea ecx, [esp + 0x40]
call fcn.0394edf0
mov ecx, dword [eax]
and cl, 7
cmp cl, 2
jne 0x3972969
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0xd
test al, 1
je 0x397292a
cmp ebp, ebx
je 0x397292a
mov ecx, dword [0x3a56b80]
push ecx
push str._deleting_from_System_
mov ecx, ebp
call fcn.039efdd0
mov byte [esp + 0x4b0], 1
lea ecx, [esp + 0xcc]
call fcn.039ef660
mov byte [esp + 0x4b0], bl
lea ecx, [esp + 0x14]
call fcn.03961a00
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0394fcd0
xor al, al
jmp 0x3972d62
mov edx, dword [esp + 0x2c]
test byte [edx + 0x38], 4
je 0x3972cfb
cmp byte [esp + 0x27], bl
je 0x3972cfb
lea ecx, [esp + 0x38]
call fcn.03961be0
cmp eax, 3
je 0x3972cfb
lea ecx, [esp + 0x2b8]
call fcn.039efdc0
mov byte [esp + 0x4b0], 0xa
lea eax, [esp + 0x2b8]
push eax
push esi
push edi
call fcn.03961ae0
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
push 0x2000000
push ebx
push edx
push eax
call dword [0x3a60004]
test eax, eax
jne 0x3972cb0
cmp ebp, ebx
je 0x39729f6
mov ecx, dword [0x3a56b80]
push ecx
push str._found_in_system_
mov ecx, ebp
call fcn.039efdd0
push ebx
lea ecx, [esp + 0x70]
call fcn.0396d340
mov byte [esp + 0x4b0], 0xb
mov edx, dword [esp + 0x28]
push 1
push esi
push edi
push edx
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x84]
call fcn.039709c0
mov ecx, dword [esp + 0x94]
sub ecx, dword [esp + 0x90]
test ecx, 0xfffffffc
je 0x3972a90
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x3972a5c
mov edx, dword [esp + 0xcc]
push edx
push str.__ls__key_subkeys__cannot_delete_
push ebp
call fcn.039f0800
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [eax], 5
mov byte [esp + 0x4b0], 0xa
lea ecx, [esp + 0x6c]
call fcn.0396a110
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x2b8]
call fcn.039ef660
jmp 0x3972d28
push edi
lea ecx, [esp + 0x218]
call fcn.039f0100
mov byte [esp + 0x4b0], 0xc
cmp esi, ebx
je 0x3972ac9
mov eax, dword [0x3a56b80]
push eax
push esi
push eax
push 0x3a3b984
lea ecx, [esp + 0x224]
call fcn.039efdd0
mov ecx, eax
call fcn.039efdd0
cmp dword [esp + 0x218], ebx
je 0x3972c6a
cmp dword [esp + 0xd0], ebx
je 0x3972c6a
lea ecx, [esp + 0x170]
call fcn.039efdc0
mov byte [esp + 0x4b0], 0xd
mov ecx, dword [0x3a56b80]
push ecx
push 0x5c
lea ecx, [esp + 0x21c]
call fcn.039ef330
mov ecx, dword [0x3a56b80]
cmp ecx, eax
je 0x3972b58
push ecx
inc eax
push eax
lea edx, [esp + 0x364]
push edx
lea ecx, [esp + 0x220]
call fcn.039f0520
mov byte [esp + 0x4b0], 0xe
push eax
lea ecx, [esp + 0x174]
call fcn.039360d0
mov byte [esp + 0x4b0], 0xd
lea ecx, [esp + 0x35c]
call fcn.039ef660
jmp 0x3972b79
lea eax, [esp + 0x214]
push eax
lea ecx, [esp + 0x174]
call fcn.039360d0
push ebx
lea ecx, [esp + 0x218]
call fcn.039efbb0
mov edx, dword [esp + 0x214]
mov eax, dword [esp + 0x28]
push 1
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push edx
push eax
lea ecx, [esp + 0x54]
push ebx
push ecx
mov dword [esp + 0x40], ebx
call fcn.039655a0
add esp, 0x24
test al, al
jne 0x3972c00
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x3972bc9
mov edx, dword [esp + 0xcc]
push edx
push str.__ls__CreateKeyPath_failed_
push ebp
call fcn.039f0800
add esp, 0xc
mov eax, dword [esp + 0x20]
mov dword [eax], 0x57
mov byte [esp + 0x4b0], 0xc
lea ecx, [esp + 0x170]
call fcn.039ef660
mov byte [esp + 0x4b0], 0xb
lea ecx, [esp + 0x214]
call fcn.039ef660
jmp 0x3972a66
lea ecx, [esp + 0x400]
call fcn.039efdc0
mov byte [esp + 0x4b0], 0xf
mov ecx, dword [esp + 0x174]
mov edx, dword [esp + 0x170]
push ebx
push ecx
push edx
push ebx
push ebx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
call fcn.03962040
lea ecx, [esp + 0x14]
push ecx
call fcn.03967e90
add esp, 4
lea ecx, [esp + 0x14]
call fcn.039619e0
mov edx, dword [esp + 0x20]
mov dword [edx], ebx
mov byte [esp + 0x4b0], 0xd
lea ecx, [esp + 0x400]
call fcn.039ef660
jmp 0x3972bd3
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x3972c8d
mov eax, dword [esp + 0xcc]
push eax
push str.__ls__cannot_delete_base_key_
push ebp
call fcn.039f0800
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [ecx], 5
mov byte [esp + 0x4b0], 0xb
lea ecx, [esp + 0x214]
call fcn.039ef660
jmp 0x3972a66
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x3972cdb
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
push edx
push ecx
push str.__x__ls__key_not_found_on_system_
push ebp
call fcn.039f0800
add esp, 0x10
mov edx, dword [esp + 0x20]
mov dword [edx], 2
mov byte [esp + 0x4b0], 2
lea ecx, [esp + 0x2b8]
call fcn.039ef660
jmp 0x3972d28
lea ecx, [esp + 0x14]
call fcn.039619e0
cmp ebp, ebx
je 0x3972d1e
mov eax, dword [esp + 0xcc]
push eax
push str.__ls__not_found_in_RO_View_or_RW_View_and_isolated_
push ebp
call fcn.039f0800
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov dword [ecx], 2
mov byte [esp + 0x4b0], 1
lea ecx, [esp + 0xcc]
call fcn.039ef660
mov byte [esp + 0x4b0], bl
lea ecx, [esp + 0x14]
call fcn.03961a00
mov dword [esp + 0x4b0], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0394fcd0
mov al, 1
mov ecx, dword [esp + 0x4a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.03a00f6a
add esp, 0x4a0
ret