Function at 0x100168f0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10025ac9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.1000e180
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 8
call fcn.1001a636
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x140], ebx
je 0x1001694b
mov ecx, eax
call fcn.10004970
mov esi, eax
jmp 0x1001694d
xor esi, esi
mov ecx, esi
mov dword [esp + 0x140], 0xffffffff
call fcn.100049b0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.10004c10
mov ecx, esi
mov edi, eax
call fcn.10004a00
cmp esi, ebx
je 0x10016985
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp edi, ebx
jne 0x10016c66
mov eax, dword [0x10040540]
cmp dword [eax - 8], ebx
je 0x100169e8
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, ebx
jl 0x100169d9
mov edx, dword [0x10039084]
add eax, 0xfffffff4
cmp eax, edx
je 0x100169e8
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x100169cb
mov ecx, dword [0x10040540]
lea eax, [ecx - 0xc]
push eax
call fcn.1001a644
add esp, 4
mov edx, dword [0x10039080]
mov dword [0x10040540], edx
jmp 0x100169e8
push 0x1003d5c0
mov ecx, 0x10040540
call fcn.10001ac0
mov eax, dword [esp + 0x18]
push eax
push 0x100391e8
push 0x10040540
call fcn.100084e0
add esp, 0xc
lea ecx, [esp + 0x34]
push ebx
push 0x8000027
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10016a28
push ebx
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [0x10040530]
cmp dword [ecx - 8], ebx
je 0x10016a82
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebx
jl 0x10016a73
mov edx, dword [0x10039084]
add ecx, 0xfffffff4
cmp ecx, edx
je 0x10016a82
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x10016a67
mov edx, dword [0x10040530]
lea eax, [edx - 0xc]
push eax
call fcn.1001a644
add esp, 4
mov eax, dword [0x10039080]
mov dword [0x10040530], eax
jmp 0x10016a82
push 0x1003d5c0
mov ecx, 0x10040530
call fcn.10001ac0
mov ecx, 0x1003a52c
test ecx, ecx
je 0x10016a94
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
mov ebx, eax
push ebx
mov ecx, 0x10040530
call fcn.10001940
test eax, eax
je 0x10016ad0
mov edi, dword [0x10040530]
mov ecx, ebx
mov edx, ecx
mov esi, 0x1003a52c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10040530]
mov dword [eax - 8], ebx
mov ecx, dword [0x10040530]
mov byte [ebx + ecx], 0
push 0x20000
call fcn.1001a636
add esp, 4
lea edx, [esp + 0x1c]
mov edi, eax
push 0
push edx
push 0x20000
push edi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [0x1004053c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10016b4f
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x10016b40
mov edx, dword [0x10039084]
add eax, 0xfffffff4
cmp eax, edx
je 0x10016b4f
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x10016b32
mov eax, dword [0x1004053c]
add eax, 0xfffffff4
push eax
call fcn.1001a644
add esp, 4
mov ecx, dword [0x10039080]
mov dword [0x1004053c], ecx
jmp 0x10016b4f
push 0x1003d5c0
mov ecx, 0x1004053c
call fcn.10001ac0
xor esi, esi
mov dl, byte [edi + esi + 0x1c820]
mov eax, dword [0x10039080]
mov byte [esp + 0x14], dl
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
and ecx, 0xff
mov dword [esp + 0x140], 1
push ecx
push 0x1003a408
push edx
call fcn.100084e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x1004053c
push eax
mov eax, dword [eax - 8]
push eax
call fcn.10001b90
mov eax, dword [esp + 0x10]
mov edx, dword [0x10039084]
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x10016bda
add eax, 0xfffffff4
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jg 0x10016bda
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.1001a644
add esp, 4
inc esi
cmp esi, 4
jl 0x10016b51
push edi
call fcn.1001a644
add esp, 4
test ebp, ebp
je 0x10016bf8
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x1004053c]
mov ecx, dword [0x10040540]
push eax
push ecx
call fcn.1001bd6c
add esp, 8
test eax, eax
jmp 0x10016c43
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
mov dword [0x1004054c], 0x38
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
push ebx
call dword [sym.imp.kernel32.dll_ExitProcess]