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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x2d4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x2bc], 0
jne 0x4dea78
xor al, al
jmp 0x4deda0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x2bc]
jae 0x4deaf6
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x2d4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp dword [edx], 0x2014b50
je 0x4deaad
xor al, al
jmp 0x4deda0
mov eax, dword [ebp + 8]
push eax
call fcn.004ee2e0
add esp, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x2e
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004f2f9c
add esp, 0xc
test eax, eax
jne 0x4dead3
jmp 0x4deaf6
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax + 0x20]
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x1c]
lea ecx, [ecx + eax + 0x2e]
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x1e]
add eax, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0xc], eax
jmp 0x4dea78
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x2bc]
jb 0x4deb0b
xor al, al
jmp 0x4deda0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x2014b50
je 0x4deb23
xor al, al
jmp 0x4deda0
push 0x538180
mov edx, dword [ebp - 0x74]
add edx, 0xc
push edx
call fcn.004f1a90
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4deb47
xor al, al
jmp 0x4deda0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004ef27a
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.004ef182
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x62
jae 0x4deb7f
mov edx, dword [ebp - 4]
push edx
call fcn.004eec8f
add esp, 4
xor al, al
jmp 0x4deda0
push 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2a]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ef27a
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
push 1
push 0x1e
lea ecx, [ebp - 0x34]
push ecx
call fcn.004eefc8
add esp, 0x10
mov esi, dword [ebp - 0x3c]
mov ecx, 0xb
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0x22]
lea ecx, [eax + edx + 0x1e]
movzx edx, word [ebp - 0x1a]
add ecx, edx
mov dword [ebp - 8], ecx
movzx eax, word [ebp - 0x4c]
movzx ecx, word [ebp - 0x50]
lea edx, [eax + ecx + 0x2e]
movzx eax, word [ebp - 0x4e]
add edx, eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x42]
push ecx
mov edx, dword [ebp - 0x42]
add edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x74]
call fcn.004df8f0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x2bc]
jae 0x4dec5e
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x2d4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2a]
cmp ecx, dword [ebp - 0x42]
jbe 0x4dec3b
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x2a]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x2a], eax
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x1c]
lea eax, [eax + edx + 0x2e]
mov ecx, dword [ebp - 0x3c]
movzx edx, word [ecx + 0x1e]
add edx, dword [ebp - 0xc]
add edx, eax
mov dword [ebp - 0xc], edx
jmp 0x4debfe
push 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x2c0]
sub ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ef27a
add esp, 0xc
cmp dword [ebp - 0x70], 0
je 0x4dec9b
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x2d4]
push eax
call fcn.004f1372
add esp, 0x10
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x2d4]
add edx, dword [ebp - 0x70]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x2bc]
sub edx, dword [ebp - 0x70]
sub edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004f1372
add esp, 0x10
mov ecx, dword [ebp - 0x74]
mov dx, word [ecx + 0x2b8]
sub dx, 1
mov eax, dword [ebp - 0x74]
mov word [eax + 0x2b8], dx
mov ecx, dword [ebp - 0x74]
mov dx, word [ecx + 0x2ba]
sub dx, 1
mov eax, dword [ebp - 0x74]
mov word [eax + 0x2ba], dx
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x2bc]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x74]
mov dword [eax + 0x2bc], edx
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov word [edx + 0x2c4], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x2c0]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x2c0], ecx
mov eax, dword [ebp - 4]
push eax
push 1
push 0x16
mov ecx, dword [ebp - 0x74]
add ecx, 0x2b0
push ecx
call fcn.004f1372
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.004ef182
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004eec8f
add esp, 4
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x74]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x74]
call fcn.004dfa10
mov eax, dword [ebp - 0x74]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x74]
call fcn.004de910
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x2d0]
mov dword [ecx + 0x2cc], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4