Function at 0x402360
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a858
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00407ec0
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040ac33
lea eax, [ebp + 8]
mov edx, 0x421f3c
push eax
lea ecx, [ebp - 0x664]
call fcn.004047c0
push 0x421f38
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64c]
call fcn.00404900
add esp, 0x20
lea ecx, [ebp + 8]
push eax
call fcn.00404140
mov ecx, dword [ebp - 0x638]
cmp ecx, 7
jbe 0x402439
mov edx, dword [ebp - 0x64c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40242f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402631
push ecx
push edx
call fcn.004067bc
add esp, 8
mov ecx, dword [ebp - 0x650]
xor eax, eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
cmp ecx, 7
jbe 0x402496
mov edx, dword [ebp - 0x664]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40248c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402631
push ecx
push edx
call fcn.004067bc
add esp, 8
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00407ec0
cmp dword [ebp + 0x1c], 7
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040ac33
add esp, 0x18
lea eax, [ebp - 0x634]
push eax
push 0x20019
push 0
push 0x421f40
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4025dd
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00407ec0
add esp, 0xc
mov dword [ebp - 0x62c], 0x208
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x630]
push eax
push 0
push str.xmg_drawpad_startup
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4025d1
cmp dword [ebp - 0x630], 1
jne 0x4025d1
lea ecx, [ebp - 0x420]
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40257d
test dx, dx
je 0x402579
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40257d
add eax, 4
add ecx, 4
test dx, dx
jne 0x402557
xor eax, eax
jmp 0x402582
sbb eax, eax
or eax, 1
test eax, eax
je 0x4025c1
lea ecx, [ebp - 0x628]
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4025b8
test dx, dx
je 0x4025b4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4025b8
add eax, 4
add ecx, 4
test dx, dx
jne 0x402592
xor eax, eax
jmp 0x4025bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4025d1
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x4025df
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x402615
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40260b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402636
push ecx
push edx
call fcn.004067bc
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040652d
mov esp, ebp
pop ebp
ret
call fcn.0040afce
call fcn.0040afce
int3