Function at 0x4039b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov ebp, esp
mov dword [esp], 1
add ecx, eax
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], ecx
mov word [esp + 0xc], 0
push ebp
push eax
call fcn.00406a70
add esp, 8
mov eax, dword [esp + 0x70]
mov dword [esp], 1
mov dword [esp + 4], esi
add eax, esi
mov dword [esp + 8], eax
mov word [esp + 0xc], 0
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00406a70
add esp, 8
mov esi, dword [esp + 0x3c]
mov ecx, ebx
mov edx, esi
call fcn.00403930
test eax, eax
je 0x403b9a
mov dword [esp + 0x10], 0x800
mov ebx, edx
movzx eax, byte [0x529189]
push 1
push 0x800
call fcn.00402c90
add esp, 8
test eax, eax
je 0x403d3e
mov edi, dword [esp + 0x30]
mov ebp, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x800
mov dword [esp + 0x14], 0
push edi
call fcn.00403fc0
add esp, 4
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
push ebp
push ecx
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x403c57
mov dword [esp + 0x20], esi
lea esi, [esp + 4]
push eax
call fcn.0040d250
add esp, 4
push eax
call fcn.0040cfd0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
push esi
nop word cs:[eax + eax]
nop
call fcn.0040ce30
add esp, 4
mov esi, eax
push 0xea
call fcn.0040d250
add esp, 4
cmp esi, eax
jne 0x403ba2
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
test edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
jne 0x403b7d
test eax, eax
je 0x403b20
lea eax, [esp + 0x18]
push eax
call fcn.0040ce40
add esp, 4
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], 0
push edi
call fcn.00403fc0
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push ebx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x403c53
push eax
call fcn.0040d250
add esp, 4
push eax
call fcn.0040cfd0
add esp, 4
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov dword [esp + 8], edx
mov dword [esp], 1
push eax
jmp 0x403ad0
push edx
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0043f580
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x403b13
jmp 0x403b20
mov dword [edi], 0
jmp 0x403c1b
mov edi, dword [esp + 0x5c]
cmp dword [esp], 0
mov dword [edi], 0
je 0x403bc6
cmp dword [esp + 8], 0
je 0x403bc6
lea eax, [esp + 8]
push eax
call fcn.0040ce40
add esp, 4
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x403bde
push 1
push eax
push ebp
call fcn.00402ca0
add esp, 0xc
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
je 0x403c1b
push eax
call fcn.0040d250
add esp, 4
push eax
call fcn.0040cfd0
add esp, 4
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
je 0x403c1b
lea eax, [esp + 8]
push eax
call fcn.0040ce40
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x403c34
add eax, eax
push 2
push eax
push dword [esp + 0x38]
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403d34
add eax, eax
push 2
push eax
push esi
call fcn.00402ca0
add esp, 0xc
jmp 0x403d34
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov word [esp], 0
mov dword [esp + 4], ebp
and eax, 0xfffffffe
add eax, ebp
mov dword [esp + 8], eax
mov eax, esp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403630
add esp, 8
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x403c9e
mov edx, dword [esp + 0x14]
nop dword [eax]
cmp byte [edx + ecx - 1], 0
jne 0x403c9c
dec ecx
jne 0x403c90
jmp 0x403c9e
mov eax, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
movsd xmm0, qword [esp + 0x14]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x28]
movsd qword [ecx], xmm0
test eax, eax
je 0x403cc7
push 1
push eax
push ebp
call fcn.00402ca0
add esp, 0xc
push ebx
call dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
je 0x403d04
push eax
call fcn.0040d250
add esp, 4
push eax
call fcn.0040cfd0
add esp, 4
test edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 1
je 0x403d04
lea eax, [esp + 8]
push eax
call fcn.0040ce40
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x403d1a
add eax, eax
push 2
push eax
push edi
call fcn.00402ca0
add esp, 0xc
mov eax, dword [esp + 0x40]
test eax, eax
je 0x403d30
add eax, eax
push 2
push eax
push esi
call fcn.00402ca0
add esp, 0xc
mov edi, dword [esp + 0x5c]
mov eax, edi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x800
push 1
call fcn.00442780
add esp, 8
ud2