Function at 0x100050bc
Capabilities:
Print debug messages
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x57c
mov eax, 0x10020bf2
call fcn.1000e406
xor ebx, ebx
mov byte [ebp - 0x435], bl
mov dword [ebp - 0x440], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x440]
mov esi, reloc.WS2_32.dll_closesocket
push esi
mov dword [ebp - 0x44c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x440]
cmp eax, ebx
jne 0x1000538c
lea eax, [ebp - 0x508]
push eax
call fcn.1000541e
push str.SoftwareAerofoxFoxmailPreview
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x508]
push eax
mov dword [ebp - 4], ebx
call fcn.10006978
add esp, 0xc
push eax
call fcn.10006978
pop ecx
pop ecx
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x508]
call fcn.100054d8
cmp dword [eax + 0x18], 8
jb 0x10005165
mov eax, dword [eax + 4]
jmp 0x10005168
add eax, 4
lea ecx, [ebp - 0x444]
push ecx
push 1
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push 1
lea esi, [ebp - 0x488]
mov dword [ebp - 0x43c], eax
call fcn.100028f6
mov eax, dword [ebp - 0x43c]
sub eax, ebx
je 0x100051aa
dec eax
dec eax
je 0x10005378
push str.RegOpenKey___failed
jmp 0x10005372
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x418]
push eax
push ebx
push ebx
push str.Executable
push dword [ebp - 0x444]
mov dword [ebp - 0x448], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005352
mov eax, dword [ebp - 0x448]
shr eax, 1
push eax
lea ecx, [ebp - 0x418]
lea eax, [ebp - 0x434]
call fcn.100053cf
lea eax, [ebp - 0x43c]
push eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], 0x5c
call fcn.10005c2e
mov dword [ebp - 0x43c], eax
cmp eax, 0xffffffff
je 0x100052c0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x38
pop ecx
cdq
idiv ecx
sub esp, 0x38
mov ecx, esp
mov dword [ebp - 0x450], esp
push 7
pop edx
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x14], ebx
xor esi, esi
mov word [ecx + 4], si
mov dword [ecx + 0x34], edx
mov dword [ecx + 0x30], ebx
xor edx, edx
mov word [ecx + 0x20], dx
mov ecx, edi
inc eax
push eax
call fcn.10005dc6
mov esi, dword [ebp - 0x43c]
push str.DataAccCfgAccounts.tdat
inc esi
push esi
lea eax, [ebp - 0x434]
push eax
call fcn.100053f2
mov eax, edi
call fcn.100059e5
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x434]
call fcn.10005fdb
push str.DataAccCfgAccounts.tindd
push esi
lea eax, [ebp - 0x434]
push eax
call fcn.100053f2
mov eax, edi
call fcn.100059e5
add eax, 0x1c
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x434]
call fcn.10005fdb
jmp 0x10005342
lea eax, [ebp - 0x588]
push eax
call fcn.1000541e
push 0x10024330
push ecx
lea eax, [ebp - 0x588]
push 0x10024334
push eax
mov byte [ebp - 4], 2
call fcn.10006978
push eax
lea ecx, [ebp - 0x434]
call fcn.10006acc
add esp, 0x10
push eax
call fcn.10006978
pop ecx
pop ecx
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x588]
call fcn.100054d8
cmp dword [eax + 0x18], 8
jb 0x1000531b
mov eax, dword [eax + 4]
jmp 0x1000531e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push 1
lea esi, [ebp - 0x46c]
call fcn.100028f6
lea eax, [ebp - 0x588]
mov byte [ebp - 4], 1
call fcn.100053b3
push ebx
push 1
lea esi, [ebp - 0x434]
call fcn.100028f6
jmp 0x1000535d
push str.RegQueryValueEx___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10005378
push str.RegCloseKey___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x508]
call fcn.100053b3
jmp 0x100050d9
cmp eax, 0x103
je 0x100053a0
push str.RegEnumKeyEx___failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x100053a7
mov byte [ebp - 0x435], 1
mov al, byte [ebp - 0x435]
call fcn.1000e489
ret