Function at 0x1067f22
Capabilities:
Get system information on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jle 0x10681f7
mov edi, dword [sym.imp.msvcrt.dll__stricmp]
mov ebx, dword [sym.imp.msvcrt.dll_fprintf]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x13e]
push ecx
add eax, 0x168
push eax
push esi
push dword [ebp + 0xc]
push 0x10147dc
call fcn.010673d4
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x13e]
push ecx
add eax, 0x170
push eax
push esi
push dword [ebp + 0xc]
push 0x10147d0
call fcn.010673d4
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x13f]
push ecx
add eax, 0x178
push eax
push esi
push dword [ebp + 0xc]
push 0x10147c4
call fcn.010673d4
push 0x10147b8
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x1068224
push 0x10147ac
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x1068258
push 0x10147a0
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10682bd
push 0x1014794
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x106802e
add esi, 4
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 1
jle 0x10681e7
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.msvcrt.dll_sscanf]
add eax, 0x190
push eax
mov ebx, 0x1006d64
push ebx
push dword [esi]
call edi
mov eax, dword [ebp + 8]
add eax, 0x194
push eax
push ebx
push dword [esi + 4]
call edi
add esp, 0x18
push dword [ebp + 8]
call fcn.01067104
jmp 0x106821d
push 0x101478c
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10682ce
push 0x1014780
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106832f
push 0x1014774
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1068075
mov eax, dword [ebp + 8]
mov dword [eax + 0x180], 1
jmp 0x10681e7
push 0x101476c
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106835d
push 0x1014160
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106835d
push 0x1014760
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106811a
push 0x1007b54
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106811a
push 0x1014754
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106811a
push 0x1014748
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106811a
push 0x10147d0
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x106836e
push 0x10147dc
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10681e7
mov eax, dword [ebp + 0xc]
add esi, 4
dec eax
jne 0x1068415
push 0x101471c
call dword [sym.imp.msvcrt.dll_printf]
jmp 0x1068252
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x10146e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10684b9
push 0x1014760
push dword [esi]
call edi
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x10684c7
test eax, eax
je 0x106854c
push 0x1007b54
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10685a6
push 0x1014754
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x10685a6
push 0x1014748
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10681e7
mov ecx, dword [esi + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 8], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10681a2
sub eax, dword [ebp - 8]
push eax
push ecx
push 1
push 0
push 0x10146dc
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10681de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10146a4
push eax
call ebx
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
jg 0x1067f44
mov eax, dword [ebp + 8]
cmp byte [eax + 0x13f], 0
je 0x106821a
call fcn.010670e9
test eax, eax
je 0x106821a
mov eax, dword [ebp + 8]
push dword [eax + 0x178]
call fcn.01067433
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], 0xc
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jl 0x1068348
push 0x1014694
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call ebx
pop ecx
pop ecx
jmp 0x10684b2
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x10682b6
mov edi, dword [ebp + 8]
add edi, 0x58
push edi
push 0x100203c
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_sscanf]
push dword [edi]
push 0x101467c
call dword [sym.imp.msvcrt.dll_printf]
mov edi, dword [edi]
add esp, 0x14
test edi, edi
je 0x10684b2
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], 0xb
mov dword [ebp - 0x58], edi
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jl 0x1068348
push 0x1014670
jmp 0x1068246
push 0x101464c
jmp 0x1068246
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01067d92
jmp 0x106821d
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x10684b2
lea eax, [ebp + 0xc]
push eax
push 0x10023ec
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_sscanf]
push 0x34
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1068307
push 0x1013a20
jmp 0x1068246
push 0x34
mov dword [esi], 0x10
mov eax, dword [ebp + 0xc]
push esi
push 0x1f
mov dword [esi + 0x30], eax
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jl 0x1068348
push dword [esi + 0x30]
push 0x1014628
jmp 0x10684a4
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], 0x12
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jge 0x1068353
push eax
push 0x10139fc
jmp 0x10684a4
push 0x1014614
jmp 0x1068246
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01067a1b
jmp 0x106821d
mov eax, dword [ebp + 0xc]
add esi, 4
dec eax
jne 0x1068381
push 0x10145e4
jmp 0x106810f
push 0x17
pop edi
xor eax, eax
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jge 0x10683b8
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10145bc
push eax
call ebx
add esp, 0xc
jmp 0x10683d1
push dword [ebp - 0x54]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x58]
add eax, 0x40
push 0x101458c
push eax
call ebx
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push 0x10023ec
push dword [esi]
call dword [sym.imp.msvcrt.dll_sscanf]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
add esp, 0xc
mov dword [ebp - 0x58], eax
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], edi
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jl 0x1068348
push dword [ebp + 0xc]
push 0x1014560
jmp 0x10684a4
push 0x16
pop edi
xor eax, eax
push eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jge 0x106844c
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10145bc
push eax
call ebx
add esp, 0xc
jmp 0x1068465
push dword [ebp - 0x54]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x58]
add eax, 0x40
push 0x1014530
push eax
call ebx
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push 0x10023ec
push dword [esi]
call dword [sym.imp.msvcrt.dll_sscanf]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
add esp, 0xc
mov dword [ebp - 0x58], eax
push 0x30
lea eax, [ebp - 0x60]
push eax
push 0x1f
mov dword [ebp - 0x60], edi
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
test eax, eax
jl 0x1068348
push dword [ebp + 0xc]
push 0x1014504
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call ebx
add esp, 0xc
xor eax, eax
jmp 0x106821d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10144d4
jmp 0x10684a4
test eax, eax
jne 0x10684d2
push 0x1014488
jmp 0x1068537
push 0x101447c
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x10684e8
push 0x1014444
jmp 0x1068537
push 0x1007b54
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x1068506
push 0x1014754
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x106850d
push 0x101440c
jmp 0x1068537
push 0x1014748
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1068523
push 0x10143d4
jmp 0x1068537
push 0x10143c4
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x106853e
push 0x1014388
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10684b2
push 0x1014380
push dword [esi + 4]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1068561
and dword [ebp - 4], eax
jmp 0x1068578
push 0x1014374
push dword [esi + 4]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x106859f
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1014368
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x106853e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10686fc
push 0x1014328
jmp 0x1068537
push 0x1007254
push dword [esi + 4]
call edi
pop ecx
neg eax
pop ecx
sbb eax, eax
neg eax
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1014320
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10685e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10142f0
jmp 0x1068702
cmp dword [ebp - 4], 1
jne 0x106853e
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call fcn.01063e32
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x24
lea eax, [ebp - 0x30]
push eax
push 3
push 0
push 0x10142dc
push dword [ebp + 0x10]
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x1068638
call edi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x101429c
push eax
call ebx
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1014290
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40
call esi
test eax, eax
je 0x106866d
call edi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x101425c
push eax
call ebx
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x101424c
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x1e
call esi
test eax, eax
je 0x10686a2
call edi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1014214
push eax
call ebx
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1014204
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x78
call esi
test eax, eax
je 0x10686d7
call edi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10141cc
push eax
call ebx
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x1014368
push dword [ebp + 0x10]
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x106853e
call edi
push eax
push 0x1014194
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call ebx
add esp, 0xc
jmp 0x106853e