Function at 0x41e860
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
push 8
push 1
call fcn.004133d0
add esp, 0xc
mov ebp, eax
mov eax, dword [0x4c0440]
test eax, eax
jne 0x41e8a5
push str.kernel32.dll
call fcn.0042ef90
add esp, 4
mov dword [0x4c0440], eax
test eax, eax
je 0x41ec6c
push str.AddDllDirectory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c0444], eax
push 0
push 0x64
push 3
call fcn.004133d0
add esp, 0xc
mov dword [ebp], eax
mov dword [ebp + 4], 0
lea eax, [esp + 0x10]
push eax
push str.SOFTWAREMITKerberos
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov dword [esp + 4], ebp
jne 0x41eb11
lea edi, [esp + 8]
lea esi, [esp + 0xc]
push edi
push 0
push esi
push 0
push str.InstallDir
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41eb07
cmp dword [esp + 0xc], 1
jne 0x41eb07
mov eax, dword [esp + 8]
add eax, 0x14
push 0
push 1
push eax
call fcn.004133d0
add esp, 0xc
mov ebx, eax
push edi
push eax
push esi
push 0
push str.InstallDir
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edi, edi
test eax, eax
jne 0x41ea29
cmp dword [esp + 0xc], 1
jne 0x41ea29
push ebx
call fcn.00480220
add esp, 4
mov dword [ebx + eax], 0x6e69625c
mov byte [ebx + eax + 4], 0
cmp dword [0x4c0444], 0
je 0x41e99b
push ebx
push 0
push 0
call fcn.0043dfe0
add esp, 0xc
mov edi, eax
push eax
call dword [0x4c0444]
push edi
call fcn.00413460
add esp, 4
push ebx
call fcn.00480220
add esp, 4
mov dword [ebx + eax], 0x7373675c
mov dword [ebx + eax + 4], 0x33697061
mov dword [ebx + eax + 8], 0x6c642e32
mov word [ebx + eax + 0xc], 0x6c
push 0xd00
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov eax, dword [0x4c0468]
test eax, eax
jne 0x41e9ed
push 0x414c60
call fcn.00415550
add esp, 4
mov dword [0x4c0468], eax
push 0
push edi
push eax
call fcn.004162b0
add esp, 0xc
test eax, eax
je 0x41ea04
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4c0468]
test eax, eax
jne 0x41ea1f
push 0x414c60
call fcn.00415550
add esp, 4
mov dword [0x4c0468], eax
push edi
push eax
call fcn.004155f0
add esp, 8
push ebx
call fcn.00413460
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41eb11
mov ebx, dword [ebp]
mov eax, dword [ebp + 4]
lea ecx, [eax + 1]
mov dword [ebp + 4], ecx
imul esi, eax, 0x64
lea eax, [ebx + esi]
mov dword [esp], eax
mov dword [ebx + esi], 0
mov dword [ebx + esi + 4], str.Using_GSSAPI_from_GSSAPI32.DLL
mov dword [ebx + esi + 0x60], edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gss_delete_sec_context
push edi
call ebp
mov dword [ebx + esi + 0x34], eax
push str.gss_display_status
push edi
call ebp
mov dword [ebx + esi + 0x38], eax
push str.gss_get_mic
push edi
call ebp
mov dword [ebx + esi + 0x3c], eax
push str.gss_verify_mic
push edi
call ebp
mov dword [ebx + esi + 0x40], eax
push str.gss_import_name
push edi
call ebp
mov dword [ebx + esi + 0x44], eax
push str.gss_init_sec_context
push edi
call ebp
mov dword [ebx + esi + 0x48], eax
push str.gss_release_buffer
push edi
call ebp
mov dword [ebx + esi + 0x4c], eax
push str.gss_release_cred
push edi
call ebp
mov dword [ebx + esi + 0x50], eax
push str.gss_release_name
push edi
call ebp
mov dword [ebx + esi + 0x54], eax
push str.gss_acquire_cred
push edi
call ebp
mov dword [ebx + esi + 0x58], eax
push str.gss_inquire_cred_by_mech
push edi
call ebp
mov ebp, dword [esp + 4]
mov dword [ebx + esi + 0x5c], eax
push dword [esp]
call fcn.0043e010
add esp, 4
jmp 0x41eb11
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x2c]
push str.secur32.dll
call fcn.0042ef90
add esp, 4
test eax, eax
je 0x41ec1c
mov edi, eax
mov esi, dword [ebp]
mov eax, dword [ebp + 4]
lea ecx, [eax + 1]
mov dword [ebp + 4], ecx
imul ebp, eax, 0x64
mov dword [esi + ebp], 1
mov dword [esi + ebp + 4], str.Using_SSPI_from_SECUR32.DLL
mov dword [esi + ebp + 0x60], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AcquireCredentialsHandleA
push edi
call ebx
mov dword [0x4c0448], eax
push str.InitializeSecurityContextA
push edi
call ebx
mov dword [0x4c044c], eax
push str.FreeContextBuffer
push edi
call ebx
mov dword [0x4c0450], eax
push str.FreeCredentialsHandle
push edi
call ebx
mov dword [0x4c0454], eax
push str.DeleteSecurityContext
push edi
call ebx
mov dword [0x4c0458], eax
push str.QueryContextAttributesA
push edi
call ebx
mov dword [0x4c045c], eax
push str.MakeSignature
push edi
call ebx
mov dword [0x4c0460], eax
push str.VerifySignature
push edi
call ebx
mov dword [0x4c0464], eax
mov dword [esi + ebp + 8], 0x41ee50
mov dword [esi + ebp + 0xc], 0x41ee70
mov dword [esi + ebp + 0x10], 0x41eea0
mov dword [esi + ebp + 0x14], 0x41eed0
mov dword [esi + ebp + 0x18], 0x41f0e0
mov dword [esi + ebp + 0x1c], 0x41f110
mov dword [esi + ebp + 0x20], 0x41f1d0
mov dword [esi + ebp + 0x24], 0x41f210
mov dword [esi + ebp + 0x28], 0x41f310
mov dword [esi + ebp + 0x2c], 0x41f3b0
mov dword [esi + ebp + 0x30], 0x41f3d0
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 4]
push 0x30
push esi
call fcn.00412410
add esp, 8
mov esi, dword [eax]
cmp byte [esi], 0
je 0x41ed92
cmp dword [0x4c0444], 0
je 0x41ecaf
push esi
call fcn.00480220
add esp, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
test eax, eax
jle 0x41ecaf
movzx ecx, byte [esi + eax - 1]
add eax, 0xffffffff
cmp cl, 0x5c
je 0x41ec73
cmp cl, 0x3a
jne 0x41ec50
test eax, eax
jne 0x41ec76
jmp 0x41ecaf
xor eax, eax
jmp 0x41e8b1
add eax, 1
push esi
push eax
push 0x4a6113
call fcn.00415500
add esp, 0xc
mov edi, eax
push eax
push 0
push 0
call fcn.0043dfe0
add esp, 0xc
mov ebx, eax
push eax
call dword [0x4c0444]
push ebx
call fcn.00413460
add esp, 4
push edi
call fcn.00413460
add esp, 4
push 0xd00
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x41ed92
mov edi, eax
mov ebx, dword [ebp]
mov eax, dword [ebp + 4]
lea ecx, [eax + 1]
mov dword [ebp + 4], ecx
imul ebp, eax, 0x64
lea eax, [ebx + ebp]
mov dword [esp], eax
mov dword [ebx + ebp], 2
push esi
push str.Using_GSSAPI_from_user_specified_library__s
call fcn.00415500
add esp, 8
mov dword [ebx + ebp + 4], eax
mov dword [ebx + ebp + 0x60], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gss_delete_sec_context
push edi
call esi
mov dword [ebx + ebp + 0x34], eax
push str.gss_display_status
push edi
call esi
mov dword [ebx + ebp + 0x38], eax
push str.gss_get_mic
push edi
call esi
mov dword [ebx + ebp + 0x3c], eax
push str.gss_verify_mic
push edi
call esi
mov dword [ebx + ebp + 0x40], eax
push str.gss_import_name
push edi
call esi
mov dword [ebx + ebp + 0x44], eax
push str.gss_init_sec_context
push edi
call esi
mov dword [ebx + ebp + 0x48], eax
push str.gss_release_buffer
push edi
call esi
mov dword [ebx + ebp + 0x4c], eax
push str.gss_release_cred
push edi
call esi
mov dword [ebx + ebp + 0x50], eax
push str.gss_release_name
push edi
call esi
mov dword [ebx + ebp + 0x54], eax
push str.gss_acquire_cred
push edi
call esi
mov dword [ebx + ebp + 0x58], eax
push str.gss_inquire_cred_by_mech
push edi
call esi
mov dword [ebx + ebp + 0x5c], eax
mov ebp, dword [esp + 4]
push dword [esp]
call fcn.0043e010
add esp, 4
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0046c040
mov eax, ebp
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret