Function at 0x415390
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448641
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x498], eax
mov edi, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x494], edi
mov dword [ebp - 0x478], edi
test eax, eax
je 0x4159f6
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x484], 0
push ecx
push 0
push 0
push 0
push 0x44bf30
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x47c], ecx
cmp ecx, 2
cmove eax, edx
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x478], eax
test eax, eax
je 0x4154a2
call edx
mov dword [ebp - 0x480], eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x478]
push esi
push eax
push 0x83
push 0x44be9c
lea eax, [ebp - 0x410]
push 0x44beac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x415484
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415484
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x47c]
mov edx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp ecx, 2
je 0x4159f6
mov ecx, dword [ebp - 0x484]
test ecx, ecx
jne 0x41551d
call edx
mov dword [ebp - 0x478], eax
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x84
push 0x44be9c
lea eax, [ebp - 0x410]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x41550b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41550b
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x484]
cmp dword [ebp - 0x47c], 0
jne 0x4159f6
test ecx, ecx
je 0x4159f6
xor eax, eax
xor edi, edi
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x4a8], edi
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x4a0], eax
shr ecx, 1
mov dword [ebp - 4], eax
je 0x4155a0
lea eax, [ebp - 0x471]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.004137d0
mov eax, dword [ebp - 0x4a0]
mov edi, dword [ebp - 0x4a8]
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x480], edi
nop dword [eax + eax]
lea eax, [ebp - 0x484]
push eax
mov eax, dword [ebp - 0x498]
push edi
push 0
push 0
push 0x44bf30
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x498], eax
test eax, eax
je 0x415689
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x478], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push dword [ebp - 0x498]
push esi
push eax
push 0x8b
push 0x44be9c
lea eax, [ebp - 0x410]
push 0x44beac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x415632
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x415632
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp - 0x494]
mov ecx, esi
call fcn.00413900
test edi, edi
je 0x415682
mov ecx, dword [ebp - 0x47c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x415678
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415a3c
push ecx
push edi
call fcn.0042c7bf
add esp, 8
mov eax, esi
jmp 0x415a1f
lea ecx, [ebp - 0x490]
call fcn.00413900
mov eax, dword [ebp - 0x488]
xor esi, esi
sub eax, edi
mov byte [ebp - 4], 1
sar eax, 1
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x488], eax
je 0x41597d
nop word [eax + eax]
cmp word [edi + esi*2], 0
lea edx, [edi + esi*2]
je 0x41597d
mov dword [ebp - 0x428], 0
mov ecx, edx
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov byte [ebp - 4], 1
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415700
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x428]
call fcn.0040ccc0
mov dword [ebp - 0x470], 0
xor eax, eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 7
mov word [ebp - 0x470], ax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp dword [ebp - 0x414], 8
lea edi, [ebp - 0x428]
mov eax, dword [ebp - 0x418]
cmovae edi, dword [ebp - 0x428]
setae byte [ebp - 0x471]
test eax, eax
je 0x4157b6
mov ecx, eax
xor esi, esi
mov edx, edi
test ecx, ecx
je 0x4157ac
cmp word [edi], 0x7c
je 0x4157a4
cmp ecx, 1
je 0x4157a6
add edx, 2
dec ecx
cmp word [edx], 0x7c
jne 0x415795
mov esi, edx
mov eax, dword [ebp - 0x418]
test esi, esi
je 0x4157b6
sub esi, edi
sar esi, 1
jmp 0x4157b9
or esi, 0xffffffff
mov dword [ebp - 0x440], 0
cmp esi, 0xffffffff
jne 0x415871
cmp byte [ebp - 0x471], 0
lea eax, [ebp - 0x428]
cmovne eax, dword [ebp - 0x428]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
push eax
mov dword [ebp - 0x42c], 7
mov byte [ebp - 4], 6
call fcn.0040ccc0
mov edx, dword [ebp - 0x45c]
cmp edx, 8
jb 0x41584a
mov ecx, dword [ebp - 0x470]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415840
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415a3c
push edx
push ecx
call fcn.0042c7bf
add esp, 8
movups xmm0, xmmword [ebp - 0x440]
movups xmmword [ebp - 0x470], xmm0
movq xmm0, qword [ebp - 0x430]
movq qword [ebp - 0x460], xmm0
mov byte [ebp - 4], 6
jmp 0x415910
cmp eax, esi
mov dword [ebp - 0x430], 0
mov ecx, esi
mov dword [ebp - 0x42c], 7
cmovb ecx, eax
mov byte [ebp - 4], 6
cmp byte [ebp - 0x471], 0
lea eax, [ebp - 0x428]
push ecx
cmovne eax, dword [ebp - 0x428]
lea ecx, [ebp - 0x440]
push eax
call fcn.0040ccc0
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x470]
call fcn.00408c90
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4158e1
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.0040db60
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x428]
call fcn.00415a50
push eax
lea ecx, [ebp - 0x458]
call fcn.00408c90
lea ecx, [ebp - 0x440]
call fcn.00407b10
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x490]
call fcn.00402040
mov eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x470]
mov esi, dword [ebp - 0x478]
inc eax
add esi, eax
mov dword [ebp - 0x478], esi
call fcn.00408520
mov eax, dword [ebp - 0x414]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x41596b
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.0040db60
mov edi, dword [ebp - 0x480]
cmp esi, dword [ebp - 0x488]
jb 0x4156c0
mov esi, dword [ebp - 0x494]
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042c78f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov ecx, dword [ebp - 0x490]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x48c]
mov dword [ebp - 0x48c], ecx
lea ecx, [ebp - 0x490]
mov dword [esi + 4], eax
call fcn.00407f20
test edi, edi
je 0x415682
mov eax, dword [ebp - 0x47c]
lea ecx, [ebp - 0x4a8]
sub eax, edi
sar eax, 1
push eax
push edi
call fcn.0040db60
mov eax, esi
jmp 0x415a1f
mov dword [edi], 0
push 0x40
mov dword [edi + 4], 0
call fcn.0042c78f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042cc35
mov esp, ebp
pop ebp
ret 4
call fcn.00430d2f
int3