Function at 0x4031d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x446044]
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.00426670
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.00426670
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.00426670
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.00426670
add esp, 0xc
xor esi, esi
call fcn.00403600
test eax, eax
jne 0x4032b1
jmp 0x403290
push 0x3e8
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x12c
jae 0x40337c
call fcn.00403600
test eax, eax
je 0x403290
push 0x434d40
call fcn.00403960
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x434a38]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x4032c0
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 0x4032e0
push edi
lea ecx, [ebp - 0x608]
push 0
push ecx
mov dword [ebp - 0xe10], edi
call fcn.00426670
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 0x4033b3
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x403350
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x434d78
call fcn.00403960
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.0041e7be
mov esp, ebp
pop ebp
ret
push esi
push 0x434cf0
lea edx, [ebp - 0xe08]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xe08]
push eax
call fcn.00403960
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
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 0x4033f1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4033ff
push 0x434db8
jmp 0x403355
push 0x434e08
call fcn.00403960
add esp, 4
cmp dword [0xc9a818], 0
jne 0x403565
xor esi, esi
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x434a38]
mov word [ebp + eax - 0x208], cx
add eax, 2
test cx, cx
jne 0x403420
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 0x403440
jmp 0x403465
cmp esi, 0x78
jae 0x403493
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 0x4034db
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x403460
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x4034a4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0xe08]
push 0x434e90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe08]
add esp, 0xc
push ecx
call fcn.00403960
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e7be
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x5a
jae 0x403549
push 0x200
lea edx, [ebp - 0x608]
push 0
push edx
mov dword [ebp - 0xe10], 0x200
call fcn.00426670
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 0x403542
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x4034e0
push 0x434f34
jmp 0x40356a
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x40355a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x434ed8
jmp 0x403382
push 0x434f5c
call fcn.00403960
mov eax, dword [ebp - 0xe0c]
add esp, 4
test eax, eax
je 0x403583
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403820
test eax, eax
jne 0x403596
push 0x434fa0
jmp 0x403399
push 0x200
lea ecx, [ebp - 0x208]
push 0
push ecx
call fcn.00426670
add esp, 0xc
push 0xc9e518
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.0041ed9f
add esp, 8
test eax, eax
je 0x4035e5
push 0x435010
jmp 0x403399
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041e7be
mov esp, ebp
pop ebp
ret