Function at 0x415595
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f934
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x40], ecx
push 0x40
call fcn.00401350
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0
je 0x4155db
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.004199d0
mov dword [ebp - 0x44], eax
jmp 0x4155e2
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x1c], 0
jne 0x415616
push 0xffffffffffffffff
push 0x10
push 0x8119
call fcn.0043905b
xor eax, eax
jmp 0x415831
push 0x89
mov ecx, dword [ebp - 0x40]
call fcn.00419990
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x108], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x108], 0
jne 0x41563f
xor eax, eax
jmp 0x415831
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x10c], 0x58
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x110], edx
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x118], 7
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x11c], 0x8064
lea ecx, [ebp - 0x10]
call fcn.00401370
mov dword [ebp - 4], 1
push 0x812f
lea ecx, [ebp - 0x10]
call fcn.004359d8
lea ecx, [ebp - 0x10]
call fcn.00401390
push eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x108]
push eax
push 0
mov ecx, dword [ebp - 0x40]
call fcn.00415cad
push 0x14
push 0
mov ecx, dword [ebp - 0x40]
add ecx, 0x238
push ecx
call fcn.00422210
add esp, 0xc
mov ecx, dword [ebp - 0x40]
add ecx, 0x200
call fcn.00401920
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x248], eax
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x2a4], 0
mov ecx, dword [ebp - 0x40]
call fcn.00401980
test eax, eax
jne 0x415703
mov ecx, dword [ebp - 0x40]
call fcn.0040a3b0
test eax, eax
je 0x41572f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41572f
push str.CancelIo
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x2a4], eax
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xc8], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0xcc], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xd0], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xd4], 0
push 0
push 0x18
mov ecx, dword [ebp - 0x40]
call fcn.00418e8a
mov ecx, dword [ebp - 0x40]
call fcn.0040a3b0
test eax, eax
jne 0x415818
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov byte [ebp - 0x17], cl
lea edx, [ebp - 0x2c]
push edx
push 3
push 0
push 0x45b9bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x2c], 0
jne 0x4157ce
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00435634
mov eax, dword [ebp - 0x38]
jmp 0x415831
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push str.DOSboxEnabled
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea ecx, [ebp - 0x20]
push ecx
push str.TRUE
call fcn.00422ac0
add esp, 0xc
test eax, eax
jne 0x415818
mov ecx, dword [ebp - 0x40]
call fcn.00418c57
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00435634
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret