Function at 0x1003c120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084e75
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.1003e820
or edi, 0xffffffff
cmp byte [eax + 0x1c], 0
je 0x1003c23f
call fcn.1003e820
mov dword [ebp - 0x20], eax
call fcn.10029330
test eax, eax
je 0x1003c40b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x19
push str.Checking_registry_Value:
call fcn.1002ae70
mov edx, dword [ebx]
test edx, edx
je 0x1003c1c3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c1a7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.1002ae70
mov esi, dword [ebp - 0x1c]
call fcn.10029330
test eax, eax
je 0x1003c40b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x10]
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c21e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c23f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebx]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 8]
mov ebx, eax
cmp ebx, 0xea
jne 0x1003c2f9
mov ebx, dword [ebp - 0x14]
test ebx, ebx
js 0x1003c415
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x1003c296
push ebx
mov ecx, esi
call fcn.1002b370
mov edx, dword [esi]
cmp dword [edx - 4], 1
jle 0x1003c2a8
push dword [edx - 0xc]
mov ecx, esi
call fcn.1002b290
mov edx, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push 0
push dword [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
jne 0x1003c2cd
xor ecx, ecx
jmp 0x1003c2e3
push dword [eax - 8]
push eax
call fcn.100617b7
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1003c415
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1003c415
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
test ebx, ebx
je 0x1003c314
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1003e820
cmp byte [eax + 0x1c], 0
je 0x1003c3f7
call fcn.1003e820
mov ebx, eax
call fcn.10029330
test eax, eax
je 0x1003c40b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x10]
push 0x23
push str.Registry_value_read_from_registry:
call fcn.1002ae70
mov edx, dword [esi]
test edx, edx
je 0x1003c37e
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003c365
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.1002ae70
call fcn.10029330
test eax, eax
je 0x1003c40b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1c]
push 0
push 0x100a3438
call fcn.1002ae70
push ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
sub esp, 8
call fcn.1003e900
mov byte [ebp - 4], 0xc
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c3d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003c3f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100269b0
push 0x80070057
call fcn.100269b0
int3