Function at 0x1000b930
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x1001f10c]
xor eax, esp
mov dword [esp + 0x510], eax
mov eax, dword [0x1001f83c]
push esi
push edi
cmp byte [eax + 0x38], 0x62
jne 0x1000ba63
xor esi, esi
cmp byte [eax + 0x53], 0
jne 0x1000b963
cmp byte [eax + 0x54], 0
je 0x1000b968
mov esi, 1
mov al, byte [eax + 0x50]
push ebx
push ebp
mov byte [esp + 0x1b], al
call fcn.1000e1d0
mov ecx, dword [0x1001f83c]
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 0x1000b988
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
call fcn.1000d290
push 4
mov dword [esp + 0x1c], 4
call fcn.1000e2a0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.1000d290
push ebx
mov dword [esp + 0x28], ebx
call fcn.1000e2a0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
call fcn.1000d290
push ebp
mov dword [esp + 0x34], ebp
call fcn.1000e2a0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 4
push eax
call fcn.1000d290
push 6
push 0xe
call fcn.1000d130
mov eax, esi
or eax, 2
cmp byte [esp + 0x4f], 0
cmove eax, esi
push eax
mov dword [esp + 0x48], eax
call fcn.1000e2a0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push 4
push eax
call fcn.1000d290
mov eax, dword [0x1001f83c]
add esp, 0x40
movzx eax, word [eax + 0x3c]
push eax
mov dword [esp + 0x14], eax
call fcn.1000e2b0
movzx eax, ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 2
push eax
call fcn.1000d290
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x510]
xor ecx, esp
call fcn.10017139
add esp, 0x514
ret
cmp byte [eax + 0x51], 0
je 0x1000ba73
cmp byte [eax + 0x52], 0
jne 0x1000bba4
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.1000e130
lea eax, [esp + 0x24]
push eax
call fcn.1000e3d0
mov edi, eax
add esp, 0x14
test edi, edi
jns 0x1000baec
lea eax, [esp + 0x14]
push eax
push str.Cant_open__s
lea eax, [esp + 0x120]
push 0x154
push eax
call fcn.1000dee0
push 0x2e9
push str.hprof_io.c
lea eax, [esp + 0x130]
mov byte [esp + 0x283], 0
push eax
push 0
push 1
call fcn.10005090
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 [0x1001f83c]
push dword [eax + 0x10]
push str._s__created__s_n
call fcn.1000d220
add esp, 0x10
nop dword [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 0x1000bb45
je 0x1000bb5b
lea eax, [esp + 0x118]
push esi
push eax
call fcn.1000d290
add esp, 8
test esi, esi
jg 0x1000bb10
jmp 0x1000bb5b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
push esi
push str.read
call fcn.1000ce90
add esp, 0xc
push edi
call fcn.1000e010
push str._n_________n_n
call fcn.1000d220
mov ecx, dword [0x1001f83c]
add esp, 8
mov edx, dword [ecx + 0x11c]
test edx, edx
je 0x1000bba4
movzx eax, byte [ecx + 0x74]
push eax
push edx
push dword [ecx + 0x118]
push dword [ecx + 0x70]
call fcn.1000cfa0
mov eax, dword [0x1001f83c]
add esp, 0x10
mov dword [eax + 0x11c], 0
mov ecx, dword [esp + 0x518]
pop edi
pop esi
xor ecx, esp
call fcn.10017139
add esp, 0x514
ret