Function at 0x10012c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d939
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x10088014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
xor ebx, ebx
lea eax, [ecx + 0x30]
mov dword [ebp - 0x40], ebx
mov edi, dword [eax]
mov dword [ebp - 0x68], eax
cmp edi, dword [ebp + 8]
jae 0x10013211
lea eax, [ecx + 0x24]
mov dword [ebp - 0x44], eax
nop dword [eax]
mov esi, dword [ecx]
mov edx, dword [eax]
add esi, edi
mov edi, dword [eax + 4]
mov ecx, edi
sub ecx, edx
cmp esi, ecx
jae 0x10012c6c
mov edi, dword [ebp - 0x44]
lea eax, [edx + esi]
mov dword [edi + 4], eax
jmp 0x10012ca1
jbe 0x10012c9e
mov eax, dword [eax + 8]
sub eax, edx
cmp esi, eax
jbe 0x10012c85
mov edi, dword [ebp - 0x44]
push ecx
push esi
mov ecx, edi
call fcn.1001da20
jmp 0x10012ca1
sub esi, ecx
push esi
push 0
push edi
call fcn.10047960
lea eax, [edi + esi]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov dword [edi + 4], eax
jmp 0x10012ca1
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
call fcn.10027ed0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x10012d63
movaps xmm0, xmmword [0x10080370]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x2c], 0x80fdfb
movups xmmword [ebp - 0x3c], xmm0
call fcn.1001c2e0
or ebx, 0x200
push dword [ebp - 0x68]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x80]
or ebx, 1
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x6c], 0x10
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x40], ebx
cmovae eax, dword [ebp - 0x80]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + 8]
push eax
call fcn.1001c8b0
add esp, 8
mov dword [ebp - 4], 1
or ebx, 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x40], ebx
jb 0x10012d23
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.10024780
or ebx, 0x800
mov dword [ebp - 4], 2
lea esi, [ebp - 0x64]
or ebx, 4
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x40], ebx
cmovae esi, dword [ebp - 0x64]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_bd::PipeClient::ReadBytesUntil____
push 0
push eax
call fcn.100254b0
add esp, 0x14
mov dword [ebp - 4], 1
test bl, 4
je 0x10012dc0
mov edx, dword [ebp - 0x50]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x10012dac
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012da2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 4], 0
test bl, 2
je 0x10012e24
mov edx, dword [ebp - 0x84]
and ebx, 0xfffffffd
cmp edx, 0x10
jb 0x10012e09
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x10012e67
mov edx, dword [ebp - 0x6c]
and ebx, 0xfffffffe
cmp edx, 0x10
jb 0x10012e67
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012e5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x18]
mov eax, dword [edi]
push 0
push ecx
mov ecx, dword [ebp - 0x48]
add eax, dword [esi]
push dword [ecx]
push eax
push dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001307c
call fcn.10027ed0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x10012f5e
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0xe4e1e5d2
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x24], 0xf4e1e4a0
mov dword [ebp - 0x20], 0xfdfba0e1
mov word [ebp - 0x1c], 0x80
call fcn.1001c2e0
or ebx, 0x4000
mov dword [ebp - 4], 6
lea eax, [ebp - 0x98]
or ebx, 0x40
lea edx, [ebp - 0x4c]
cmp dword [ebp - 0x84], 0x10
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x40], ebx
cmovae eax, dword [ebp - 0x98]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001c6c0
add esp, 4
mov dword [ebp - 4], 7
or ebx, 0x80
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x40], ebx
jb 0x10012f18
mov eax, dword [eax]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.10024780
or ebx, 0x10000
mov dword [ebp - 4], 8
lea esi, [ebp - 0x64]
or ebx, 0x100
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x40], ebx
cmovae esi, dword [ebp - 0x64]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_bd::PipeClient::ReadBytesUntil____
push 0
push eax
call fcn.100254b0
mov esi, dword [ebp - 0x68]
add esp, 0x14
mov dword [ebp - 4], 7
test ebx, 0x100
je 0x10012fc1
mov edx, dword [ebp - 0x50]
and ebx, 0xfffffeff
cmp edx, 8
jb 0x10012fad
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10012fa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov dword [ebp - 4], 6
test bl, bl
jns 0x10013018
mov edx, dword [ebp - 0x6c]
and ebx, 0xffffff7f
cmp edx, 0x10
jb 0x10013006
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012ffc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov dword [ebp - 4], 0xffffffff
test bl, 0x40
je 0x10013061
mov edx, dword [ebp - 0x84]
and ebx, 0xffffffbf
cmp edx, 0x10
jb 0x10013061
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10013057
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
mov edi, dword [ebp - 0x18]
add edi, dword [esi]
mov ecx, dword [ebp - 0x48]
mov dword [esi], edi
cmp edi, dword [ebp + 8]
jae 0x10013211
mov eax, dword [ebp - 0x44]
jmp 0x10012c50
call fcn.10027ed0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x10013120
lea eax, [ebp - 0x98]
push eax
call fcn.10013280
mov dword [ebp - 4], 3
or ebx, 8
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x40], ebx
jb 0x100130ad
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x48]
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x80]
call fcn.1001c600
add esp, 0x10
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x64]
or ebx, 0x10
push eax
mov dword [ebp - 0x40], ebx
call fcn.10026cb0
or ebx, 0x2000
mov dword [ebp - 4], 5
lea esi, [ebp - 0x64]
or ebx, 0x20
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x40], ebx
cmovae esi, dword [ebp - 0x64]
call fcn.10027ed0
push esi
push 0
push str._antimalware_provider__::_bd::PipeClient::ReadBytesUntil____
push 0
push eax
call fcn.100254b0
add esp, 0x14
test bl, 0x20
je 0x10013176
mov edx, dword [ebp - 0x50]
and ebx, 0xffffffdf
cmp edx, 8
jb 0x10013162
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013158
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
test bl, 0x10
je 0x100131cc
mov edx, dword [ebp - 0x6c]
and ebx, 0xffffffef
cmp edx, 8
jb 0x100131b8
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100131ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
test bl, 8
je 0x1001320d
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x1001320d
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10013203
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013270
push edx
push ecx
call fcn.10045702
add esp, 8
xor al, al
jmp 0x10013252
mov ebx, dword [ecx + 0x28]
lea esi, [ecx + 0x24]
mov edx, dword [esi]
mov ecx, ebx
sub ecx, edx
cmp edi, ecx
jae 0x10013226
lea eax, [edx + edi]
jmp 0x1001324d
jbe 0x10013250
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x1001323c
push ecx
push edi
mov ecx, esi
call fcn.1001da20
jmp 0x10013250
sub edi, ecx
push edi
push 0
push ebx
call fcn.10047960
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 4], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100456c4
mov esp, ebp
pop ebp
ret 4
call fcn.100503fe
int3