Function at 0x408560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x328
mov ecx, dword [esp + 0x330]
mov edx, dword [esp + 0x32c]
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4085a9
mov eax, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [eax], 4
xor eax, eax
pop ebx
add esp, 0x328
ret 0x10
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x348]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408600
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [esp + 0x340]
pop ebp
xor eax, eax
pop ebx
mov dword [ecx], 5
add esp, 0x328
ret 0x10
cmp dword [esp + 0x18], 1
je 0x40862e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [esp + 0x340]
pop ebp
pop ebx
mov dword [eax], 0xc
xor eax, eax
add esp, 0x328
ret 0x10
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.FBSCL.DLL
call ebp
lea edx, [esp + 0x20]
mov esi, eax
push edx
call ebp
lea eax, [esi + eax + 1]
cmp eax, 0x105
jbe 0x408676
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [ecx], 0xd
xor eax, eax
pop ebx
add esp, 0x328
ret 0x10
mov esi, dword [sym._MultiByteToWideChar_24]
lea edx, [esp + 0x20]
lea eax, [esp + 0x128]
push edx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x128]
push str.FBSCL.DLL
push ecx
call edi
mov ebx, dword [sym._HeapReAlloc_16]
lea edx, [esp + 0x128]
push edx
call ebx
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [ecx + 0x1cff], eax
mov edx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov eax, dword [edx + 0x1cff]
test eax, eax
jne 0x4086e8
mov eax, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [eax], 6
xor eax, eax
pop ebx
add esp, 0x328
ret 0x10
push str.SC_DbgWtc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [ecx + 0x1d03], eax
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov ecx, dword [eax + 0x1d03]
test ecx, ecx
jne 0x408738
mov edx, dword [eax + 0x1cff]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, dword [esp + 0x340]
pop ebp
pop ebx
mov dword [eax], 7
xor eax, eax
add esp, 0x328
ret 0x10
push str.F1A0RD63.DLL
call ebp
lea ecx, [esp + 0x20]
mov edx, eax
push ecx
mov dword [esp + 0x18], edx
call ebp
mov edx, dword [esp + 0x14]
lea eax, [edx + eax + 1]
cmp eax, 0x105
jbe 0x408777
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [ecx], 0xe
xor eax, eax
pop ebx
add esp, 0x328
ret 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x230]
push edx
push eax
call esi
lea ecx, [esp + 0x230]
push str.F1A0RD63.DLL
push ecx
call edi
lea edx, [esp + 0x230]
push edx
call ebx
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [ecx + 0x1d07], eax
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov eax, dword [ecx + 0x1d07]
test eax, eax
jne 0x4087e4
mov edx, dword [ecx + 0x1cff]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, dword [esp + 0x340]
pop ebp
pop ebx
mov dword [eax], 8
xor eax, eax
add esp, 0x328
ret 0x10
push str.DbgAnzPcode
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov dword [ecx + 0x1d0b], eax
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov ecx, dword [eax + 0x1d0b]
test ecx, ecx
jne 0x408844
mov edx, dword [eax + 0x1cff]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call esi
mov eax, dword [sym.imp.F1A0RN63.DLL_Ordinal_10000]
mov ecx, dword [eax + 0x1d07]
push ecx
call esi
pop edi
pop esi
mov edx, dword [esp + 0x340]
pop ebp
xor eax, eax
pop ebx
mov dword [edx], 9
add esp, 0x328
ret 0x10
mov eax, dword [esp + 0x348]
pop edi
pop esi
pop ebp
mov dword [eax], 0
mov eax, 1
pop ebx
add esp, 0x328
ret 0x10