Function at 0x414db0
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x434]
sub esp, 0x434
push 0xffffffffffffffff
push 0x4485e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x430], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax + 4], 0
je 0x41529a
mov esi, dword [ebp + 0x43c]
cmp dword [esi + 4], 0
jne 0x414e0e
call fcn.00413f10
jmp 0x41529a
mov dword [ebp + 0x18], 0
xor ecx, ecx
mov edi, 7
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x28], ecx
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x18], ax
mov esi, dword [esi]
mov edx, 0x7ffffffe
mov dword [ebp - 4], 1
mov esi, dword [esi]
cmp byte [esi + 0xd], al
jne 0x4150f7
lea ebx, [esi + 0x10]
push ebx
lea ecx, [ebp]
call fcn.00405fb0
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
lea ecx, [ebp + 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.0040ca30
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x414ea9
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414e9f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152c4
push edx
push ecx
call fcn.0042c7bf
add esp, 8
cmp dword [ebx + 0x28], 0
je 0x414fba
mov ecx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
jae 0x414edc
lea eax, [ecx + 1]
cmp ebx, 8
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
mov dword [eax + ecx*2], 0x7c
jmp 0x414fa2
mov edx, 0x7ffffffe
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4152bf
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x18], eax
or edi, 7
cmp edi, edx
jbe 0x414f01
mov edi, edx
jmp 0x414f19
mov ecx, ebx
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x414f11
mov edi, edx
jmp 0x414f19
lea eax, [ecx + ebx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040c580
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp - 0x14]
add ecx, ecx
mov dword [ebp + 0x2c], edi
mov dword [ebp - 0x10], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x14], edi
cmp ebx, 8
jb 0x414f89
mov edi, dword [ebp + 0x18]
push edi
push eax
call fcn.0042de60
mov eax, dword [ebp - 0x14]
lea ebx, [ebx*2 + 2]
add esp, 0xc
mov dword [eax], 0x7c
cmp ebx, 0x1000
jb 0x414f7d
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4152c4
mov edi, ecx
push ebx
push edi
call fcn.0042c7bf
add esp, 8
jmp 0x414f9c
lea ecx, [ebp + 0x18]
push ecx
push eax
call fcn.0042de60
add esp, 0xc
mov dword [edi], 0x7c
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], eax
cmp dword [esi + 0x3c], 8
lea eax, [esi + 0x28]
mov ecx, dword [eax + 0x10]
jb 0x414fb0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.0040ca30
mov ecx, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x2c]
mov dword [ebp - 0x18], ecx
cmp ecx, ebx
jae 0x414fe1
lea eax, [ecx + 1]
cmp ebx, 8
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + ecx*2], edx
jmp 0x4150a3
mov edx, 0x7ffffffe
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4152bf
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x14], eax
or edi, 7
cmp edi, edx
jbe 0x415006
mov edi, edx
jmp 0x41501e
mov ecx, ebx
mov eax, edx
shr ecx, 1
sub eax, ecx
cmp ebx, eax
jbe 0x415016
mov edi, edx
jmp 0x41501e
lea eax, [ecx + ebx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040c580
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x28], ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
mov dword [ebp + 0x2c], edi
mov dword [ebp - 0x10], eax
push ecx
lea edi, [eax + ecx]
mov dword [ebp - 0x14], edi
cmp ebx, 8
jb 0x41508c
mov edi, dword [ebp + 0x18]
push edi
push eax
call fcn.0042de60
mov eax, dword [ebp - 0x14]
lea ebx, [ebx*2 + 2]
xor ecx, ecx
add esp, 0xc
mov dword [eax], ecx
cmp ebx, 0x1000
jb 0x415080
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x4152c4
mov edi, ecx
push ebx
push edi
call fcn.0042c7bf
add esp, 8
jmp 0x41509d
lea ecx, [ebp + 0x18]
push ecx
push eax
call fcn.0042de60
add esp, 0xc
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4150c9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4150c5
cmp esi, dword [eax + 8]
jne 0x4150c5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4150b5
mov esi, eax
jmp 0x4150df
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4150df
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4150d3
cmp byte [esi + 0xd], 0
je 0x414e44
mov ecx, dword [ebp + 0x28]
mov edx, 0x7ffffffe
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0x10], ecx
cmp ecx, edi
jae 0x415118
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp + 0x28], eax
lea eax, [ebp + 0x18]
cmovae eax, dword [ebp + 0x18]
xor edx, edx
mov dword [eax + ecx*2], edx
mov ebx, dword [ebp + 0x18]
jmp 0x4151db
mov eax, edx
sub eax, ecx
cmp eax, 1
jb 0x4152bf
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x14], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x41513f
mov esi, 0x7ffffffe
jmp 0x415157
mov eax, edi
shr eax, 1
sub edx, eax
cmp edi, edx
jbe 0x415150
mov esi, 0x7ffffffe
jmp 0x415157
add eax, edi
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040c580
mov dword [ebp + 0x2c], esi
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x10]
lea esi, [eax + eax]
mov dword [ebp - 0x10], esi
cmp edi, 8
jb 0x4151c5
push dword [ebp - 0x10]
mov esi, dword [ebp + 0x18]
push esi
push ebx
call fcn.0042de60
mov eax, dword [ebp - 0x10]
lea edi, [edi*2 + 2]
xor ecx, ecx
add esp, 0xc
mov dword [eax + ebx], ecx
cmp edi, 0x1000
jb 0x4151b9
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4152c4
mov esi, ecx
push edi
push esi
call fcn.0042c7bf
add esp, 8
jmp 0x4151d8
push esi
lea eax, [ebp + 0x18]
push eax
push ebx
call fcn.0042de60
add esp, 0xc
xor eax, eax
mov dword [esi + ebx], eax
mov dword [ebp + 0x18], ebx
mov eax, dword [ebp + 0x28]
cmp dword [ebp + 0x2c], 8
lea ecx, [eax + eax]
push ecx
lea eax, [ebp + 0x18]
cmovae eax, ebx
push eax
mov eax, dword [ebp - 0x1c]
push 7
push 0
push 0x44bf30
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x415264
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0xba
push 0x44be9c
lea eax, [ebp + 0x30]
push 0x44beac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x41525d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41525d
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp + 0x2c]
cmp edx, 8
jb 0x41529a
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4152c4
push edx
push ecx
call fcn.0042c7bf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x430]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x434]
pop ebp
ret 4
call fcn.0040c3f0
call fcn.00430d2f
int3