Function at 0x542950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x623058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x568
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x6c]
xor esi, esi
push eax
push ecx
push esi
push esi
push 0x6c3578
push edx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 4], esi
mov dword [ebx + 0xcc], esi
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5429c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0xb8], esi
mov dword [ebx + 0xcc], 1
mov dword [ebx + 0xbc], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x24], si
mov eax, dword [ebx + 0x90]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x542b95
mov ecx, dword [0x6e7b6c]
mov dword [ebp - 0x5c], ecx
push eax
lea edx, [ebp - 0x5c]
push 0x6c15d4
push edx
mov byte [ebp - 4], 2
call fcn.005f368b
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp + 0x10]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x6ec0c8
push esi
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x574]
push edx
push eax
push esi
push esi
push 0x6d905c
push ecx
mov dword [ebp - 0x2c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x542a79
push 0x6d9034
mov ecx, ebx
call fcn.0053cb80
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x542ebc
lea edx, [ebp - 0x574]
lea ecx, [ebp - 0x28]
push edx
call fcn.004023e0
mov eax, dword [0x6e7b6c]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 3
cmp eax, esi
jne 0x542a9e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
push 0x6d9004
push ecx
call fcn.005f368b
mov edx, dword [ebp + 8]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0053cb80
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
lea edi, [ebx + 0xa8]
push eax
push edi
push esi
push esi
push 0x6c35a0
push ecx
mov dword [ebp - 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x542af5
push 0x6d8fdc
mov ecx, ebx
call fcn.0053cb80
mov dword [edi], esi
mov dword [edi + 4], esi
jmp 0x542b18
mov edx, dword [edi + 4]
mov eax, dword [edi]
push edx
push eax
lea ecx, [ebp + 8]
push 0x6d8fa8
push ecx
call fcn.005f368b
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.0053cb80
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
push ecx
push esi
push esi
push 0x6c3594
push edx
mov dword [ebp - 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x542b6e
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov edx, ecx
mov dword [ebx + 0xb8], eax
mov dword [ebx + 0xbc], ecx
push edx
push eax
lea ecx, [ebp + 8]
push 0x6d8f80
push ecx
call fcn.005f368b
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.0053cb80
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005fa859
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.005fa859
jmp 0x542c8b
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x542ebc
mov ecx, 0x6bc090
test ecx, ecx
je 0x542c79
push eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x84], esi
mov word [ebp - 0x88], si
call fcn.004023e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
push 0x6bc090
lea ecx, [ebp - 0x80]
call fcn.00402350
mov edi, dword [ebp - 0x78]
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.004023d0
push eax
call fcn.005de123
lea eax, [eax + edi + 2]
mov dword [ebp + 8], eax
lea edi, [eax + eax]
push edi
call fcn.005f6c5c
mov edx, eax
add esp, 8
cmp edx, esi
mov dword [ebp - 0x28], edx
je 0x542c5e
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x8c]
call fcn.004023d0
push eax
lea ecx, [ebp - 0x80]
call fcn.004023d0
mov ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.005de0b3
mov edx, dword [ebp - 0x28]
push edx
call fcn.005de123
add esp, 0x14
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0xa8], eax
mov dword [ebx + 0xac], ecx
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x542c95
lea eax, [ebp - 0x24]
push esi
push esi
lea edx, [ebp - 0x10c]
push esi
push edx
push eax
call fcn.005deee8
mov eax, dword [ebp - 0x28]
add esp, 0x14
cmp eax, esi
jne 0x542cb2
lea eax, [ebp - 0x24]
push eax
push esi
mov ecx, ebx
call fcn.00546970
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x4c], si
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x14], eax
push 0x6d8f50
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.0053cb80
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0xa0], esi
cmp eax, esi
mov dword [ebx + 0xa4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
jne 0x542d03
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x70]
lea edx, [ebp - 0x1c]
push ecx
push edx
push eax
call fcn.005428a0
add esp, 0xc
test eax, eax
jne 0x542d43
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x542d22
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x14]
push ecx
push eax
push 0x6d8f34
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.0053cb80
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0xa0]
mov edx, dword [ebp - 0x18]
add edi, ecx
mov dword [ebx + 0xa0], edi
mov ecx, dword [ebx + 0xa4]
adc ecx, edx
mov eax, ecx
mov dword [ebx + 0xa4], ecx
cmp eax, esi
jg 0x542d81
jl 0x542d75
cmp dword [ebx + 0xa0], esi
jae 0x542d81
mov dword [ebx + 0xa0], esi
mov dword [ebx + 0xa4], esi
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0xa4]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], ecx
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xffffffff
jne 0x542e19
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x6c]
mov dword [ebx + 0xf8], eax
mov dword [ebx + 0xfc], ecx
push 0x6d8f08
mov ecx, ebx
mov dword [ebx + 0xf0], edx
call fcn.0053cb80
mov eax, dword [ebx + 0xdc]
lea edi, [ebx + 0xdc]
test eax, eax
je 0x542de8
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebx + 0x90]
mov byte [ebp - 4], 0x11
test eax, eax
je 0x54383a
push eax
lea ecx, [ebp - 0x74]
push 0x6d8ee4
push ecx
call fcn.005f368b
add esp, 0xc
jmp 0x543853
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x542e23
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, ebx
call fcn.00546970
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x58]
push edx
push 0x6bc0d4
push eax
call fcn.005deb38
add esp, 0xc
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x58]
push ecx
mov ecx, dword [ebx + 0xdc]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x542ede
push eax
lea edx, [ebp - 0x14]
push 0x6d8eac
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0053cb80
mov ecx, dword [0x6eda04]
push ecx
mov ecx, dword [ebx + 0xd4]
call fcn.0054f740
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005fa859
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
push edx
mov edx, dword [ebp - 0x6c]
push eax
push ecx
lea eax, [ebp - 0x58]
push edx
push eax
lea ecx, [ebp - 0x14]
push 0x6d8e60
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, ebx
push edx
call fcn.0053cb80
mov eax, dword [ebp - 0x28]
test eax, eax
mov edi, eax
jne 0x542f1a
lea edi, [ebp - 0x24]
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x164]
push 0xa
push eax
push ecx
call fcn.005df7d2
mov edx, 0x6bc11c
add esp, 0xc
test edx, edx
mov esi, eax
je 0x543062
test edi, edi
je 0x543062
test esi, esi
je 0x543062
xor eax, eax
lea ecx, [ebp - 0xa0]
push eax
push edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], eax
mov word [ebp - 0x9c], ax
call fcn.00402d00
push edi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.0040e020
push esi
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xa
call fcn.0040e020
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.00401070
mov edi, dword [ebp - 0x98]
lea ecx, [ebp - 0xec]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [ebp - 0xd4]
mov esi, eax
call fcn.004023d0
push eax
call fcn.005de123
add edi, esi
lea esi, [eax + edi + 3]
lea edi, [esi + esi]
push edi
call fcn.005f6c5c
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x3c], edx
je 0x543035
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0xec]
call fcn.004023d0
push eax
lea ecx, [ebp - 0xd4]
call fcn.004023d0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x3c]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 0xa
call fcn.00401070
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.00401070
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.00401070
mov eax, dword [ebp - 0x3c]
xor esi, esi
cmp eax, esi
jne 0x54306e
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x1c]
push edx
push ecx
push eax
call fcn.005428a0
add esp, 0xc
test eax, eax
jne 0x5430ae
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x54308d
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x70]
push edx
push eax
lea eax, [ebp - 0x14]
push 0x6d8e44
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.0053cb80
mov eax, dword [ebp - 0x18]
cmp eax, esi
jl 0x54370d
jg 0x5430c4
cmp dword [ebp - 0x1c], esi
jbe 0x54370d
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebx + 0xa0]
add edi, edx
mov byte [ebp + 0xb], 0
mov dword [ebx + 0xa0], edi
mov edx, dword [ebx + 0xa4]
adc edx, eax
mov eax, dword [ebp + 0x10]
cmp eax, esi
mov dword [ebx + 0xa4], edx
je 0x543243
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
mov edi, ecx
jne 0x5430fe
lea edi, [ebp - 0x24]
lea ecx, [ebp - 0x164]
push 0xa
push ecx
push eax
call fcn.005df7d2
mov edx, 0x6bc11c
add esp, 0xc
test edx, edx
mov esi, eax
je 0x54331f
test edi, edi
je 0x54331f
test esi, esi
je 0x54331f
xor eax, eax
lea ecx, [ebp - 0xac]
push eax
push edx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], eax
mov word [ebp - 0xa8], ax
call fcn.00402d00
push edi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xc
call fcn.0040e020
push esi
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xd
call fcn.0040e020
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.00401070
mov edi, dword [ebp - 0xa4]
lea ecx, [ebp - 0x104]
call fcn.004023d0
push eax
call fcn.005de123
add esp, 4
lea ecx, [ebp - 0xe0]
mov esi, eax
call fcn.004023d0
push eax
call fcn.005de123
add edi, esi
lea esi, [eax + edi + 3]
lea edi, [esi + esi]
push edi
call fcn.005f6c5c
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x50], edx
je 0x543216
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x104]
call fcn.004023d0
push eax
lea ecx, [ebp - 0xe0]
call fcn.004023d0
push eax
lea ecx, [ebp - 0xac]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x50]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.005de123
add esp, 0x18
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xac]
jmp 0x54331a
mov eax, dword [ebp - 0x28]
cmp eax, esi
jne 0x54324d
lea eax, [ebp - 0x24]
mov edx, 0x6bc090
test edx, edx
je 0x54331f
cmp eax, esi
je 0x54331f
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
mov word [ebp - 0x7c], si
call fcn.004023e0
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.00401070
push 0x6bc090
lea ecx, [ebp - 0xf8]
call fcn.00402350
mov esi, dword [ebp - 0xf0]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x10
call fcn.004023d0
push eax
call fcn.005de123
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005f6c5c
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x50], edx
je 0x543304
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x80]
call fcn.004023d0
push eax
lea ecx, [ebp - 0xf8]
call fcn.004023d0
push eax
mov eax, dword [ebp - 0x50]
push esi
push eax
call fcn.005de0b3
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.005de123
add esp, 0x14
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xf
call fcn.00401070
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00401070
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x543329
lea eax, [ebp - 0x4c]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x54343b
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x543357
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x14]
push 0x6d8e28
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0053cb80
xor esi, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x50]
cmp eax, edi
jne 0x543386
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
push eax
lea eax, [ebp - 0x14]
push 0x6d8e0c
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.0053cb80
mov eax, dword [ebp - 0x60]
mov edx, eax
mov dword [ebp - 0x30], eax
sar edx, 0x1f
cmp eax, edi
jbe 0x54366a
mov ecx, dword [ebp - 0x3c]
cmp ecx, edi
jne 0x5433c8
lea ecx, [ebp - 0x38]
push eax
lea eax, [ebp - 0x10c]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00542240
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x757c
je 0x54370d
test edi, edi
je 0x5434c4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005fa859
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, edi
je 0x543376
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
jne 0x543491
mov eax, edi
cmp eax, edi
jne 0x543491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [ebp - 0x70], eax
je 0x543491
push eax
lea edx, [ebp - 0x14]
push 0x6d89a4
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0053cb80
jmp 0x543376
mov ecx, dword [ebp - 0x30]
push 1
push edi
push edi
push ecx
call fcn.005e09d0
mov ecx, dword [ebp - 0x1c]
push 2
add ecx, eax
mov eax, dword [ebp - 0x18]
adc eax, edx
lea edx, [ebp - 0x5c]
push edx
push edi
push esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x54337c
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x94]
push ecx
push 0x6d8e04
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [ebp - 0xb8]
lea ecx, [ebp - 0xc8]
lea edx, [ebp - 0x94]
push eax
mov eax, dword [ebx + 0xdc]
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0xb8], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54351c
push 0x6d8de4
mov ecx, ebx
call fcn.0053cb80
mov edx, dword [ebx + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x58]
push ecx
push edx
call esi
mov ecx, dword [ebx + 0xdc]
lea eax, [ebp - 0x94]
push eax
push ecx
call esi
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x14]
push edx
push 0x6d88b8
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0053cb80
mov esi, dword [ebp + 0x10]
lea edx, [ebp - 0x58]
push esi
push 0x6bc140
push edx
call fcn.005deb38
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x64], eax
push 0x10
push edx
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebx + 0xdc]
push 0
lea eax, [ebp - 0x58]
push 0
push eax
push ecx
mov dword [ebp - 0x6c], esi
call edi
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
push edx
push eax
push ecx
push esi
lea edx, [ebp - 0x14]
push 0x6d8dac
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, ebx
push eax
call fcn.0053cb80
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5435d3
lea eax, [ebp - 0x38]
push eax
call fcn.005dfbfe
add esp, 4
cmp eax, 0xffffffff
jne 0x543608
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5435eb
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push 0x6d840c
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0053cb80
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
xor eax, eax
sub ecx, edx
mov edx, dword [ebp - 0x18]
push esi
sbb edx, eax
mov eax, dword [ebp - 0xc8]
add eax, ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x94]
adc ecx, edx
push 0x6c3570
push eax
mov dword [ebp - 0xc4], ecx
call fcn.005deb38
mov eax, dword [ebx + 0xdc]
add esp, 0xc
lea ecx, [ebp - 0xc8]
lea edx, [ebp - 0x94]
push 0x10
push ecx
push 0
push 0
push edx
push eax
call edi
jmp 0x542da2
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x114]
push ecx
push 0x6d8e04
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x124]
lea edx, [ebp - 0x114]
push eax
mov eax, dword [ebx + 0xdc]
push ecx
push edi
push edi
push edx
push eax
mov dword [ebp - 0xb4], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x5436c6
push 0x6d8d98
mov ecx, ebx
call fcn.0053cb80
mov byte [ebp + 0xb], 1
jmp 0x5436f7
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x6c]
push edx
mov dword [ebp - 0x44], ecx
push ecx
push eax
lea ecx, [ebp - 0x14]
push 0x6d8d7c
push ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x40], edx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.0053cb80
cmp esi, edi
je 0x543702
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
test al, al
je 0x542da2
mov ecx, dword [ebx + 0xdc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp - 0x58]
push eax
push ecx
call esi
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x88]
push edx
push 0x6d8e04
push eax
call fcn.005deb38
mov edx, dword [ebx + 0xdc]
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
push edx
call esi
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x14]
push eax
push 0x6d88b8
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0053cb80
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x58]
push esi
push 0x6bc0d4
push eax
call fcn.005deb38
mov eax, dword [ebx + 0xdc]
mov edi, dword [ebp - 0x44]
add esp, 0xc
lea ecx, [ebp - 0x6c]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x40]
push 0x10
push ecx
push 0
push 0
push edx
push eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp + 0x10]
push ecx
push esi
push edi
push edx
lea eax, [ebp - 0x14]
push 0x6d8dac
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0x18
push ecx
mov ecx, ebx
call fcn.0053cb80
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x5437d7
lea eax, [ebp - 0x38]
push eax
call fcn.005dfbfe
add esp, 4
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x3c]
jne 0x543811
test eax, eax
jne 0x5437ef
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x14]
push 0x6d840c
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0053cb80
jmp 0x542da2
test eax, eax
jne 0x543818
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push 0x6d8d64
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0053cb80
jmp 0x542da2
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
push edx
push eax
lea ecx, [ebp - 0x74]
push 0x6d8d28
push ecx
call fcn.005f368b
add esp, 0x10
mov eax, dword [edi]
test eax, eax
je 0x543860
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x74]
push 0
push edi
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push edx
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0x11
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
push 0
mov eax, dword [edi]
lea esi, [ebx + 0xc8]
push 0
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x5438c5
push 0x6d8d00
mov ecx, ebx
call fcn.0053cb80
mov dword [esi], 0
jmp 0x543903
mov eax, dword [esi]
shr eax, 1
mov dword [esi], eax
mov ecx, dword [0x6e7b6c]
mov esi, eax
mov dword [ebp - 0x30], ecx
push esi
lea edx, [ebp - 0x30]
push 0x6d8cd4
push edx
mov byte [ebp - 4], 0x14
call fcn.005f368b
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0053cb80
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.005fa859
mov ecx, ebx
mov dword [ebx + 0xd0], 1
call fcn.00543990
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 8
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.005fa859
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc