Function at 0x4160d0
Capabilities:
Check for debugger via api
Get disk size
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov dword [ebp - 0x58], 0x947f
mov dword [ebp - 0x1c], 0x15f0c
mov dword [ebp - 0x90], 0x4f63
mov dword [ebp - 0x14], 0xae4e
mov dword [ebp - 0xcc], 0x638e
mov dword [ebp - 0x48], 0x77a8
mov dword [ebp - 0x28], 0xddfe
mov dword [ebp - 4], 0x164bf
mov dword [ebp - 0xa0], 0x678b
mov dword [ebp - 0xd0], 0x179e2
mov dword [ebp - 0x54], 0x121d9
mov dword [ebp - 0x8c], 0x12bbc
mov dword [ebp - 0x10], 0x11697
mov dword [ebp - 0x24], 0x126f8
mov dword [ebp - 8], 0xa28c
mov dword [ebp - 0x38], 0xf70f
mov dword [ebp - 0x3c], 0x5cdd
mov dword [ebp - 0x20], 0xc93d
mov dword [ebp - 0xc], 0xa590
mov dword [ebp - 0x30], 0x15480
mov dword [ebp - 0x44], 0x4a81
mov dword [ebp - 0x2c], 0xbb12
mov dword [ebp - 0x18], 0x5f76
mov dword [ebp - 0x40], 0x52c4
mov dword [ebp - 0x34], 0xe3eb
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jge 0x4161a8
mov dword [ebp - 0x5c], 1
jmp 0x4161af
mov dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x3c]
and ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x54]
jge 0x4161c3
mov dword [ebp - 0x60], 1
jmp 0x4161ca
mov dword [ebp - 0x60], 0
mov edx, dword [ebp - 4]
and edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0xc]
jge 0x4161de
mov dword [ebp - 0x64], 1
jmp 0x4161e5
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x5c]
and eax, dword [ebp - 0x60]
and eax, dword [ebp - 0x64]
je 0x4161f9
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x4c], 0
jmp 0x41620b
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x34]
sub eax, 0xe3ea
cmp dword [ebp - 0x4c], eax
jge 0x4163c4
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x18]
jge 0x4163bf
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x1c]
jne 0x4163bf
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 0x20]
jne 0x4163bf
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jne 0x4163bf
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x3c]
jge 0x4163ac
push 0x1736b
push 0xafaf
push 0x13f50
push 0x12bd5
push 0x55c4
push 0x17542
push 0x12326
push 0x11490
push 0x2e80
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add esp, 0x24
mov ecx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0xb0], 0
je 0x4163ac
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x28]
jne 0x4163ac
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x4163ac
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x28]
jne 0x4163ac
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2c]
jne 0x4163ac
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x20]
jne 0x4163ac
mov edx, dword [ebp - 0x1c]
and edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x20]
jge 0x41630c
mov dword [ebp - 0x68], 1
jmp 0x416313
mov dword [ebp - 0x68], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
or eax, dword [ebp - 0x68]
je 0x4163ac
mov ecx, dword [ebp - 0x54]
imul ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4163ac
mov edx, dword [ebp - 0x10]
imul edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 4]
jge 0x416342
mov dword [ebp - 0x6c], 1
jmp 0x416349
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x1c]
or eax, dword [ebp - 0x6c]
je 0x4163ac
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x48]
jne 0x4163ac
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 4]
jne 0x4163ac
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 4]
jne 0x4163ac
mov ecx, dword [ebp + 0x28]
add ecx, 1
mov dword [ebp + 0x28], ecx
push 0x5206
push 0x127e7
push 0x2601
push 0x11cfc
push 0x7147
push 0xe3d6
push 0x49e8
push 0x131c
push 0x12b7d
call dword [sym.imp.KERNEL32.dll_FindNextFileNameW]
add esp, 0x24
push 0xd7a0
push 0x429f
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
add esp, 8
jmp 0x416202
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x10]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xb4]
cmp ecx, dword [ebp - 0xb8]
jge 0x41640c
mov dword [ebp - 0x70], 1
jmp 0x416413
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x20]
and edx, dword [ebp - 0x70]
je 0x416550
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0xc]
jne 0x416550
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x18]
jne 0x416550
mov edx, dword [ebp - 0x8c]
cmp edx, dword [ebp - 0x58]
jne 0x416550
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jne 0x416550
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x1c]
jne 0x416550
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x24]
jge 0x416472
mov dword [ebp - 0x7c], 1
jmp 0x416479
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp + 0x24]
sub edx, 1
mov dword [ebp + 0x24], edx
mov eax, dword [ebp - 0xbc]
cmp eax, dword [ebp - 0xc0]
jge 0x4164ab
mov dword [ebp - 0x74], 1
jmp 0x4164b2
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x34]
jge 0x4164c6
mov dword [ebp - 0x78], 1
jmp 0x4164cd
mov dword [ebp - 0x78], 0
mov edx, dword [ebp - 0x74]
and edx, dword [ebp - 0x78]
or edx, dword [ebp - 0x7c]
je 0x416550
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp + 8]
jne 0x416550
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 8]
jne 0x416550
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x20]
jne 0x416550
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x58]
jne 0x416550
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0x90]
jne 0x416550
push 0x4206
push 0x8bea
push 0x9682
push 0x5d21
push 0xdea9
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
add esp, 0x14
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push 0x6766
push 0xfea0
push 0x74d
push 0x16792
push 0xc2b
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
add esp, 0x14
mov dword [ebp - 0x50], 0
jmp 0x416562
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x11695
cmp dword [ebp - 0x50], ecx
jge 0x41684b
mov edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x54]
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc4]
cmp edx, dword [ebp - 0xc8]
jge 0x416846
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp + 0x18]
jge 0x4165b6
mov dword [ebp - 0x80], 1
jmp 0x4165bd
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
and edx, dword [ebp - 0x20]
and ecx, edx
or ecx, dword [ebp - 0x80]
je 0x416846
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jne 0x416846
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jne 0x416846
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x38]
jne 0x416846
mov eax, dword [ebp - 0xcc]
cmp eax, dword [ebp - 0x1c]
jne 0x416846
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x14]
jne 0x416846
mov edx, dword [ebp - 0x48]
cmp edx, dword [ebp - 0x14]
jge 0x416627
mov dword [ebp - 0x84], 1
jmp 0x416631
mov dword [ebp - 0x84], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x58]
jge 0x416645
mov dword [ebp - 0x88], 1
jmp 0x41664f
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x84]
and ecx, dword [ebp - 0x88]
je 0x41681a
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x40]
jne 0x41681a
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x40]
jne 0x41681a
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x8c]
jne 0x41681a
mov edx, dword [ebp + 0x28]
cmp edx, dword [ebp + 0x24]
jne 0x41681a
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x1c]
jne 0x41681a
push 0x111d5
push 0xbf8e
push 0x671c
push 0x52bc
push 0xec49
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x1c]
jge 0x4166df
mov dword [ebp - 0x94], 1
jmp 0x4166e9
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x44]
jge 0x416703
mov dword [ebp - 0x98], 1
jmp 0x41670d
mov dword [ebp - 0x98], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x28]
jge 0x416721
mov dword [ebp - 0x9c], 1
jmp 0x41672b
mov dword [ebp - 0x9c], 0
mov edx, dword [ebp - 0x18]
and edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x98]
and eax, dword [ebp - 0x9c]
or edx, eax
je 0x41681a
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x2c]
jne 0x41681a
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x2c]
jne 0x41681a
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x1c]
jne 0x41681a
mov ecx, dword [ebp + 0x1c]
cmp ecx, dword [ebp + 0x18]
jne 0x41681a
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x1c]
jge 0x41678f
mov dword [ebp - 0xa4], 1
jmp 0x416799
mov dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x20]
jge 0x4167ad
mov dword [ebp - 0xa8], 1
jmp 0x4167b7
mov dword [ebp - 0xa8], 0
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xa0]
cmp ecx, dword [ebp + 0x10]
jge 0x4167d1
mov dword [ebp - 0xac], 1
jmp 0x4167db
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0xa4]
and edx, dword [ebp - 0xa8]
and edx, dword [ebp - 0xac]
je 0x41681a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
push 0x42c4
push 0x14100
push 0x1759b
push 0xf137
push 0x22f9
call dword [sym.imp.KERNEL32.dll_QueryProcessAffinityUpdateMode]
add esp, 0x14
push 0x9924
push 0x414e
push 0xa11
push 0x3fd6
push 0xf285
push 0x9910
push 0xa152
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x1c
jmp 0x416559
mov esp, ebp
pop ebp
ret