Function at 0x405750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x44a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x406]
push ecx
mov word [ebp - 0x408], ax
call fcn.00427f40
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x206]
push eax
mov dword [ebp - 0xe0c], 0
mov word [ebp - 0x208], dx
call fcn.00427f40
add esp, 0xc
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [ebp - 0x606]
push edx
mov dword [ebp - 0xe14], 1
mov word [ebp - 0x608], cx
call fcn.00427f40
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0xe06]
mov edi, 0x200
push ecx
mov dword [ebp - 0xe10], edi
mov word [ebp - 0xe08], ax
call fcn.00427f40
add esp, 0xc
xor esi, esi
call fcn.00405b80
test eax, eax
jne 0x405831
jmp 0x405810
push 0x3e8
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x12c
jae 0x4058fc
call fcn.00405b80
test eax, eax
je 0x405810
push 0x43bc10
call fcn.00406870
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x43b908]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x405840
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWin_Win7]
mov word [ebp + eax - 0x408], cx
add eax, 2
test cx, cx
jne 0x405860
push edi
lea ecx, [ebp - 0x608]
push 0
push ecx
mov dword [ebp - 0xe10], edi
call fcn.00427f40
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [ebp - 0xe0c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xe0c], 0
call edi
test eax, eax
je 0x405933
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x4058d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x43bc48
call fcn.00406870
mov eax, dword [ebp - 0xe0c]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
push esi
push 0x43bbc0
lea edx, [ebp - 0xe08]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xe08]
push eax
call fcn.00406870
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xe10]
push ecx
lea edx, [ebp - 0x608]
push edx
mov edx, dword [ebp - 0xe0c]
lea eax, [ebp - 0xe14]
push eax
push 0
lea ecx, [ebp - 0x208]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x405971
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40597f
push 0x43bc88
jmp 0x4058d5
push 0x43bcd8
call fcn.00406870
add esp, 4
cmp dword [0x487438], 0
jne 0x405ae5
xor esi, esi
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x43b908]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x4059a0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.SystemCurrentControlSetServicesWM7F]
mov word [ebp + eax - 0x408], cx
add eax, 2
test cx, cx
jne 0x4059c0
jmp 0x4059e5
cmp esi, 0x78
jae 0x405a13
lea ecx, [ebp - 0xe0c]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x408]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x405a5b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x4059e0
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x405a24
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0xe08]
push 0x43bd60
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe08]
add esp, 0xc
push ecx
call fcn.00406870
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00421294
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x5a
jae 0x405ac9
push 0x200
lea edx, [ebp - 0x608]
push 0
push edx
mov dword [ebp - 0xe10], 0x200
call fcn.00427f40
add esp, 0xc
lea eax, [ebp - 0xe10]
push eax
lea ecx, [ebp - 0x608]
push ecx
mov ecx, dword [ebp - 0xe0c]
lea edx, [ebp - 0xe14]
push edx
push 0
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x405ac2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x405a60
push 0x43be04
jmp 0x405aea
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x405ada
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x43bda8
jmp 0x405902
push 0x43be2c
call fcn.00406870
mov eax, dword [ebp - 0xe0c]
add esp, 4
test eax, eax
je 0x405b03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00405da0
test eax, eax
jne 0x405b16
push 0x43be70
jmp 0x405919
push 0x200
lea ecx, [ebp - 0x208]
push 0
push ecx
call fcn.00427f40
add esp, 0xc
push 0x48b128
lea edx, [ebp - 0x208]
push str._swmcUpdater.exe
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.00421f91
add esp, 8
test eax, eax
je 0x405b65
push 0x43bee0
jmp 0x405919
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00421294
mov esp, ebp
pop ebp
ret