Function at 0x406130
Capabilities:
Delete registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446c54
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x45b738]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push esi
push edi
mov eax, dword [0x45b738]
xor eax, esp
push eax
lea eax, [esp + 0x570]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
call fcn.00417cc9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406190
push 0x80004005
call fcn.00402f80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x4c]
push ecx
push 0x44f630
mov dword [esp + 0x580], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x406c76
push 0x3ff
push eax
lea edx, [esp + 0x16d]
push edx
mov dword [esp + 0x30], 1
mov byte [esp + 0x170], al
call fcn.0042b0d0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x168]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.PathSybase
push eax
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x406273
lea ecx, [esp + 0x164]
push ecx
lea ecx, [esp + 0x24]
call fcn.0040b800
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x57c], 1
call fcn.00403730
mov byte [esp + 0x578], 0
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 0x40626f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
mov byte [edi + 0x7c], 1
cmp dword [esi - 0xc], 0
jne 0x4062c6
push 0x10
push 0x44f6d0
push 0x44f6f0
mov ecx, edi
call fcn.00411e07
lea ecx, [esp + 0x30]
push ecx
push str.SoftwareUkrGazTech
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edx, dword [esp + 0x30]
push str.BDCONFIG
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor al, al
mov byte [esp + 0x13], al
push 0x456114
lea eax, [esp + 0x17]
push eax
call fcn.0042cc96
call fcn.00417cc9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062e0
push 0x80004005
call fcn.00402f80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x578], 4
call fcn.00417cc9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406312
push 0x80004005
call fcn.00402f80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
lea edx, [esp + 0x2c]
lea ecx, [edi + 0xb4]
push edx
mov byte [esp + 0x57c], 5
call fcn.00403730
push 0x8000
push esi
lea ecx, [esp + 0xf0]
call fcn.0041921a
lea ecx, [esp + 0xe8]
mov byte [esp + 0x578], 6
call fcn.00418f3f
push esi
lea eax, [esp + 0x58]
push eax
call fcn.00408940
lea edi, [esp + 0x54]
mov byte [esp + 0x578], 7
call fcn.004054e0
test al, al
je 0x40645e
lea ecx, [esp + 0xac]
mov byte [esp + 0x578], 6
call fcn.00408a60
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0xb0], vtable.std::ios_base.0
call fcn.00443386
add esp, 4
lea ecx, [esp + 0xe8]
mov byte [esp + 0x578], 5
call fcn.00418fb4
lea eax, [ebx - 0x10]
mov byte [esp + 0x578], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4063eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x578], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov dword [esp + 0x578], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40643a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.00428ac7
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x54]
call fcn.00408550
mov ebx, dword [esp + 0x30]
add ebx, 0xa4
mov eax, ebx
mov dword [esp + 0x40], ebx
call fcn.00408490
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov ecx, dword [esp + ecx + 0x5c]
add eax, 4
test cl, 1
jne 0x4069b3
mov edx, dword [eax]
push 0xa
lea eax, [esp + edx + 0x58]
push eax
call fcn.00409d30
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00409f30
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0x14]
lea edi, [esp + 0x54]
call fcn.00405470
push str._Main_
lea esi, [esp + 0x18]
call fcn.004082e0
add esp, 4
test al, al
jne 0x406a2b
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x58]
push eax
call fcn.00409d30
lea ecx, [esp + 0xfc]
mov edx, edi
push eax
push ecx
push edx
call fcn.00409f30
lea eax, [esp + 0xfc]
push eax
mov ecx, esi
call fcn.0040b760
mov ecx, esi
call fcn.00405470
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jl 0x406a40
push 0x44f0b0
push esi
call fcn.0042a252
add esp, 8
test eax, eax
je 0x406a40
sub eax, esi
sar eax, 1
js 0x406a40
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00403730
mov edx, dword [esp + 0x54]
mov eax, dword [edx + 4]
push 0xa
lea ecx, [esp + eax + 0x58]
push ecx
call fcn.00409d30
lea edx, [esp + 0xfc]
push eax
push edx
mov eax, edi
push eax
call fcn.00409f30
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0x14]
call fcn.00405470
push 0x44f4d0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 1
call fcn.0040b800
push 1
lea edx, [esp + 0x1c]
push 0x44f75c
push edx
mov byte [esp + 0x584], 8
call fcn.004031b0
add esp, 0xc
lea eax, [esp + 0x44]
push str.name
push eax
lea ecx, [esp + 0x20]
call fcn.004080e0
mov eax, dword [eax]
add esp, 8
test eax, eax
jne 0x4065f2
or esi, 0xffffffff
jmp 0x40661a
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jge 0x406601
or esi, 0xffffffff
jmp 0x40661a
push eax
push esi
call fcn.0042a252
add esp, 8
test eax, eax
jne 0x406614
or esi, 0xffffffff
jmp 0x40661a
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40663a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jl 0x406a6a
mov edx, dword [ebx + 4]
test edx, edx
jne 0x40664d
xor ecx, ecx
jmp 0x406655
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x40668f
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x40668f
mov edx, dword [esp + 0x40]
mov edi, dword [ebx + 8]
mov byte [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push edi
call fcn.0040b220
add esp, 0x14
add edi, 4
mov dword [ebx + 8], edi
jmp 0x4066f4
mov edi, dword [ebx + 8]
cmp edx, edi
mov dword [esp + 0x1c], edi
jbe 0x40669f
call fcn.004292a5
mov esi, dword [ebx + 4]
test esi, esi
je 0x4066b2
mov eax, dword [ebx + 8]
mov ecx, eax
sub ecx, esi
sar ecx, 2
jne 0x4066b6
xor edi, edi
jmp 0x4066c4
cmp esi, eax
jbe 0x4066bf
call fcn.004292a5
sub edi, esi
sar edi, 2
mov edx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0040a850
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x4066e2
call fcn.004292a5
lea edi, [esi + edi*4]
cmp edi, dword [ebx + 8]
ja 0x4066ef
cmp edi, dword [ebx + 4]
jae 0x4066f4
call fcn.004292a5
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x58]
push eax
call fcn.00409d30
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00409f30
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0x14]
lea edi, [esp + 0x54]
call fcn.00405470
lea ecx, [esp + 0x48]
push 0x44f770
push ecx
lea ecx, [esp + 0x20]
call fcn.004080e0
mov eax, dword [eax]
add esp, 8
test eax, eax
jne 0x406759
or esi, 0xffffffff
jmp 0x406781
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jge 0x406768
or esi, 0xffffffff
jmp 0x406781
push eax
push esi
call fcn.0042a252
add esp, 8
test eax, eax
jne 0x40677b
or esi, 0xffffffff
jmp 0x406781
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jl 0x406a55
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4067b4
xor ecx, ecx
jmp 0x4067bc
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x4067f6
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4067f6
mov edx, dword [esp + 0x34]
mov edi, dword [ebx + 8]
mov byte [esp + 0x3c], 0
mov ecx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push edi
call fcn.0040b220
add esp, 0x14
add edi, 4
mov dword [ebx + 8], edi
jmp 0x40685f
mov eax, dword [ebx + 8]
cmp edx, eax
mov dword [esp + 0x1c], eax
jbe 0x406806
call fcn.004292a5
mov esi, dword [ebx + 4]
test esi, esi
je 0x406819
mov eax, dword [ebx + 8]
mov ecx, eax
sub ecx, esi
sar ecx, 2
jne 0x40681d
xor edi, edi
jmp 0x40682f
cmp esi, eax
jbe 0x406826
call fcn.004292a5
mov edi, dword [esp + 0x1c]
sub edi, esi
sar edi, 2
mov edx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0040a850
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x40684d
call fcn.004292a5
lea eax, [esi + edi*4]
cmp eax, dword [ebx + 8]
ja 0x40685a
cmp eax, dword [ebx + 4]
jae 0x40685f
call fcn.004292a5
mov eax, dword [esp + 0x24]
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push 0x44f75c
push ecx
mov dword [esp + 0x30], eax
call fcn.004031b0
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 4]
add esp, 0xc
push 0xa
lea ecx, [esp + eax + 0x58]
push ecx
call fcn.00409d30
lea edx, [esp + 0xfc]
push eax
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.00409f30
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0x14]
lea edi, [esp + 0x54]
call fcn.00405470
lea edx, [esp + 0x28]
push str.name
push edx
lea ecx, [esp + 0x20]
call fcn.004080e0
mov eax, dword [eax]
add esp, 8
test eax, eax
jne 0x4068e2
or esi, 0xffffffff
jmp 0x40690a
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jge 0x4068f1
or esi, 0xffffffff
jmp 0x40690a
push eax
push esi
call fcn.0042a252
add esp, 8
test eax, eax
jne 0x406904
or esi, 0xffffffff
jmp 0x40690a
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40692a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jge 0x406642
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0x58]
push eax
call fcn.00409d30
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x54]
push eax
push ecx
push edx
call fcn.00409f30
lea eax, [esp + 0xfc]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b760
lea ecx, [esp + 0x14]
lea edi, [esp + 0x54]
call fcn.00405470
mov byte [esp + 0x578], 7
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 0x40699e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
add eax, 4
test byte [esp + ecx + 0x5c], 1
je 0x406493
lea ecx, [esp + 0x1c]
call fcn.004031d0
mov byte [esp + 0x578], 9
mov eax, dword [esp + 0x24]
sub eax, 1
push eax
lea eax, [esp + 0x20]
push 0x44f75c
push eax
call fcn.004031b0
add esp, 0xc
lea ecx, [esp + 0x28]
push str.servercnt
push ecx
lea ecx, [esp + 0x24]
call fcn.004080e0
mov ecx, dword [eax]
add esp, 8
lea esi, [esp + 0x20]
call fcn.00408080
test eax, eax
lea ecx, [esp + 0x28]
setl byte [esp + 0x13]
call fcn.004012f0
cmp byte [esp + 0x13], 0
je 0x406a7f
push 0x456124
lea edx, [esp + 0x17]
xor al, al
push edx
mov byte [esp + 0x1b], al
call fcn.0042cc96
push 0x456124
lea edx, [esp + 0x17]
xor al, al
push edx
mov byte [esp + 0x1b], al
call fcn.0042cc96
xor al, al
mov byte [esp + 0x13], al
push 0x456124
lea eax, [esp + 0x17]
push eax
call fcn.0042cc96
push 0x456124
lea ecx, [esp + 0x17]
xor al, al
push ecx
mov byte [esp + 0x1b], al
call fcn.0042cc96
push 0x456124
lea edx, [esp + 0x17]
xor al, al
push edx
mov byte [esp + 0x1b], al
call fcn.0042cc96
lea esi, [esp + 0x34]
call fcn.00401c80
lea ecx, [esp + 0x18]
call fcn.004031d0
mov byte [esp + 0x578], 0xb
xor edi, edi
jmp 0x406aa0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x406c16
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x406c16
test ecx, ecx
je 0x406acb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x406ad0
call fcn.004292a5
mov eax, dword [ebx + 4]
lea eax, [eax + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403730
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jge 0x406aef
or eax, 0xffffffff
jmp 0x406b0a
push 0x44f62c
push esi
call fcn.0042a252
add esp, 8
test eax, eax
jne 0x406b06
or eax, 0xffffffff
jmp 0x406b0a
sub eax, esi
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x20]
call fcn.004080b0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x57c], 0xc
call fcn.00403730
mov byte [esp + 0x578], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 4]
add edi, 1
test ecx, ecx
je 0x406b6c
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x406b71
call fcn.004292a5
mov ecx, dword [ebx + 4]
lea eax, [ecx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403730
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jge 0x406b90
or eax, 0xffffffff
jmp 0x406bab
push 0x44f62c
push esi
call fcn.0042a252
add esp, 8
test eax, eax
jne 0x406ba7
or eax, 0xffffffff
jmp 0x406bab
sub eax, esi
sar eax, 1
add eax, 1
push eax
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
call fcn.004080b0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x57c], 0xd
call fcn.00403730
mov byte [esp + 0x578], 0xb
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x30]
add esi, 0x84
lea ebx, [esp + 0x34]
add edi, 1
call fcn.00401fa0
mov ebx, dword [esp + 0x40]
jmp 0x406aa0
lea ecx, [esp + 0x18]
call fcn.004012f0
lea esi, [esp + 0x34]
call fcn.00401280
lea ecx, [esp + 0x1c]
call fcn.004012f0
lea eax, [esp + 0x54]
mov byte [esp + 0x578], 6
call fcn.00406110
lea ecx, [esp + 0xe8]
mov byte [esp + 0x578], 5
call fcn.00418fb4
lea ecx, [esp + 0x20]
call fcn.004012f0
lea ecx, [esp + 0x14]
call fcn.004012f0
lea ecx, [esp + 0x2c]
call fcn.004012f0
jmp 0x40643a
push 0
push 0
push 0x44f678
call fcn.004108a6
push 0
call fcn.00429f30
int3