Function at 0x4061a0
Capabilities:
Execute anti-debugging instructions
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426c1b
mov eax, dword fs:[0]
push eax
mov eax, 0x5a18
call fcn.00417430
mov eax, dword [0x433e70]
xor eax, ebp
mov dword [ebp - 0x34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58e0], ecx
push 0x429fd4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x5714], eax
cmp dword [ebp - 0x5714], 0
jne 0x4061fc
mov eax, 1
jmp 0x40764c
push 0xa0
push 0
push 0x436008
call fcn.004159f0
add esp, 0xc
push 0xa0
push 0
push 0x435f68
call fcn.004159f0
add esp, 0xc
mov dword [ebp - 0x5168], 0
mov dword [ebp - 0x5160], 0
mov dword [ebp - 0x56c8], 0
lea eax, [ebp - 0x5160]
push eax
push 0x20019
push 0
push str.SoftwareSynapse_AudioLegend_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4062b4
mov dword [ebp - 0x56c8], 0x104
lea ecx, [ebp - 0x56c8]
push ecx
lea edx, [ebp - 0x56bc]
push edx
lea eax, [ebp - 0x5168]
push eax
push 0
push str.Serial
mov ecx, dword [ebp - 0x5160]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4062a5
mov eax, 2
jmp 0x40764c
mov edx, dword [ebp - 0x5160]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4062be
mov eax, 3
jmp 0x40764c
xor eax, eax
mov ecx, dword [ebp - 0x56c8]
mov word [ebp + ecx*2 - 0x56bc], ax
lea edx, [ebp - 0x56bc]
push edx
call fcn.004170da
add esp, 4
mov dword [ebp - 0x5818], 0
jmp 0x4062f8
mov eax, dword [ebp - 0x5818]
add eax, 1
mov dword [ebp - 0x5818], eax
lea ecx, [ebp - 0x56bc]
mov dword [ebp - 0x58e4], ecx
mov edx, dword [ebp - 0x58e4]
add edx, 2
mov dword [ebp - 0x58e8], edx
mov eax, dword [ebp - 0x58e4]
mov cx, word [eax]
mov word [ebp - 0x58ea], cx
add dword [ebp - 0x58e4], 2
cmp word [ebp - 0x58ea], 0
jne 0x406313
mov edx, dword [ebp - 0x58e4]
sub edx, dword [ebp - 0x58e8]
sar edx, 1
mov dword [ebp - 0x58f0], edx
mov eax, dword [ebp - 0x5818]
cmp eax, dword [ebp - 0x58f0]
jae 0x40639c
push 0x429fd0
lea ecx, [ebp - 0x56bc]
push ecx
call fcn.00405220
add esp, 8
mov dword [ebp - 0x581c], eax
cmp dword [ebp - 0x581c], 0
je 0x406397
push 0xc8
mov edx, dword [ebp - 0x581c]
add edx, 2
push edx
mov eax, dword [ebp - 0x581c]
push eax
call fcn.004169b0
add esp, 0xc
jmp 0x4062e9
xor ecx, ecx
mov word [ebp - 0x5650], cx
mov dword [ebp - 0x5164], 0
movzx edx, word [ebp - 0x56b8]
and edx, 1
add edx, 8
mov dword [ebp - 0x5814], edx
mov dword [ebp - 0x5820], 0
jmp 0x4063dd
mov eax, dword [ebp - 0x5820]
add eax, 1
mov dword [ebp - 0x5820], eax
mov ecx, dword [ebp - 0x5820]
cmp ecx, dword [ebp - 0x5814]
jge 0x406423
mov edx, dword [ebp - 0x5820]
movzx eax, word [ebp + edx*2 - 0x56b6]
mov ecx, dword [ebp - 0x5820]
mov dword [ecx*4 + 0x436008], eax
mov edx, dword [ebp - 0x5820]
movzx eax, word [ebp + edx*2 - 0x56a6]
mov ecx, dword [ebp - 0x5820]
mov dword [ecx*4 + 0x435f68], eax
jmp 0x4063ce
mov dword [ebp - 0x56c0], 0
mov dword [ebp - 0x5810], 1
mov edx, dword [ebp - 0x5814]
mov dword [ebp - 0x515c], edx
mov dword [ebp - 0x5824], 0
jmp 0x40645e
mov eax, dword [ebp - 0x5824]
add eax, 1
mov dword [ebp - 0x5824], eax
mov ecx, dword [ebp - 0x5824]
cmp ecx, dword [ebp - 0x5814]
jge 0x406645
mov edx, dword [ebp - 0x5810]
mov dword [ebp - 0x5828], edx
mov eax, dword [ebp - 0x5810]
shl eax, 1
mov dword [ebp - 0x5810], eax
movzx ecx, word [ebp - 0x5698]
mov dword [ebp - 0x5830], ecx
movzx edx, word [ebp - 0x5696]
mov dword [ebp - 0x582c], edx
mov dword [ebp - 0x5834], 0
jmp 0x4064bf
mov eax, dword [ebp - 0x5834]
add eax, 1
mov dword [ebp - 0x5834], eax
mov ecx, dword [ebp - 0x5834]
cmp ecx, dword [ebp - 0x5814]
jge 0x40660e
mov edx, dword [ebp - 0x5834]
mov dword [ebp - 0x5838], edx
jmp 0x4064f1
mov eax, dword [ebp - 0x5838]
add eax, dword [ebp - 0x5810]
mov dword [ebp - 0x5838], eax
mov ecx, dword [ebp - 0x5838]
cmp ecx, dword [ebp - 0x515c]
jge 0x406609
mov edx, dword [ebp - 0x5838]
add edx, dword [ebp - 0x5828]
mov dword [ebp - 0x583c], edx
mov eax, dword [ebp - 0x583c]
and eax, 0xf
mov dword [ebp - 0x583c], eax
mov ecx, dword [ebp - 0x583c]
mov edx, dword [ebp - 0x5830]
imul edx, dword [ecx*4 + 0x436008]
mov eax, dword [ebp - 0x583c]
mov ecx, dword [ebp - 0x582c]
imul ecx, dword [eax*4 + 0x435f68]
sub edx, ecx
mov dword [ebp - 0x5844], edx
mov edx, dword [ebp - 0x583c]
mov eax, dword [ebp - 0x5830]
imul eax, dword [edx*4 + 0x435f68]
mov ecx, dword [ebp - 0x583c]
mov edx, dword [ebp - 0x582c]
imul edx, dword [ecx*4 + 0x436008]
add eax, edx
mov dword [ebp - 0x5840], eax
mov eax, dword [ebp - 0x5838]
mov ecx, dword [eax*4 + 0x436008]
sub ecx, dword [ebp - 0x5844]
mov edx, dword [ebp - 0x583c]
mov dword [edx*4 + 0x436008], ecx
mov eax, dword [ebp - 0x5838]
mov ecx, dword [eax*4 + 0x435f68]
sub ecx, dword [ebp - 0x5840]
mov edx, dword [ebp - 0x583c]
mov dword [edx*4 + 0x435f68], ecx
mov eax, dword [ebp - 0x5838]
mov ecx, dword [eax*4 + 0x436008]
add ecx, dword [ebp - 0x5844]
mov edx, dword [ebp - 0x5838]
mov dword [edx*4 + 0x436008], ecx
mov eax, dword [ebp - 0x5838]
mov ecx, dword [eax*4 + 0x435f68]
add ecx, dword [ebp - 0x5840]
mov edx, dword [ebp - 0x5838]
mov dword [edx*4 + 0x435f68], ecx
jmp 0x4064df
jmp 0x4064b0
mov eax, dword [ebp - 0x5824]
mov ecx, dword [ebp - 0x5164]
add ecx, dword [eax*4 + 0x436008]
mov dword [ebp - 0x5164], ecx
mov edx, dword [ebp - 0x5824]
mov eax, dword [ebp - 0x5164]
sub eax, dword [edx*4 + 0x435f68]
mov dword [ebp - 0x5164], eax
jmp 0x40644f
mov ecx, dword [ebp - 0x5164]
mov dword [0x446368], ecx
mov dword [ebp - 0x5704], 0x5100
lea edx, [ebp - 0x5704]
push edx
lea eax, [ebp - 0x5134]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x570c], eax
cmp dword [ebp - 0x570c], 0
je 0x406693
mov dword [0x446360], 0
mov ecx, dword [0x446360]
mov dword [0x446364], ecx
lea edx, [ebp - 0x5134]
mov dword [ebp - 0x5140], edx
mov eax, dword [ebp - 0x5140]
push eax
call fcn.004052b0
add esp, 4
mov dword [0x446364], eax
mov ecx, dword [ebp - 0x5140]
cmp dword [ecx], 0
je 0x4066d4
mov edx, dword [ebp - 0x5140]
mov eax, dword [edx]
push eax
call fcn.004052b0
add esp, 4
mov dword [0x446360], eax
mov ecx, dword [0x446364]
cmp ecx, dword [0x446360]
jbe 0x406704
mov edx, dword [0x446360]
mov dword [ebp - 0x5848], edx
mov eax, dword [0x446364]
mov dword [0x446360], eax
mov ecx, dword [ebp - 0x5848]
mov dword [0x446364], ecx
mov edx, dword [0x446368]
add edx, dword [0x446364]
mov dword [0x446368], edx
mov dword [ebp - 0x520c], 0
mov dword [ebp - 0x5208], 0
mov dword [ebp - 0x5204], 0
mov dword [ebp - 0x5200], 0
push 0x90
push 0
lea eax, [ebp - 0x51fc]
push eax
call fcn.004159f0
add esp, 0xc
push 0x10000
push 0
push 0x4360b0
call fcn.004159f0
add esp, 0xc
jmp 0x769814
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.004159dd
mov esp, ebp
pop ebp
ret 8