Function at 0x4105f0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x60c8fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d4
push ebx
mov ebx, dword [esp + 0x4e8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov word [esp + 0x24], di
mov esi, dword [0x6ec738]
mov dword [esp + 0x4e8], edi
cmp esi, edi
jne 0x410640
mov esi, 0x6ec73c
mov eax, 0x6bc11c
push ebp
test eax, eax
je 0x410778
cmp esi, edi
je 0x410778
mov ecx, 0x6bd260
test ecx, ecx
je 0x410778
push edi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
mov word [esp + 0x3c], di
call fcn.00402d00
push esi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4f0], 1
call fcn.0040e020
push 0x6bd260
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4f0], 2
call fcn.0040e020
lea ecx, [esp + 0x24]
mov byte [esp + 0x4ec], 3
call fcn.00401070
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x48]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004023d0
push eax
call fcn.005de123
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005f6c5c
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x24], edi
je 0x410743
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x48]
call fcn.004023d0
push eax
lea ecx, [esp + 0x40]
call fcn.004023d0
push eax
lea ecx, [esp + 0x38]
call fcn.004023d0
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [esp + 0x38]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x4ec], 2
call fcn.00401070
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4ec], 1
call fcn.00401070
lea ecx, [esp + 0x30]
mov byte [esp + 0x4ec], 0
call fcn.00401070
xor edi, edi
mov edx, dword [0x6e7b6c]
mov dword [esp + 0x14], edx
push 0x6bcf20
lea eax, [esp + 0x18]
push 0x6bd238
push eax
mov byte [esp + 0x4f8], 4
call fcn.005f368b
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, 0x410
test eax, eax
jne 0x410934
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xd4]
push eax
push ecx
push 0
push 0
push 0x6bd22c
push edx
mov dword [ebx], 1
mov dword [esp + 0x34], ebp
call edi
test eax, eax
jne 0x410925
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41080a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.005e07bc
add esp, 8
test eax, eax
jne 0x410925
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x6bd224
push eax
mov dword [esp + 0x34], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410925
mov esi, dword [0x6ec59c]
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x410881
test cl, cl
je 0x41087d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x410881
add eax, 2
add esi, 2
test cl, cl
jne 0x410859
xor eax, eax
jmp 0x410886
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4108a4
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp + 0x24], 1
call ebx
jmp 0x41093a
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x4ec], 5
test eax, eax
jne 0x4108c1
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00410480
add esp, 8
test eax, eax
je 0x410914
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x410903
test cl, cl
je 0x4108ff
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x410903
add eax, 2
add esi, 2
test cl, cl
jne 0x4108db
xor eax, eax
jmp 0x410908
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410914
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4ec], 4
call fcn.005fa859
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
jmp 0x41093a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00445c70
test eax, eax
je 0x410ab2
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20119
push 0
push edx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410ab2
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xd4]
push eax
push ecx
push 0
push 0
push 0x6bd22c
push edx
mov dword [esp + 0x30], ebp
call edi
test eax, eax
jne 0x410aab
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4109a8
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.005e07bc
add esp, 8
test eax, eax
jne 0x410aab
lea ecx, [esp + 0x18]
lea edx, [esp + 0x54]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x6bd224
push eax
mov dword [esp + 0x30], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410aab
mov esi, dword [0x6ec59c]
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410a1b
test cl, cl
je 0x410a17
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410a1b
add eax, 2
add esi, 2
test cl, cl
jne 0x4109f7
xor eax, eax
jmp 0x410a20
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410a2e
mov dword [esp + 0x20], 1
jmp 0x410aab
mov eax, dword [0x6e7b6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x4ec], 6
test eax, eax
jne 0x410a4b
lea eax, [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00410480
add esp, 8
test eax, eax
je 0x410a9a
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x410a89
test cl, cl
je 0x410a85
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x410a89
add eax, 2
add esi, 2
test cl, cl
jne 0x410a65
xor eax, eax
jmp 0x410a8e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410a9a
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4ec], 4
call fcn.005fa859
mov eax, dword [esp + 0x10]
push eax
call ebx
push 0x6bd200
lea ecx, [esp + 0x18]
push 0x6bd238
push ecx
call fcn.005f368b
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebp
test eax, eax
jne 0x410b2e
mov ecx, dword [esp + 0xc]
push ecx
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push 0x6bd1dc
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x410b34
mov eax, dword [esp + 0xc]
push 0x6bd200
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call ebx
jmp 0x410b34
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x6bd1b8
lea edx, [esp + 0x14]
push 0x6bd238
push edx
call fcn.005f368b
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x410b9d
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x6bd1dc
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x410b9d
mov ecx, dword [esp + 0xc]
push 0x6bd1b8
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0x40e050
call fcn.005fae57
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e8], 0
call fcn.005fa859
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e8], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x4e0]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e0
ret 4