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

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call sym.HPZshl01.exe_unsigned_int___cdecl_Is9X_void_
test eax, eax
je 0x407695
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret 0x14
mov eax, dword [ebx + 0x14]
mov edi, dword [esp + 0x54]
xor ebp, ebp
cmp eax, ebp
jne 0x4076bc
mov eax, dword [ebx + 0xc]
cmp eax, ebp
je 0x4076bc
mov ecx, dword [ebx + 0x10]
push ecx
push edi
push ebp
call eax
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x2c], 2
je 0x4076f1
lea edx, [esp + 0x2c]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
push 0x20000
push ebp
push ebp
push ebp
push edi
push ecx
call dword [0x478634]
jmp 0x407708
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push 0x20000
push ebp
push edi
push eax
call dword [0x47861c]
cmp eax, ebp
je 0x407743
cmp eax, 2
jne 0x40773a
mov ecx, dword [esp + 0x50]
push ecx
push edi
push str.Key__s_does_not_exist_in_root_0x_x
push 0x20
push 0x4788a8
call fcn.0041f763
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
push eax
push edi
push str.__Failed_to_open_key__s.__error_d
jmp 0x40776c
mov eax, dword [esp + 0x14]
mov esi, dword [0x478630]
lea edx, [esp + 0x18]
mov dword [esp + 0x54], ebp
push edx
push ebp
push 4
push eax
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0x7a
je 0x407787
push eax
push edi
push str.__Could_not_read_security_descriptor_for_key__s._error_d
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [esp + 0x18]
mov dword [esp + 0x28], eax
push edx
push eax
mov eax, dword [esp + 0x1c]
push 4
push eax
call esi
cmp eax, ebp
jne 0x407a00
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebp
call dword [0x47862c]
test eax, eax
je 0x4079e5
cmp dword [esp + 0x1c], ebp
je 0x4079e5
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov eax, dword [ebx + 4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x54], 1
mov esi, dword [eax]
cmp esi, eax
je 0x4078ab
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], ebp
cmp eax, ebp
jne 0x407823
mov eax, 0x45b980
lea edx, [esp + 0x5c]
push edx
push eax
call dword [0x478620]
test eax, eax
je 0x4078e1
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
call dword [0x478628]
cmp eax, ebp
jne 0x4079af
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, eax
and ecx, edx
cmp ecx, eax
jne 0x407983
mov ecx, dword [esi + 0xc]
cmp ecx, ebp
jne 0x40787b
mov ecx, 0x45b980
push ecx
push edi
push eax
push edx
push str.grantedRights0x_x_meets_our_requirement_access0x_x_for_key__s_for_user__s
push 0x20
push 0x4788a8
call fcn.0041f763
mov edx, dword [esp + 0x78]
add esp, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi]
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x407813
cmp dword [esp + 0x58], ebp
je 0x40790d
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x47860c]
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push 9
push ebp
push edi
push eax
call dword [0x47861c]
cmp eax, ebp
je 0x4079c9
push eax
push edi
push str.__Failed_to_open_key__s_for_enumerating_sub_keys.__error_d
jmp 0x4078fa
mov esi, dword [esi + 0xc]
cmp esi, ebp
jne 0x4078ed
mov esi, 0x45b980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.__Cannot_convert__s_to_a_Sid.__error_d
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x14
mov dword [esp + 0x54], ebp
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x14]
push eax
call dword [0x47860c]
mov esi, dword [esp + 0x54]
cmp esi, ebp
jne 0x407944
push edi
push str.Access_check_failed_for_key__s
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x10
cmp dword [esp + 0x2c], 1
jne 0x407957
mov ecx, dword [esp + 0x50]
push edi
push ecx
call dword [0x478624]
cmp dword [ebx + 0x14], ebp
jne 0x407977
mov eax, dword [ebx + 0xc]
cmp eax, ebp
je 0x407977
mov edx, dword [ebx + 0x10]
push edx
push edi
push 0xa
call eax
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14
mov eax, dword [esi + 0xc]
cmp eax, ebp
jne 0x40798f
mov eax, 0x45b980
push edi
push eax
mov eax, dword [esi + 0x18]
push eax
push edx
push str.grantedRights0x_x_does_not_meet_our_requirement_access0x_x_for_sid__s_for_key__s.
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x1c
jmp 0x407909
push eax
push str.__GetEffectiveRightsFromAcl_failed_with__d
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x10
jmp 0x407909
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00407a20
test eax, eax
jne 0x40790d
jmp 0x407909
push ebp
push edi
push str.__Failed_to_get_DACL_from_security_descriptor_for_key__s.__error___d
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x14
jmp 0x407911
push eax
push edi
push str.__Could_not_read_security_descriptor_for_key__s._error_d
push 1
push 0x4788a8
call fcn.0041f763
add esp, 0x14
jmp 0x407911