Function at 0x4031d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe18
mov eax, dword [0x447044]
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.004272d0
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.004272d0
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.004272d0
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.004272d0
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 0x434d50
call fcn.004042f0
add esp, 4
xor eax, eax
movzx ecx, word [eax + 0x434a48]
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.004272d0
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 0x434d88
call fcn.004042f0
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.0041f53e
mov esp, ebp
pop ebp
ret
push esi
push 0x434d00
lea edx, [ebp - 0xe08]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xe08]
push eax
call fcn.004042f0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f53e
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 0x434dc8
jmp 0x403355
push 0x434e18
call fcn.004042f0
add esp, 4
cmp dword [0x10847a0], 0
jne 0x403565
xor esi, esi
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x434a48]
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 0x434ea0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe08]
add esp, 0xc
push ecx
call fcn.004042f0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f53e
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.004272d0
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 0x434f44
jmp 0x40356a
mov eax, dword [ebp - 0xe0c]
test eax, eax
je 0x40355a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x434ee8
jmp 0x403382
push 0x434f6c
call fcn.004042f0
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 0x434fb0
jmp 0x403399
push 0x200
lea ecx, [ebp - 0x208]
push 0
push ecx
call fcn.004272d0
add esp, 0xc
push 0x10884a0
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.0041fb1f
add esp, 8
test eax, eax
je 0x4035e5
push 0x435020
jmp 0x403399
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041f53e
mov esp, ebp
pop ebp
ret