Function at 0x40365d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x145c
call fcn.0040c8b0
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x50], ebx
lea edi, [esp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [esp + 0x30]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x30], ebx
stosd dword es:[edi], eax
call fcn.004082c1
test eax, eax
je 0x4036a9
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x58]
push eax
push ebx
call dword [esp + 0x44]
jmp 0x4036ac
or eax, 0xffffffff
cmp eax, ebx
jne 0x403935
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
call fcn.0040b2dc
add esp, 0xc
test eax, eax
jne 0x40391f
mov edi, 0x1fe
push edi
lea eax, [esp + 0x6e]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x74], bx
call sub.msvcrt.dll_memset
lea eax, [esp + 0x74]
push eax
push ebx
push dword [esp + 0x24]
call fcn.0040b2f6
add esp, 0x18
jmp 0x4038da
mov esi, 0x3ff
push esi
lea eax, [esp + 0x86d]
push ebx
push eax
mov byte [esp + 0x874], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [esp + 0x47a]
push ebx
push eax
mov word [esp + 0x480], bx
call sub.msvcrt.dll_memset
push 0x7fe
lea eax, [esp + 0xc86]
push ebx
push eax
mov word [esp + 0xc8c], bx
call sub.msvcrt.dll_memset
lea eax, [esp + 0x8c]
push eax
push str.RasDialParams__s0
lea eax, [esp + 0xc94]
push esi
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0xa0]
push eax
push dword [esp + 0x4c]
mov dword [esp + 0x6c], esi
xor esi, esi
call fcn.0040b2dc
add esp, 0x40
test eax, eax
jne 0x40389c
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x86c]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
push 0x40db14
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4037ba
inc esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40389c
mov eax, 0xff
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x26e]
push ebx
push eax
mov word [esp + 0x274], bx
call sub.msvcrt.dll_memset
push edi
lea eax, [esp + 0x67a]
push ebx
push eax
mov word [esp + 0x680], bx
call sub.msvcrt.dll_memset
add esp, 0x18
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0040a6e7
test eax, eax
je 0x403858
push str.LookupAccountSidW
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x403858
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x670]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x87c]
push ecx
push ebx
call eax
cmp word [esp + 0x268], bx
je 0x40388c
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x66c]
push eax
push str._s_s
lea eax, [esp + 0x474]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
cmp dword [esp + 0x18], ebx
je 0x40389c
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [esp + 0x468]
push eax
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xc70]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push dword [ebp + 8]
call fcn.00403586
inc dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x20]
push dword [esp + 0x18]
call fcn.0040b2f6
add esp, 0xc
test eax, eax
je 0x403704
mov esi, 0x40d3d0
push esi
push esi
push str.L__RasDefaultCredentials0
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push dword [ebp + 8]
call fcn.00403586
push esi
push esi
push str.L__RasConnectionCredentials0
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push dword [ebp + 8]
call fcn.00403586
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x30]
call fcn.004082c1
test eax, eax
je 0x403935
push edi
call dword [esp + 0x40]
cmp dword [esp + 0x30], ebx
je 0x403945
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4