Function at 0x4fcbe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638e48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6d1554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call fcn.0056a5e0
add esp, 4
test al, al
jne 0x4fce5a
push 5
call fcn.0056a5e0
add esp, 4
test al, al
jne 0x4fce5a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4fcc47
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x4fcc44
mov eax, dword [ebx]
mov byte [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4fcc52
mov eax, dword [eax]
push 0x65efac
push eax
call fcn.005eb11c
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4fce5a
push 0x10000
call fcn.0054e16c
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.005ebacc
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4fce1a
test ebx, ebx
je 0x4fcde4
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 0x4fccf6
lea eax, [ecx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp edx, 0x10
jb 0x4fccdd
mov eax, dword [ebx]
push ecx
add edi, eax
push esi
push edi
call fcn.005c8330
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x4fcde1
mov eax, SysReAllocString
sub eax, edi
cmp eax, ecx
jb 0x4fce73
lea eax, [ecx + edi]
mov ecx, eax
mov dword [ebp - 0x2c], eax
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x4fcd1f
mov ecx, SysReAllocString
jmp 0x4fcd43
mov eax, edx
shr eax, 1
mov dword [ebp - 0x20], eax
mov eax, SysReAllocString
sub eax, dword [ebp - 0x20]
cmp edx, eax
jbe 0x4fcd39
mov ecx, SysReAllocString
jmp 0x4fcd43
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.00483410
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 0x4fcdbe
mov eax, dword [ebx]
push eax
push edx
mov dword [ebp - 0x20], eax
call fcn.005c7db0
mov eax, dword [ebp - 0x10]
add edi, dword [ebp - 0x14]
push eax
push esi
push edi
call fcn.005c7db0
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 0x4fcdb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fce6e
mov eax, edx
push ecx
push eax
call fcn.0054dcd5
add esp, 8
jmp 0x4fcddc
push ebx
push edx
call fcn.005c7db0
push dword [ebp - 0x10]
add edi, dword [ebp - 0x14]
push esi
push edi
call fcn.005c7db0
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 0x4fce2e
push edi
push 0x10000
add ecx, edx
push 1
push esi
mov dword [ebp - 0x24], ecx
call fcn.005ebacc
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x18], edx
test edx, edx
je 0x4fce1d
mov edi, dword [ebp - 0x24]
jmp 0x4fcca6
mov edi, dword [ebp - 0x1c]
push edi
call fcn.005fccbd
add esp, 4
test eax, eax
jne 0x4fce2e
mov bl, 1
jmp 0x4fce30
xor bl, bl
push edi
call fcn.005eb1fd
add esp, 4
test esi, esi
je 0x4fce46
push esi
call fcn.0054e175
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.005d2e9f
call fcn.004833c0
int3