Function at 0x40cba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x42e2ac]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
push 0x24
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], ebx
call fcn.0041194d
add esp, 4
cmp eax, ebx
je 0x40d520
mov dword [esp + 0x30], eax
mov dword [eax], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], eax
mov ecx, dword [esp + 0x30]
mov al, 1
mov byte [ecx + 0x20], al
mov edx, dword [esp + 0x30]
mov byte [edx + 0x21], al
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00401680
push 0x400
call fcn.004121d0
add esp, 4
push 0x400
mov edi, eax
push ebx
push edi
mov dword [esp + 0x50], edi
call fcn.00412860
add esp, 0xc
push 0x429acc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
call fcn.0040d990
lea ecx, [esp + 0x1c]
call fcn.0040dac0
test al, al
je 0x40cf61
mov dword [esp + 0x24], ebx
lea ebx, [esp + 0x1c]
call fcn.0040e0c0
mov ebx, eax
call fcn.0040e140
lea eax, [esp + 0x1c]
push eax
call fcn.0040d560
push 0x429ad0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
mov byte [esp + 0x1f], 1
call fcn.0040d990
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40ccff
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40ccf1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40ccf1
call fcn.00401af0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40cce8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40ccff
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00401a40
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.0040dac0
test al, al
je 0x40cebf
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d6f0
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x14]
je 0x40cd94
mov ebx, dword [esi - 0xc]
mov byte [esp + 0x13], 0
test ebx, ebx
js 0x40cfd2
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ebx
or edx, eax
jge 0x40cd75
mov eax, ebx
lea ecx, [esp + 0x14]
call fcn.00401e50
mov esi, dword [esp + 0x14]
lea ecx, [ebx + 1]
push ecx
push esi
call fcn.004125e1
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x40cfd2
xor edx, edx
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], dx
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
call fcn.004121d0
mov ecx, eax
mov eax, dword [esi - 0xc]
add esp, 4
push eax
push esi
inc eax
push eax
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00412264
add esp, 0x10
push 0x429ad0
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x30]
call fcn.0040d990
mov eax, dword [eax]
lea ebx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ebx, edi
je 0x40ce7a
cmp dword [edi + 0xc], 0
jl 0x40ce6c
mov ecx, dword [ebx]
cmp ecx, dword [edi]
jne 0x40ce6c
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [ebx + 0xc], 0
lea ecx, [ebx + 0xc]
jl 0x40ce13
cmp eax, dword [ebx]
jne 0x40ce13
mov esi, ebx
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x40ce4a
mov ecx, dword [ebx + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x40cfdc
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 4]
lea eax, [eax + eax + 2]
push eax
add ebx, 0x10
push ebx
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.00411885
add esp, 0x10
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40ce63
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x40ce7a
mov ebx, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00401a40
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ce9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov dword [edx + eax*4], ecx
inc eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.0040dac0
test al, al
jne 0x40cd30
push 0x429acc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x4c]
call fcn.0040d990
mov ecx, dword [eax]
mov esi, dword [esp + 0x1c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40cf2a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40cf1c
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40cf1c
call fcn.00401af0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40cf13
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x40cf2a
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00401a40
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
call fcn.0040dac0
xor ebx, ebx
test al, al
jne 0x40cc71
mov edi, dword [esp + 0x44]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov ecx, dword [esp + 0x18]
push edi
push ecx
lea edx, [esp + 0x34]
lea esi, [eax + 0x10]
push edx
mov dword [esp + 0x30], esi
call section..text
test eax, eax
je 0x40d08b
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov eax, 0x429ad8
mov dword [esp + 0x18], esi
test eax, 0xffff0000
jne 0x40cfe1
mov ecx, eax
movzx edi, cx
push edi
call fcn.004028a0
add esp, 4
cmp eax, ebx
je 0x40cff9
push eax
mov eax, edi
lea edi, [esp + 0x1c]
call fcn.00401ce0
jmp 0x40cff5
push 0x80070057
call fcn.00402aa0
call fcn.00401de0
push 0x429ad8
lea edx, [esp + 0x1c]
push edx
mov ebx, 5
call fcn.00401a40
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x18]
lea ebx, [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.00401860
mov edi, dword [eax]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [esp + 0x30]
je 0x40d085
lea esi, [esp + 0x2c]
call fcn.004015d0
test eax, eax
je 0x40d085
lea ecx, [esp + 0x20]
push ecx
call fcn.004014f0
lea edi, [esp + 0x14]
call fcn.00401730
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d06e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d6f0
lea eax, [esp + 0x14]
lea edi, [esp + 0x24]
call fcn.00401730
mov esi, dword [esp + 0x24]
xor ebx, ebx
cmp dword [esi - 0xc], ebx
je 0x40d3a3
mov eax, 0x80000001
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1b0], eax
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov ecx, str.SoftwareSetupComplete_
mov dword [esp + 0x1b8], ebx
mov dword [esp + 0x1d0], 7
mov dword [esp + 0x1cc], ebx
mov word [esp + 0x1bc], dx
call fcn.00401680
mov ecx, dword [esi - 0xc]
push ecx
push esi
lea ebx, [esp + 0x20]
call fcn.00405750
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x1ac]
call fcn.0040c3c0
xor edi, edi
test eax, eax
jne 0x40d277
mov edx, dword [esp + 0x20]
push edx
push 0x429b18
lea eax, [esp + 0x19c]
push eax
mov edx, 0x429b14
mov dword [esp + 0x19c], 1
mov dword [esp + 0x1a0], edi
mov dword [esp + 0x1a4], edi
mov dword [esp + 0x1a8], edi
call fcn.0040f440
mov esi, dword [esp + 0x194]
mov ecx, dword [esp + 0x198]
mov edx, dword [esp + 0x190]
mov eax, dword [esp + 0x1b0]
sub ecx, esi
push ecx
push esi
push edx
push edi
push 0x429b18
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40d26a
cmp esi, edi
je 0x40d180
push esi
call fcn.0041159e
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1ac]
call fcn.0040c380
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d20c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d22c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x28]
lea esi, [esp + 0x34]
call fcn.0040e4e0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041159e
add esp, 4
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004115a9
mov esp, ebp
pop ebp
ret 0x10
cmp esi, edi
je 0x40d277
push esi
call fcn.0041159e
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d297
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1b0]
cmp eax, edi
je 0x40d2b2
cmp dword [esp + 0x1ac], eax
je 0x40d2b2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1cc], 8
jb 0x40d2cc
mov ecx, dword [esp + 0x1b8]
push ecx
call fcn.0041159e
add esp, 4
mov eax, dword [esp + 0x24]
xor edx, edx
add eax, 0xfffffff0
mov word [esp + 0x1b8], dx
mov dword [esp + 0x1cc], 7
mov dword [esp + 0x1c8], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d348
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x28]
lea esi, [esp + 0x34]
call fcn.0040e4e0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041159e
mov ecx, dword [esp + 0x1d8]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004115a9
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x17], bl
call fcn.0040de90
lea eax, [esp + 0xe8]
push eax
call fcn.0040dd90
lea ecx, [esp + 0x190]
push ecx
mov byte [esp + 0x190], bl
call fcn.0040c610
mov edi, 8
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x40d3e1
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
mov ecx, eax
call fcn.00401680
cmp dword [esp + 0x1a4], edi
jb 0x40d406
mov eax, dword [esp + 0x190]
push eax
call fcn.0041159e
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
call fcn.0040eca0
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x54]
call fcn.0040eca0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x50]
call fcn.0040c520
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0040ca00
add esp, 8
test al, al
je 0x40d46d
lea ecx, [esp + 0xe8]
call fcn.00403210
lea edx, [esp + 0x13]
push edx
lea ecx, [esp + 0xec]
call fcn.0040f5d0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
cmp byte [esp + 0x13], bl
jne 0x40d4cd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe8]
call fcn.00403f10
lea ecx, [esp + 0x50]
call fcn.0040cb20
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1cc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40d1cc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d4e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xe8]
call fcn.00403f10
lea ecx, [esp + 0x50]
call fcn.0040cb20
add esi, 0xfffffff0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d308
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x40d308
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x194]
mov dword [esp + 0x24], ebx
call fcn.00411a66
push 0x42b530
lea eax, [esp + 0x194]
push eax
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.004128da
int3