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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x55930c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 0x110], 0
push 0xff
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004ed5e0
add esp, 0xc
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x13c]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 8]
jb 0x4de0f1
xor eax, eax
jmp 0x4de6ec
mov ecx, dword [ebp - 0x13c]
cmp dword [ecx + 0x2d4], 0
jne 0x4de107
xor eax, eax
jmp 0x4de6ec
push 0x538164
mov edx, dword [ebp - 0x13c]
add edx, 0xc
push edx
call fcn.004f1a90
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4de12e
xor eax, eax
jmp 0x4de6ec
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x2cc]
mov dword [eax + 0x2d0], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x2d4]
mov edx, dword [ebp - 0x13c]
add ecx, dword [edx + 0x2cc]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x2014b50
je 0x4de186
mov ecx, dword [ebp - 4]
push ecx
call fcn.004eec8f
add esp, 4
xor eax, eax
jmp 0x4de6ec
mov edx, dword [ebp - 8]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x114]
add edx, 0x2e
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004f22b0
add esp, 0xc
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x1c]
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x1c]
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx - 1]
cmp ecx, 0x2f
je 0x4de1e7
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
jne 0x4de279
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x2cc]
add ecx, 0x2e
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0x2cc], ecx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x1e]
mov edx, dword [ebp - 0x13c]
add ecx, dword [edx + 0x2cc]
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0x2cc], ecx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x1c]
mov eax, dword [ebp - 0x13c]
add edx, dword [eax + 0x2cc]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x2cc], edx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x20]
mov ecx, dword [ebp - 0x13c]
add eax, dword [ecx + 0x2cc]
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0x2cc], eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp - 0x13c]
mov dword [edx + 4], ecx
jmp 0x4de14d
jmp 0x4de280
push 0
mov eax, dword [ebp - 8]
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
mov ecx, dword [ebp - 0x13c]
add ecx, 0x264
push ecx
call fcn.004eefc8
add esp, 0x10
mov edx, dword [ebp - 0x13c]
cmp dword [edx + 0x264], 0x4034b50
je 0x4de2d7
mov eax, dword [ebp - 4]
push eax
call fcn.004eec8f
add esp, 4
xor eax, eax
jmp 0x4de6ec
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x2a]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x27e]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x13c]
movzx ecx, word [eax + 0x280]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x4de385
push 0x2f
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c54a0
add esp, 8
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x4de351
mov eax, dword [ebp - 0x118]
mov byte [eax], 0x5c
push 0x2f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c54a0
add esp, 8
mov dword [ebp - 0x118], eax
jmp 0x4de329
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004dfd30
mov ecx, dword [ebp - 0x13c]
add ecx, 0x138
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.004f25ef
add esp, 8
jmp 0x4de408
mov eax, dword [ebp + 0xc]
push eax
push 0x538168
mov ecx, dword [ebp - 0x13c]
add ecx, 0x138
push ecx
call fcn.004f25ef
add esp, 0xc
push 0x2f
mov edx, dword [ebp + 0xc]
push edx
call fcn.004c54a0
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x4de3c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x120], eax
push 0x2e
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004c54a0
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4de408
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x53816c
lea ecx, [ebp - 0x110]
push ecx
call fcn.004f25ef
add esp, 0x10
mov edx, dword [ebp - 0x13c]
movzx eax, word [edx + 0x26c]
test eax, eax
jne 0x4de627
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004ef27a
add esp, 0xc
push 0x538174
lea eax, [ebp - 0x110]
push eax
call fcn.004f1a90
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x4de465
mov ecx, dword [ebp - 4]
push ecx
call fcn.004eec8f
add esp, 4
xor eax, eax
jmp 0x4de6ec
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
push 0xa000
call fcn.004e68e6
add esp, 4
mov dword [ebp - 0x134], eax
mov edx, dword [ebp - 0x134]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x130]
cmp ecx, dword [eax + 0x276]
jae 0x4de550
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x276]
sub eax, dword [ebp - 0x130]
cmp eax, 0xa000
jbe 0x4de4d5
mov dword [ebp - 0x140], 0xa000
jmp 0x4de4ed
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x276]
sub edx, dword [ebp - 0x130]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x140]
push ecx
push 1
mov edx, dword [ebp - 0x124]
push edx
call fcn.004eefc8
add esp, 0x10
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x4de51a
jmp 0x4de550
mov eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x128]
push ecx
push 1
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x124]
push eax
call fcn.004f1372
add esp, 0x10
jmp 0x4de498
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.004eec8f
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.004eec8f
add esp, 4
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.004ecc45
add esp, 4
mov dword [ebp - 0x124], 0
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x2cc]
add eax, 0x2e
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x2cc], eax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x1e]
mov ecx, dword [ebp - 0x13c]
add eax, dword [ecx + 0x2cc]
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0x2cc], eax
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x1c]
mov edx, dword [ebp - 0x13c]
add ecx, dword [edx + 0x2cc]
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0x2cc], ecx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x20]
mov eax, dword [ebp - 0x13c]
add edx, dword [eax + 0x2cc]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x2cc], edx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 4], eax
mov eax, 1
jmp 0x4de6ec
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x276]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.004dedb0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004eec8f
add esp, 4
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x2cc]
add eax, 0x2e
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x2cc], eax
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x1e]
mov ecx, dword [ebp - 0x13c]
add eax, dword [ecx + 0x2cc]
mov edx, dword [ebp - 0x13c]
mov dword [edx + 0x2cc], eax
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x1c]
mov edx, dword [ebp - 0x13c]
add ecx, dword [edx + 0x2cc]
mov eax, dword [ebp - 0x13c]
mov dword [eax + 0x2cc], ecx
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x20]
mov eax, dword [ebp - 0x13c]
add edx, dword [eax + 0x2cc]
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 0x2cc], edx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 4], eax
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9752
mov esp, ebp
pop ebp
ret 0xc