Function at 0x100169b0
Capabilities:
Allocate or change rwx memory
Create thread
Delete file
Execute shellcode via indirect call
Read .ini file
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x1c
mov eax, dword [0x101222d0]
xor eax, esp
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp ecx, 1
jne 0x10016ce1
push esi
call fcn.10008ed0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 4]
push eax
push 0x40
push 1
push 0xa6a6f7
mov dword [0x10161c68], 0x452fe0
mov dword [0x1017322c], 0x450840
mov dword [0x1021d7cc], 0x4508c0
mov dword [0x10208b04], 0x4508e0
mov dword [0x10206b38], 0x450940
mov dword [0x292b190], 0
call esi
test eax, eax
je 0x10016a4b
mov dl, byte [0x10127393]
mov ecx, 0xa6a6f7
lea eax, [esp + 8]
push eax
mov byte [ecx], dl
mov ecx, dword [esp + 8]
push ecx
push 1
push 0xa6a6f7
call esi
lea edx, [esp + 4]
push edx
push 0x40
push 1
push 0xa6aba7
call esi
test eax, eax
je 0x10016a7f
mov cl, byte [0x10127393]
mov eax, 0xa6aba7
lea edx, [esp + 8]
push edx
mov byte [eax], cl
mov eax, dword [esp + 8]
push eax
push 1
push 0xa6aba7
call esi
lea ecx, [esp + 4]
push ecx
push 0x40
push 1
push 0xa6a723
call esi
test eax, eax
je 0x10016ab2
mov al, byte [0x10127393]
mov edx, 0xa6a723
lea ecx, [esp + 8]
push ecx
mov byte [edx], al
mov edx, dword [esp + 8]
push edx
push 1
push 0xa6a723
call esi
lea eax, [esp + 4]
push eax
push 0x40
push 1
push 0xa8f137
call esi
test eax, eax
je 0x10016ae6
mov dl, byte [0x10127393]
mov ecx, 0xa8f137
lea eax, [esp + 8]
push eax
mov byte [ecx], dl
mov ecx, dword [esp + 8]
push ecx
push 1
push 0xa8f137
call esi
lea edx, [esp + 4]
push edx
push 0x40
push 1
push 0xa6a6df
call esi
test eax, eax
je 0x10016b1a
mov cl, byte [0x10127393]
mov eax, 0xa6a6df
lea edx, [esp + 8]
push edx
mov byte [eax], cl
mov eax, dword [esp + 8]
push eax
push 1
push 0xa6a6df
call esi
push ebx
push ebp
push edi
push str..config.ini
push 0xa
lea ecx, [esp + 0x24]
push ecx
push 0x10108af7
push 0x10109fd4
push str.CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x1c]
push edx
call fcn.1009346e
add esp, 4
mov dword [0x1020708c], eax
cmp eax, 0x3c
jne 0x10016b5f
mov dword [0x1021dcd8], eax
jmp 0x10016bdf
cmp eax, 0xc8
jne 0x10016bb2
call fcn.10016810
push str.NtDelayExecution
push str.ntdll.dll
mov dword [0x10129fd4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10016630
push eax
call fcn.100be6b0
mov dword [0x10159184], eax
call fcn.100167e0
mov dword [0x1021dcd8], 0xc8
mov dword [0x1021dcdc], 0x1388
jmp 0x10016bdf
mov edi, 0x3e8
cmp eax, edi
je 0x10016bbf
test eax, eax
jne 0x10016bdf
call fcn.10016810
mov dword [0x10129fd4], eax
call fcn.10016690
call fcn.100167e0
mov dword [0x1021dcd8], edi
mov dword [0x1021dcdc], edi
push 4
push 0x1000
push 0x65f000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x65f000
push 0x401000
push eax
mov dword [0x1019435c], eax
call fcn.10096590
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0xc
push 0
push 4
push 0x1021dc94
push 0xa17453
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
push 0x40
push 4
mov edi, 0x100163c0
push 0xa17453
sub edi, 0xa17457
call esi
test eax, eax
je 0x10016c5f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, 0xa17453
push 4
push ecx
mov dword [ecx], edi
call esi
mov edx, dword [0x1019435c]
lea ecx, [esp + 0x18]
push ecx
push 0x10
push 0x65f000
push edx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1000f580
push 0
push 0
call esi
call fcn.10014880
push 0
push 4
push 0x1021db08
push 0x8b6095
call ebx
push eax
call ebp
call fcn.10015720
call fcn.10015f10
cmp byte [0x1021da5a], 0
pop edi
pop ebp
pop ebx
jne 0x10016cca
push 0
push 0
push 0
push 0x100159b0
push 0
push 0
call esi
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
mov eax, 1
call fcn.10091e94
add esp, 0x1c
ret 0xc
test ecx, ecx
jne 0x10016ccb
mov ecx, dword [0x1012ed94]
test ecx, ecx
jle 0x10016d02
mov eax, dword [0x1021dcd4]
test eax, eax
jle 0x10016d02
push eax
push ecx
call fcn.100042d0
add esp, 8
call fcn.10009890
push str..Infinity_bake.dll
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10016ccb