Function at 0x1000c780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x1001f10c]
xor eax, esp
mov dword [esp + 0x510], eax
mov eax, dword [0x1001f834]
push esi
push edi
cmp byte [eax + 0x38], 0x62
jne 0x1000c8ab
xor esi, esi
cmp byte [eax + 0x53], 0
jne 0x1000c7b3
cmp byte [eax + 0x54], 0
je 0x1000c7b8
mov esi, 1
mov al, byte [eax + 0x50]
push ebx
push ebp
mov byte [esp + 0x1b], al
call fcn.1000ef70
mov ecx, dword [0x1001f834]
mov ebx, edx
mov ebp, eax
mov edi, dword [ecx + 0x10]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c7d8
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
call fcn.1000e040
push 4
call fcn.1000f040
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.1000e040
push ebx
mov dword [esp + 0x28], ebx
call fcn.1000f040
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
call fcn.1000e040
push ebp
mov dword [esp + 0x34], ebp
call fcn.1000f040
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 4
push eax
call fcn.1000e040
push 6
push 0xe
call fcn.1000def0
mov eax, esi
or eax, 2
cmp byte [esp + 0x4f], 0
cmove eax, esi
push eax
mov dword [esp + 0x48], eax
call fcn.1000f040
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 4
push eax
call fcn.1000e040
mov eax, dword [0x1001f834]
add esp, 0x40
movzx eax, word [eax + 0x3c]
push eax
mov dword [esp + 0x14], eax
call fcn.1000f050
movzx eax, ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 2
push eax
call fcn.1000e040
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.10018069
add esp, 0x514
ret
cmp byte [eax + 0x51], 0
je 0x1000c8bb
cmp byte [eax + 0x52], 0
jne 0x1000c9f4
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push str.jvm.hprof.txt
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push 0x104
push eax
mov dword [esp + 0x1c], edx
call fcn.1000eed0
lea eax, [esp + 0x24]
push eax
call fcn.1000f170
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x1000c934
lea eax, [esp + 0x14]
push eax
push str.Cant_open__s
lea eax, [esp + 0x120]
push 0x154
push eax
call fcn.1000ec80
push 0x2e9
push str.hprof_io.c
lea eax, [esp + 0x130]
mov byte [esp + 0x283], 0
push eax
push 0
push 1
call fcn.10005d50
add esp, 0x24
lea eax, [esp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime64]
push eax
mov eax, dword [0x1001f834]
push dword [eax + 0x10]
push str._s__created__s_n
call fcn.1000dfd0
add esp, 0x10
nop word [eax + eax]
push 0x400
lea eax, [esp + 0x11c]
push eax
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
mov esi, eax
add esp, 0xc
test esi, esi
js 0x1000c995
je 0x1000c9ab
lea eax, [esp + 0x118]
push esi
push eax
call fcn.1000e040
add esp, 8
test esi, esi
jg 0x1000c960
jmp 0x1000c9ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
push esi
push str.read
call fcn.1000dc50
add esp, 0xc
push edi
call fcn.1000edb0
push str._n_________n_n
call fcn.1000dfd0
mov ecx, dword [0x1001f834]
add esp, 8
mov edx, dword [ecx + 0x11c]
test edx, edx
je 0x1000c9f4
movzx eax, byte [ecx + 0x74]
push eax
push edx
push dword [ecx + 0x118]
push dword [ecx + 0x70]
call fcn.1000dd60
mov eax, dword [0x1001f834]
add esp, 0x10
mov dword [eax + 0x11c], 0
mov ecx, dword [esp + 0x518]
pop edi
pop esi
xor ecx, esp
call fcn.10018069
add esp, 0x514
ret