Function at 0x10019c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1008640b
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [ebp + 8]
mov byte [edi + 8], 0
call dword [eax]
push 4
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x100], 0
test eax, eax
je 0x10019d09
mov dword [eax], 0
mov dword [eax], 0xffffffff
jmp 0x10019d0b
xor eax, eax
mov dword [esp + 0x100], 0xffffffff
mov dword [esp + 0x70], eax
mov dword [esp + 0x100], 1
push ecx
push 3
push 1
push SysReAllocString
push esi
lea ecx, [esp + 0x84]
call fcn.1002ae00
test al, al
jne 0x10019df7
lea ecx, [esp + 0xa8]
call fcn.100312e0
mov byte [esp + 0x100], 2
cmp dword [edi + 4], 0
je 0x10019da4
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [esp + 0xc8]
push eax
call fcn.10003100
mov byte [esp + 0x118], 3
mov ecx, dword [edi + 4]
push 0
mov eax, dword [ecx]
mov byte [esp + 0x11c], 2
call dword [eax + 4]
mov byte [esp + 0x100], 1
cmp dword [esp + 0xbc], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10019dc8
push dword [esp + 0xa8]
call ebx
add esp, 4
mov esi, dword [esp + 0x70]
xor eax, eax
mov word [esp + 0xa8], ax
xor al, al
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov byte [esp + 0x33], al
jmp 0x1001a0e0
lea eax, [esp + 0x3c]
xorps xmm0, xmm0
push eax
lea ecx, [esp + 0x74]
movlpd qword [esp + 0x40], xmm0
call fcn.1002b000
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
jne 0x10019eb0
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], eax
mov word [esp + 0x90], ax
mov byte [esp + 0x100], 4
lea eax, [esp + 0x90]
push eax
push 0
mov ecx, edi
call fcn.1001a140
mov byte [esp + 0x100], 1
cmp dword [esp + 0xa4], 8
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10019e81
push dword [esp + 0x90]
call ebx
add esp, 4
mov esi, dword [esp + 0x70]
xor eax, eax
mov word [esp + 0x90], ax
xor al, al
mov dword [esp + 0xa4], 7
mov dword [esp + 0xa0], 0
mov byte [esp + 0x33], al
jmp 0x1001a0e0
xorps xmm0, xmm0
mov byte [esp + 0x33], 1
push 0x10000
mov dword [esp + 0x78], 0
movlpd qword [esp + 0x48], xmm0
call fcn.10081b1c
mov ecx, dword [esp + 0x4c]
add esp, 4
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
jmp 0x10019ef0
mov esi, dword [esp + 0x70]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test esi, esi
je 0x1001a05c
test eax, eax
je 0x1001a044
cmp dword [esi], 0xffffffff
je 0x1001a05c
push 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0
push ecx
push 0x10000
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a044
cmp byte [edi + 8], 0
jne 0x10019fb9
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x1001a040
mov eax, dword [edi]
push ecx
push dword [esp + 0x3c]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esp + 0x44]
add eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x34]
mov ebx, dword [edi + 4]
adc ecx, 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
test ebx, ebx
je 0x10019fa8
mov esi, dword [ebx]
mov edx, ecx
mov ecx, eax
call fcn.10082f2e
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
movsd qword [esp + 0x64], xmm0
call fcn.10082f2e
movsd xmm1, qword [esp + 0x64]
sub esp, 8
divsd xmm1, xmm0
mov ecx, ebx
movsd qword [esp], xmm1
call dword [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x74], 0
jmp 0x10019ef0
xor eax, eax
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
mov byte [esp + 0x100], 5
lea eax, [esp + 0x78]
push eax
push 0
mov ecx, edi
call fcn.1001a140
xor al, al
mov byte [esp + 0x33], al
mov byte [esp + 0x100], 1
cmp dword [esp + 0x8c], 8
jb 0x1001a023
push dword [esp + 0x78]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], 0
mov word [esp + 0x78], ax
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1001a05c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1001a05c
mov dword [esi], 0xffffffff
push dword [esp + 0x38]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [edi]
add esp, 4
mov ecx, edi
call dword [eax + 8]
xor eax, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], 0
mov word [esp + 0x4c], ax
mov byte [esp + 0x100], 6
lea eax, [esp + 0x4c]
push eax
push 1
mov ecx, edi
call fcn.1001a140
mov byte [esp + 0x100], 1
cmp dword [esp + 0x60], 8
jb 0x1001a0c5
push dword [esp + 0x4c]
call ebx
add esp, 4
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
mov al, byte [esp + 0x33]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x100], 0xffffffff
test esi, esi
je 0x1001a119
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x1001a107
test ecx, ecx
je 0x1001a107
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push esi
call ebx
mov al, byte [esp + 0x37]
add esp, 4
mov dword [esp + 0x70], 0
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.10081b94
mov esp, ebp
pop ebp
ret 4