Function at 0x4ceff0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x2bc]
push edi
xor esi, esi
xor edi, edi
test eax, eax
jne 0x4cf011
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x54
ret 4
push ebp
test eax, eax
jbe 0x4cf077
mov ebp, dword [esp + 0x68]
lea ebx, [ebx]
mov esi, dword [ebx + 0x2d4]
add esi, edi
cmp dword [esi], 0x2014b50
jne 0x4cf0c3
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cf040
sub eax, edx
push eax
lea eax, [esi + 0x2e]
push eax
push ebp
call fcn.004de4e4
add esp, 0xc
test eax, eax
je 0x4cf077
movzx ecx, word [esi + 0x20]
movzx edx, word [esi + 0x1e]
movzx eax, word [esi + 0x1c]
add ecx, edx
add eax, edi
lea edi, [eax + ecx + 0x2e]
cmp edi, dword [ebx + 0x2bc]
jb 0x4cf020
cmp edi, dword [ebx + 0x2bc]
jae 0x4cf0c3
cmp dword [esi], 0x2014b50
mov dword [esp + 0x68], edi
jne 0x4cf0c3
lea eax, [ebx + 0xc]
push 0x521be4
push eax
call fcn.004dcab6
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4cf0c3
push 2
push 0
push ebp
call fcn.004da24f
push ebp
call fcn.004da157
add esp, 0x10
cmp eax, 0x62
jae 0x4cf0cf
push ebp
call fcn.004d9c64
add esp, 4
pop ebp
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x54
ret 4
mov ecx, dword [esi + 0x2a]
push 0
push ecx
push ebp
call fcn.004da24f
push ebp
push 1
lea edx, [esp + 0x28]
push 0x1e
push edx
call fcn.004d9f9d
movzx eax, word [esp + 0x4a]
add eax, dword [esp + 0x42]
mov ecx, 0xb
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [esp + 0x4c]
movsw word es:[edi], word [esi]
lea esi, [ecx + eax + 0x1e]
mov eax, dword [esp + 0x6c]
movzx ecx, word [esp + 0x70]
mov edx, eax
movzx eax, ax
shr edx, 0x10
add edx, eax
mov eax, dword [esp + 0x7a]
add esp, 0x1c
push eax
add eax, esi
lea edi, [edx + ecx + 0x2e]
push eax
push ebp
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004cec80
xor edx, edx
cmp dword [ebx + 0x2bc], edx
jbe 0x4cf178
mov eax, dword [ebx + 0x2d4]
mov ecx, dword [eax + edx + 0x2a]
add eax, edx
cmp ecx, dword [esp + 0x5e]
jbe 0x4cf158
sub ecx, esi
mov dword [eax + 0x2a], ecx
movzx ecx, word [eax + 0x20]
movzx edi, word [eax + 0x1e]
movzx eax, word [eax + 0x1c]
add ecx, edi
add eax, edx
lea edx, [eax + ecx + 0x2e]
cmp edx, dword [ebx + 0x2bc]
jb 0x4cf141
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x2c0]
push 0
sub ecx, esi
push ecx
push ebp
call fcn.004da24f
mov eax, dword [esp + 0x74]
add esp, 0xc
test eax, eax
je 0x4cf1ab
mov edx, dword [ebx + 0x2d4]
push ebp
push 1
push eax
push edx
call fcn.004dc2b5
mov eax, dword [esp + 0x78]
add esp, 0x10
mov ecx, dword [ebx + 0x2bc]
mov edx, dword [ebx + 0x2d4]
push ebp
sub ecx, edi
push 1
sub ecx, eax
add edx, edi
push ecx
add edx, eax
push edx
call fcn.004dc2b5
sub dword [ebx + 0x2bc], edi
sub dword [ebx + 0x2c0], esi
push ebp
mov eax, 0xffff
add word [ebx + 0x2b8], ax
mov ecx, eax
add word [ebx + 0x2ba], cx
push 1
lea eax, [ebx + 0x2b0]
xor edx, edx
push 0x16
push eax
mov word [ebx + 0x2c4], dx
call fcn.004dc2b5
push ebp
call fcn.004da157
push ebp
mov esi, eax
call fcn.004d9c64
add esp, 0x28
push esi
lea esi, [ebx + 0xc]
push esi
mov ecx, ebx
call fcn.004ced60
push esi
mov ecx, ebx
call fcn.004ce690
mov ecx, dword [ebx + 0x2d0]
pop ebp
pop edi
pop esi
mov dword [ebx + 0x2cc], ecx
mov al, 1
pop ebx
add esp, 0x54
ret 4