Function at 0x445200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454b55
mov eax, dword fs:[0]
push eax
mov eax, 0x401c
call fcn.00425300
mov eax, dword [0x46f070]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4024], 0
cmp byte [edi + 0xd], 0
mov dword [ebp - 0x4020], ebx
mov dword [ebp - 0x4028], ebx
jne 0x44528e
push 0x18
call fcn.0042421b
add esp, 4
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x445275
mov ecx, dword [eax]
jmp 0x445277
mov ecx, eax
xor edx, edx
mov word [ecx], dx
mov ecx, ebx
push eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
call fcn.0040a440
jmp 0x445577
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x6400000
jbe 0x445331
push str.FileStream::Read___failed._Reason:_characters___100_MiB.
lea ecx, [ebp - 0x401c]
call fcn.0044fee0
push 1
xor dl, dl
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x401c]
call fcn.00446870
add esp, 4
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x4018]
test edi, edi
je 0x4452f8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x4452f8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x4452f8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0x18
mov byte [ebp - 4], 0
call fcn.0042421b
mov ebx, dword [ebp - 0x4020]
xor ecx, ecx
add esp, 4
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], cx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov ecx, ebx
push eax
call fcn.0040a440
jmp 0x445577
cmp dword [edi + 0x18], 4
push 0x18
jne 0x44543f
call fcn.0042421b
add esp, 4
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x44535d
mov ecx, dword [eax]
jmp 0x44535f
mov ecx, eax
xor edx, edx
mov word [ecx], dx
lea ecx, [ebp - 0x401c]
push eax
mov dword [ebp - 0x401c], edx
mov dword [ebp - 0x4018], edx
call fcn.0040a440
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x401c]
cmp dword [esi + 0x10], ebx
ja 0x4453c1
cmp dword [esi + 0x14], ebx
je 0x4453c1
mov eax, dword [esi + 0x10]
mov ecx, esi
push 1
push ebx
mov dword [ebp - 0x4014], eax
call fcn.00409b30
test al, al
je 0x4453c1
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x4014]
mov dword [esi + 0x10], eax
jb 0x4453bb
mov esi, dword [esi]
xor ecx, ecx
mov word [esi + eax*2], cx
cmp byte [edi + 0xd], 0
je 0x445415
push 0
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4014], 0
push eax
push 0x4000
lea eax, [ebp - 0x4010]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x445415
mov esi, dword [ebp - 0x4014]
test esi, esi
je 0x445415
mov ecx, dword [ebp - 0x401c]
lea eax, [ebp - 0x4010]
shr esi, 1
push esi
push eax
call fcn.0040b6c0
sub ebx, esi
jne 0x4453c1
mov ebx, dword [ebp - 0x4020]
lea eax, [ebp - 0x401c]
push eax
mov ecx, ebx
call fcn.0044ef00
mov dword [ebp - 0x4024], 1
mov dword [ebp - 4], 4
jmp 0x44554c
call fcn.0042421b
add esp, 4
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x44545f
mov ecx, dword [eax]
jmp 0x445461
mov ecx, eax
mov byte [ecx], 0
lea ecx, [ebp - 0x401c]
push eax
mov dword [ebp - 0x401c], 0
mov dword [ebp - 0x4018], 0
call fcn.0040be40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 5
mov ebx, dword [ebp - 0x401c]
cmp dword [ebx + 0x10], eax
ja 0x4454c2
cmp dword [ebx + 0x14], eax
je 0x4454c2
mov esi, dword [ebx + 0x10]
mov ecx, ebx
push 1
push eax
call fcn.0040b9c0
test al, al
je 0x4454c2
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], esi
jb 0x4454bc
mov eax, dword [ebx]
jmp 0x4454be
mov eax, ebx
mov byte [esi + eax], 0
cmp byte [edi + 0xd], 0
je 0x445511
push 0
lea eax, [ebp - 0x4014]
mov dword [ebp - 0x4014], 0
push eax
push 0x2000
lea eax, [ebp - 0x2010]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x445511
mov esi, dword [ebp - 0x4014]
test esi, esi
je 0x445511
push esi
lea eax, [ebp - 0x2010]
mov ecx, ebx
push eax
call fcn.0040b7f0
sub dword [ebp + 0xc], esi
jne 0x4454c2
mov ecx, dword [edi + 0x18]
xor eax, eax
cmp ecx, 2
je 0x445520
cmp ecx, 3
jne 0x445525
mov eax, 0xfde9
cmp dword [ebx + 0x14], 0x10
jb 0x44552d
mov ebx, dword [ebx]
push eax
push ebx
mov ebx, dword [ebp - 0x4020]
push ebx
call fcn.0044e1c0
mov dword [ebp - 0x4024], 1
mov dword [ebp - 4], 6
mov edi, dword [ebp - 0x4018]
test edi, edi
je 0x445577
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x445577
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x445577
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, ebx
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.0042420a
mov esp, ebp
pop ebp
ret 8