Function at 0x1001c070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061de7
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1007f070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov ebx, ecx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
jb 0x1001c0b7
mov eax, dword [ebx]
jmp 0x1001c0b9
mov eax, ebx
push 0x100738bc
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10047b61
add esp, 0xc
test eax, eax
je 0x1001c140
cmp dword [ebx + 0x14], 0x10
jb 0x1001c0d7
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x48]
push str.Open_file__s__is_failed
push eax
call fcn.1001b7f0
add esp, 0xc
mov esi, eax
cmp edi, esi
je 0x1001c127
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1001c102
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.1000e830
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x1001c11a
mov eax, dword [edi]
jmp 0x1001c11c
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.1000e5b0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1001c313
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
jmp 0x1001c30e
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1001c1e7
lea ecx, [ebp - 0x60]
call fcn.1001b510
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1001c162
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x1001c16a
mov ebx, dword [ebx]
push eax
push ebx
lea eax, [ebp - 0x48]
push str.Open_file__s__is_failed:__s
push eax
call fcn.1001b7f0
add esp, 0x10
mov esi, eax
cmp edi, esi
je 0x1001c1bb
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x1001c196
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.1000e830
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x1001c1ae
mov eax, dword [edi]
jmp 0x1001c1b0
mov eax, edi
push esi
mov ecx, edi
mov byte [eax], 0
call fcn.1000e5b0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1001c1d0
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.1000e830
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
jmp 0x1001c2fe
push 2
push 0
push eax
call fcn.1004795b
push dword [ebp - 0x2c]
call fcn.1004730b
push 0
push 0
push dword [ebp - 0x2c]
mov esi, eax
call fcn.1004795b
lea ecx, [esi - 1]
add esp, 0x1c
cmp ecx, 0x7fffff
ja 0x1001c2dc
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dfd0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x28]
push dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.10049108
push dword [ebp - 0x2c]
mov esi, eax
call fcn.10047621
add esp, 0x14
test esi, esi
je 0x1001c281
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
call fcn.1001bc10
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.1000aaf0
mov al, bl
jmp 0x1001c315
lea ecx, [ebp - 0x90]
call fcn.1001b510
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x1001c298
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x1001c2a0
mov ebx, dword [ebx]
push eax
push ebx
lea eax, [ebp - 0x78]
push str.Read_file__s__is_failed:__s
push eax
call fcn.1001b7f0
add esp, 0x10
mov ecx, edi
push eax
call fcn.1000ab30
lea ecx, [ebp - 0x78]
call fcn.1000aaf0
lea ecx, [ebp - 0x90]
call fcn.1000aaf0
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.1000aaf0
mov al, bl
jmp 0x1001c315
push dword [ebp - 0x2c]
call fcn.10047621
push esi
lea eax, [ebp - 0x60]
push str.Get_file_size__d__is_failed.
push eax
call fcn.1001b7f0
add esp, 0x10
mov ecx, edi
push eax
call fcn.1000ab30
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x1001c313
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.1000e830
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037fa1
mov esp, ebp
pop ebp
ret