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

Disassembly:
sub esp, 0x350
push esi
mov esi, dword [esp + 0x358]
lea eax, [esp + 4]
push eax
push esi
call fcn.100041a0
add esp, 8
test eax, eax
je 0x1000777d
xor eax, eax
cmp dword [esp + 4], eax
sete al
test eax, eax
jne 0x10007787
xor eax, eax
pop esi
add esp, 0x350
ret
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000777d
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x40
lea edx, [esp + 0x58]
push edx
push esi
call edi
mov eax, dword [esp + 0x88]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0xf8
lea edx, [esp + 0x98]
push edx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov esi, dword [esp + 0xdc]
mov ecx, dword [0x1005c48c]
xor edx, edx
mov eax, esi
div ecx
mov ebx, dword [esp + 0xc0]
test edx, edx
jne 0x10007814
mov dword [esp + 0xc], esi
jmp 0x1000781e
add eax, 1
imul eax, ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x38c]
mov ecx, dword [esp + 0x388]
mov edx, dword [esp + 0x384]
mov eax, dword [0x1005c4dc]
mov eax, dword [eax + 0x74c]
push esi
push ecx
mov ecx, dword [esp + 0x388]
push edx
mov edx, dword [esp + 0x388]
push ecx
mov ecx, dword [esp + 0x388]
or edx, 4
push edx
mov edx, dword [esp + 0x388]
push ecx
mov ecx, dword [esp + 0x388]
push edx
mov edx, dword [esp + 0x388]
push ecx
mov ecx, dword [esp + 0x388]
push edx
push ecx
call eax
test eax, eax
jne 0x1000788c
pop edi
pop ebx
pop esi
add esp, 0x350
ret
mov ecx, dword [esi]
push ebp
lea edx, [esp + 0x30]
push edx
push 0x18
lea eax, [esp + 0x40]
push eax
push 0
push ecx
call dword [0x1005c4c4]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esi]
push 0x1d8
lea eax, [esp + 0x190]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
call fcn.10002e75
push 2
call fcn.10002e89
mov ebp, dword [esp + 0x370]
add esp, 8
push ebp
mov dword [esp + 0x1c], eax
mov word [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x1000791e
cmp word [ebp + 2], 0x3a
jne 0x1000791e
push ebp
lea ecx, [esp + 0x18]
call fcn.100036c0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.100035c0
lea ecx, [esp + 0x14]
call fcn.100032b0
jmp 0x100079d2
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.100035c0
push 0x1002c0d8
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.100035c0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.1000da60
add esp, 4
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.10005a10
add esp, 0xc
push eax
lea edx, [esp + 0x30]
push edx
call fcn.10005a10
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.100035c0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x30], 0
call fcn.10002e75
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x30], 0
call fcn.10002e75
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x2c], 0
call fcn.10002e75
mov edx, dword [esp + 0x24]
push edx
call fcn.10002e75
add esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call fcn.100042e0
add esp, 0xc
test eax, eax
jne 0x10007a2a
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10002e75
add esp, 4
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x350
ret
mov eax, dword [esp + 0x190]
cmp eax, ebx
je 0x10007a83
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx]
cmp edx, ebx
jbe 0x10007a83
mov ecx, dword [esp + 0x10]
add ecx, ebx
cmp eax, ecx
jae 0x10007a83
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push ecx
call edi
lea ecx, [esp + 0x18]
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.100032b0
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x350
ret
cmp dword [0x1005c4bc], 0
je 0x10007ab2
push ebp
push 0x10020bbc
lea ecx, [esp + 0x18]
call fcn.1000f610
mov ecx, eax
call fcn.1000f930
mov ecx, eax
call fcn.1000f990
lea ecx, [esp + 0x10]
call fcn.1000f640
mov edx, dword [esp + 0x18]
push edx
call fcn.10002e75
add esp, 4
pop ebp
pop edi
pop ebx
mov eax, 1
pop esi
add esp, 0x350
ret