Function at 0x4030fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x4080c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
xor ebx, ebx
push esi
mov word [ebp - 0x458], ax
lea eax, [ebp - 0x456]
push ebx
push eax
mov dword [ebp - 0x464], edx
mov dword [ebp - 0x45c], ebx
call sub.MSVCR110.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push ebx
push eax
call sub.MSVCR110.dll_memset
add esp, 0x18
mov eax, dword [ebp - 0x464]
push 6
pop ecx
mov esi, 0x403374
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 7
pop ecx
mov esi, 0x403390
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x468], 0x20a
mov edi, ebx
mov dword [ebp - 0x460], ebx
test eax, eax
je 0x403337
mov dword [eax], ebx
lea eax, [ebp - 0x45c]
push eax
push 1
push ebx
push 0x4033b0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80070000
test eax, eax
je 0x4031c8
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
jmp 0x403221
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
push eax
push ebx
push ebx
push 0x4033f0
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4031bc
push 0x7ffffffe
lea eax, [ebp - 0x458]
push eax
push ecx
mov edx, 0x105
lea ecx, [ebp - 0x24c]
call fcn.004030b6
test eax, eax
js 0x40323b
push 0x1a
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403059
mov esi, eax
test esi, esi
js 0x40323b
lea ecx, [ebp - 0x24c]
call fcn.00404279
mov edi, eax
test edi, edi
je 0x40324b
jmp 0x4032bd
mov ecx, 0x403414
call fcn.00404279
mov edi, eax
test edi, edi
jne 0x403264
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x40333c
push 0x105
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4032a9
cmp eax, 0x105
je 0x4032a9
cmp eax, 0xc
jb 0x403320
lea eax, [eax*2 - 0x18]
cmp eax, 0x20a
jae 0x40336d
xor ecx, ecx
mov word [ebp + eax - 0x458], cx
jmp 0x4032c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x403320
push 0x7ffffffe
lea eax, [ebp - 0x458]
push eax
push ecx
mov edx, 0x105
lea ecx, [ebp - 0x24c]
call fcn.004030b6
test eax, eax
js 0x403320
push 0x1e
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00403059
test eax, eax
js 0x403320
lea ecx, [ebp - 0x24c]
call fcn.00404279
mov dword [ebp - 0x460], eax
test eax, eax
jne 0x403314
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x403320
push 0x403404
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x460]
mov edx, dword [ebp - 0x464]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
mov dword [edx], eax
jmp 0x40333c
mov ebx, 0x80070057
cmp dword [ebp - 0x45c], 0
je 0x403351
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40335c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004019e8
leave
ret
call fcn.00405ff6
int3