Function at 0x1003e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x58], edi
jb 0x1003e8f6
mov edx, dword [edx]
lea eax, [ebp - 0x38]
push eax
push 1
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003eb83
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x1003e91c
mov eax, dword [ebx]
lea ecx, [ebp - 0x44]
push ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003eb83
cmp dword [ebp - 0x48], 3
jne 0x1003eb83
mov eax, dword [ebp - 0x44]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ebx
test eax, eax
je 0x1003e98f
push eax
lea ecx, [ebp - 0x10]
call fcn.1005d480
mov ebx, dword [ebp - 0x3c]
push ebx
push esi
mov esi, dword [ebp - 0x10]
push esi
mov dword [ebp - 0x50], esi
call fcn.1011ce00
lea eax, [ebx + esi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x14], 0x10
jb 0x1003e99a
mov eax, dword [eax]
lea ecx, [ebp - 0x44]
push ecx
push esi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003eb24
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x34]
push esi
call fcn.10059990
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
cmp dword [ebp - 0x24], ebx
jbe 0x1003ea55
xor edi, edi
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
mov ecx, 0x101a6370
mov eax, ebx
cmovae esi, dword [ebp - 0x34]
cmp dword [0x101a6384], 0x10
cmovae ecx, dword [0x101a6370]
xor edx, edx
div dword [0x101a6380]
mov dl, byte [edx + ecx]
xor dl, byte [esi + ebx]
mov ecx, dword [ebp - 8]
mov byte [ebp - 0x40], dl
cmp edi, ecx
jae 0x1003ea34
lea eax, [edi + 1]
cmp ecx, 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov byte [eax + edi], dl
mov byte [eax + edi + 1], 0
jmp 0x1003ea47
push dword [ebp - 0x40]
mov byte [ebp - 0x3c], 0
push dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.1005ba70
inc ebx
cmp ebx, dword [ebp - 0x24]
jae 0x1003ea52
mov edi, dword [ebp - 0xc]
jmp 0x1003e9e2
mov edi, dword [ebp - 0x58]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x18
lea eax, [ebp - 0x1c]
mov dword [edi], 0
push eax
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1011b630
mov edx, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x1003eac7
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003eabd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ebb8
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
test edx, edx
je 0x1003eba5
mov ecx, dword [ebp - 0x54]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x1003eb07
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ebb8
push ecx
push edx
call fcn.1011a823
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 5
push str.error
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.10056190
test esi, esi
je 0x1003eba5
sub ebx, esi
cmp ebx, 0x1000
jb 0x1003eb66
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x1003ebb8
mov esi, ecx
push ebx
push esi
call fcn.1011a823
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 5
mov dword [edi], 0
mov ecx, edi
mov dword [edi + 0x10], 0
push str.error
mov dword [edi + 0x14], 0xf
call fcn.10056190
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3