Function at 0x4428f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de708
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x51f5a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.0046ff00
add esp, 4
test al, al
jne 0x442b6a
push 5
call fcn.0046ff00
add esp, 4
test al, al
jne 0x442b6a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x442957
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x442954
mov eax, dword [ebx]
mov byte [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x442962
mov eax, dword [eax]
push 0x4ecb7c
push eax
call fcn.004bc024
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x442b6a
push 0x10000
call fcn.004b527f
mov esi, eax
mov dword [ebp - 0x30], esi
push dword [ebp - 0x1c]
xor edi, edi
mov dword [ebp - 4], 1
push 0x10000
push 1
push esi
mov dword [ebp - 0x24], edi
call fcn.004c1654
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x18], edx
test edx, edx
je 0x442b2a
test ebx, ebx
je 0x442af4
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub eax, edi
mov edi, dword [ebx + 0x10]
cmp eax, edx
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x28], edx
cmovb ecx, eax
mov eax, edx
sub eax, edi
mov dword [ebp - 0x10], ecx
cmp ecx, eax
ja 0x442a06
lea eax, [ecx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4429ed
mov eax, dword [ebx]
push ecx
add edi, eax
push esi
push edi
call fcn.004b6a30
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x442af1
mov eax, SysReAllocString
sub eax, edi
cmp eax, ecx
jb 0x442b83
lea eax, [ecx + edi]
mov ecx, eax
mov dword [ebp - 0x2c], eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x442a2f
mov ecx, SysReAllocString
jmp 0x442a53
mov eax, edx
shr eax, 1
mov dword [ebp - 0x20], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x20]
cmp edx, eax
jbe 0x442a49
mov ecx, SysReAllocString
jmp 0x442a53
mov eax, dword [ebp - 0x20]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x20], ecx
push eax
mov ecx, ebx
call fcn.00401fc0
cmp dword [ebp - 0x28], 0x10
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
push edi
jb 0x442ace
mov eax, dword [ebx]
push eax
push edx
mov dword [ebp - 0x20], eax
call fcn.004b7060
mov eax, dword [ebp - 0x10]
add edi, dword [ebp - 0x14]
push eax
push esi
push edi
call fcn.004b7060
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov ecx, dword [ebp - 0x28]
inc ecx
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x20]
cmp ecx, 0x1000
jb 0x442ac2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x442b7e
mov eax, edx
push ecx
push eax
call fcn.004b4f6c
add esp, 8
jmp 0x442aec
push ebx
push edx
call fcn.004b7060
push dword [ebp - 0x10]
add edi, dword [ebp - 0x14]
push esi
push edi
call fcn.004b7060
mov eax, dword [ebp - 0x10]
add esp, 0x18
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x14]
mov dword [ebx], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov edi, dword [ebp - 0x1c]
cmp eax, edx
jb 0x442b3e
push edi
push 0x10000
add ecx, edx
push 1
push esi
mov dword [ebp - 0x24], ecx
call fcn.004c1654
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x18], edx
test edx, edx
je 0x442b2d
mov edi, dword [ebp - 0x24]
jmp 0x4429b6
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004c1440
add esp, 4
test eax, eax
jne 0x442b3e
mov bl, 1
jmp 0x442b40
xor bl, bl
push edi
call fcn.004bbefd
add esp, 4
test esi, esi
je 0x442b56
push esi
call fcn.004b527a
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ba5bc
call fcn.00401fa0
int3