Function at 0x4014e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov ecx, 0x10
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi + 0x24], eax
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
mov edi, 4
push eax
push 1
push 0
push str.SOFTWAREBuyi_Gerber_Lectra_PlotAutoMark
push 0x80000002
mov dword [esi + 4], 8
mov dword [esi + 0x10], 1
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], 1
mov dword [esi + 0x30], 0x115c
mov dword [esi + 0x34], 0x115d
mov dword [esi + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401736
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.MODE
push eax
call edi
test eax, eax
jne 0x401578
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
push 0x405354
push ecx
call edi
test eax, eax
jne 0x40159d
mov edx, dword [esp + 8]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0x405350
push edx
call edi
test eax, eax
jne 0x4015c2
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push 0x40534c
push eax
call edi
test eax, eax
jne 0x4015e7
mov ecx, dword [esp + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
push 0x405348
push ecx
call edi
test eax, eax
jne 0x40160c
mov edx, dword [esp + 8]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0x405340
push edx
call edi
test eax, eax
jne 0x401631
mov eax, dword [esp + 8]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.PORT
push eax
call edi
test eax, eax
jne 0x401656
mov ecx, dword [esp + 8]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
push 0x40532c
push ecx
call edi
test eax, eax
jne 0x40167b
mov edx, dword [esp + 8]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.maxThread
push edx
call edi
test eax, eax
jne 0x4016a0
mov eax, dword [esp + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.minThread
push eax
call edi
test eax, eax
jne 0x4016c5
mov ecx, dword [esp + 8]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
push 0
push 0
push str.nThreads
push ecx
call edi
test eax, eax
jne 0x4016ea
mov edx, dword [esp + 8]
mov dword [esi + 4], edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push str.onlyHttp
push edx
call edi
test eax, eax
jne 0x40170f
mov eax, dword [esp + 8]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0
push str.plan
push eax
call edi
test eax, eax
jne 0x401761
mov ecx, dword [esp + 8]
mov dword [esi + 0x24], ecx
jmp 0x401761
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREBuyi_Gerber_Lectra_PlotAutoMark
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40176c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0xc]
cmp eax, 1
jb 0x401779
mov eax, 1
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
add esp, 0xc
ret