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

Disassembly:
mov eax, 0x14044
call fcn.004d96e0
mov eax, dword [0x541f38]
xor eax, esp
mov dword [esp + 0x14040], eax
push ebx
mov ebx, dword [esp + 0x14050]
push ebp
push esi
push edi
mov edi, dword [esp + 0x14058]
mov esi, ecx
lea eax, [esi + 0xc]
push 0x521be4
push eax
mov dword [esp + 0x1c], ebx
call fcn.004dcab6
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4ce7e8
push 0x521160
push edi
call fcn.004dcab6
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4ce7ef
push ebp
call fcn.004d9c64
add esp, 4
xor al, al
jmp 0x4cec5d
mov eax, ebx
test ebx, ebx
jne 0x4ce7fb
lea eax, [esi + 0x138]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ce800
mov ecx, dword [esi + 0x2c0]
sub eax, edx
push 0
lea edx, [ecx + eax + 0x1e]
push edx
push ebp
call fcn.004da24f
push 0x38
xor ebx, ebx
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004d86e0
push 0x38
push str.1.2.3
push ebx
push 8
push 0xfffffffffffffff1
push 8
lea ecx, [esp + 0x48]
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x74], 0x4ce770
mov dword [esp + 0x70], 0x4ce750
call fcn.0040b0d0
push edi
call fcn.004ddf9e
add esp, 0x3c
test eax, eax
jne 0x4ce947
jmp 0x4ce874
mov edi, dword [esp + 0x10]
push edi
push 0xa000
lea edx, [esp + 0xa058]
push 1
push edx
call fcn.004d9f9d
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4ce943
push edi
lea eax, [esp + 0xa054]
push eax
push ebx
call fcn.0040ced0
add esp, 0xc
lea ecx, [esp + 0xa050]
lea edx, [esp + 0x50]
mov ebx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0xa000
test edi, edi
jbe 0x4ce912
lea ecx, [ecx]
cmp dword [esp + 0x28], 0
jne 0x4ce8fc
push ebp
push 1
lea eax, [esp + 0x58]
push 0xa000
push eax
call fcn.004dc2b5
lea ecx, [esp + 0x60]
add esp, 0x10
mov dword [esp + 0x28], 0xa000
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.0040b690
add esp, 8
cmp dword [esp + 0x1c], 0
ja 0x4ce8d0
mov eax, 0xa000
sub eax, dword [esp + 0x28]
je 0x4ce92e
push ebp
push 1
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004dc2b5
add esp, 0x10
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ddf9e
add esp, 4
test eax, eax
je 0x4ce870
mov edi, dword [esp + 0x10]
push edi
call fcn.004d9c64
lea edx, [esp + 0x54]
mov edi, 0xa000
add esp, 4
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
cmp dword [esp + 0x28], 0
jne 0x4ce985
push ebp
push 1
lea eax, [esp + 0x58]
push edi
push eax
call fcn.004dc2b5
lea ecx, [esp + 0x60]
add esp, 0x10
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x18]
push 4
push edx
call fcn.0040b690
add esp, 8
test eax, eax
je 0x4ce961
mov eax, edi
sub eax, dword [esp + 0x28]
je 0x4ce9b1
push ebp
push 1
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004dc2b5
add esp, 0x10
push ebp
call fcn.004da157
mov edx, dword [esp + 0x24]
lea edi, [esi + 0x264]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov word [edi + 0x1c], ax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x272], ebx
mov ebx, dword [esp + 0x18]
xor ecx, ecx
add esp, 4
mov word [esi + 0x26a], cx
mov dword [edi], 0x4034b50
mov dword [esi + 0x27a], edx
mov dword [esi + 0x276], eax
test ebx, ebx
je 0x4cea1b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cea12
jmp 0x4cea2b
lea eax, [esi + 0x138]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cea24
sub eax, edx
mov word [esi + 0x27e], ax
mov eax, dword [esi + 0x2c0]
push 0
push eax
mov ecx, 8
mov edx, 0x14
push ebp
mov word [esi + 0x26c], cx
mov word [esi + 0x268], dx
call fcn.004da24f
push ebp
push 1
push 0x1e
push edi
call fcn.004dc2b5
add esp, 0x1c
test ebx, ebx
je 0x4cea82
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cea72
push ebp
push 1
sub eax, edx
push eax
push ebx
jmp 0x4cea9e
lea edx, [esi + 0x138]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cea90
push ebp
push 1
sub eax, edi
push eax
push edx
call fcn.004dc2b5
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push ecx
push ebp
call fcn.004da24f
mov edx, dword [esi + 0x2bc]
mov eax, dword [esi + 0x2d4]
push ebp
push 1
push edx
push eax
call fcn.004dc2b5
mov ecx, dword [esi + 0x2d4]
push ecx
call fcn.004d72b6
push 0x2e
lea edi, [esi + 0x282]
push 0
push edi
mov dword [esi + 0x2d4], 0
call fcn.004d86e0
mov cx, word [esi + 0x26c]
mov edx, 0x14
mov eax, edx
mov word [esi + 0x286], dx
mov edx, dword [esi + 0x272]
mov word [esi + 0x288], ax
mov eax, dword [esi + 0x276]
mov word [esi + 0x28c], cx
mov ecx, dword [esi + 0x27a]
add esp, 0x2c
mov dword [edi], 0x2014b50
mov dword [esi + 0x292], edx
mov dword [esi + 0x296], eax
mov dword [esi + 0x29a], ecx
test ebx, ebx
je 0x4ceb51
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ceb48
jmp 0x4ceb67
lea eax, [esi + 0x138]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ceb60
push ebp
push 1
sub eax, edx
mov edx, dword [esi + 0x2c0]
push 0x2e
push edi
mov word [esi + 0x29e], ax
mov dword [esi + 0x2ac], edx
call fcn.004dc2b5
add esp, 0x10
test ebx, ebx
je 0x4ceba3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ceb93
push ebp
push 1
sub eax, edx
push eax
push ebx
jmp 0x4cebbe
lea edx, [esi + 0x138]
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cebb0
push ebp
push 1
sub eax, edi
push eax
push edx
call fcn.004dc2b5
mov eax, dword [esp + 0x20]
add dword [esi + 0x2bc], 0x2e
mov edx, dword [esi + 0x2bc]
mov dword [esi + 0x2c0], eax
mov eax, 1
add word [esi + 0x2b8], ax
add word [esi + 0x2ba], ax
add esp, 0x10
test ebx, ebx
je 0x4cec09
mov eax, ebx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cec00
jmp 0x4cec19
lea eax, [esi + 0x138]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cec12
sub eax, edi
push ebp
add edx, eax
push 1
mov dword [esi + 0x2bc], edx
lea edx, [esi + 0x2b0]
xor ecx, ecx
push 0x16
push edx
mov word [esi + 0x2c4], cx
call fcn.004dc2b5
lea eax, [esp + 0x28]
push eax
call fcn.0040be40
push ebp
call fcn.004d9c64
add esp, 0x18
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004ce690
mov al, 1
mov ecx, dword [esp + 0x14050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d7eb0
add esp, 0x14044
ret 8