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

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
cmp eax, ecx
push edi
jb 0x41dddb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x2d4]
test eax, eax
jne 0x41ddef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
lea ecx, [ebx + 0xc]
push 0x42f30c
push ecx
call sub.MSVCRT.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
jne 0x41de12
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edx, dword [ebx + 0x2cc]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0x2d0], edx
mov ebp, dword [ebx + 0x2d4]
mov ecx, dword [ebx + 0x2cc]
add ebp, ecx
cmp dword [ebp], 0x2014b50
jne 0x41dff7
xor eax, eax
lea ecx, [ebp + 0x2e]
mov ax, word [ebp + 0x1c]
push eax
push ecx
push esi
call sub.MSVCRT.dll_strncpy
xor edx, edx
xor eax, eax
mov dx, word [ebp + 0x1c]
add esp, 0xc
mov byte [edx + esi], 0
mov ax, word [ebp + 0x1c]
mov al, byte [eax + esi - 1]
cmp al, 0x2f
je 0x41de6d
cmp al, 0x5c
jne 0x41deb2
mov eax, dword [ebx + 0x2cc]
xor ecx, ecx
add eax, 0x2e
xor edx, edx
mov dword [ebx + 0x2cc], eax
mov cx, word [ebp + 0x1e]
add eax, ecx
xor ecx, ecx
mov dword [ebx + 0x2cc], eax
mov dx, word [ebp + 0x1c]
add eax, edx
mov dword [ebx + 0x2cc], eax
mov cx, word [ebp + 0x20]
add ecx, eax
mov eax, dword [ebx + 4]
inc eax
mov dword [ebx + 0x2cc], ecx
mov dword [ebx + 4], eax
jmp 0x41de22
mov edx, dword [ebp + 0x2a]
push 0
push edx
push edi
call sub.MSVCRT.dll_fseek
mov eax, dword [esp + 0x1c]
lea edi, [ebx + 0x264]
push eax
push 1
push 0x1e
push edi
call sub.MSVCRT.dll_fread
mov eax, dword [edi]
add esp, 0x1c
cmp eax, 0x4034b50
je 0x41def6
mov ecx, dword [esp + 0x10]
push ecx
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [ebp + 0x2a]
xor edx, edx
mov dx, word [ebx + 0x280]
xor eax, eax
mov ax, word [ebx + 0x27e]
add edx, eax
mov eax, dword [esp + 0x20]
test eax, eax
lea edi, [edx + ecx + 0x1e]
mov dword [esp + 0x1c], edi
je 0x41df5d
push 0x2f
push esi
call sub.MSVCRT.dll__mbsrchr
add esp, 8
test eax, eax
je 0x41df3e
push 0x2f
push esi
mov byte [eax], 0x5c
call sub.MSVCRT.dll_strrchr
add esp, 8
test eax, eax
jne 0x41df2c
push esi
mov esi, dword [esp + 0x1c]
push esi
mov ecx, ebx
call fcn.0041e670
lea edx, [ebx + 0x138]
push edx
push esi
call sub.MSVCRT.dll_sprintf
add esp, 8
jmp 0x41dfc6
push esi
lea eax, [ebx + 0x138]
push 0x42f324
push eax
call sub.MSVCRT.dll_sprintf
push 0x2f
push esi
call sub.MSVCRT.dll__mbsrchr
add esp, 0x14
test eax, eax
jne 0x41df80
mov eax, esi
push 0x2e
push eax
call sub.MSVCRT.dll__mbsrchr
add esp, 8
test eax, eax
je 0x41dfc2
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
jmp 0x41dfc6
mov esi, dword [esp + 0x18]
cmp word [ebx + 0x26c], 0
jne 0x41e0d1
push 0
push edi
mov edi, dword [esp + 0x18]
push edi
call sub.MSVCRT.dll_fseek
push 0x42eeb8
push esi
call sub.MSVCRT.dll_fopen
add esp, 0x14
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41e00a
push edi
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
push 0xa000
xor edi, edi
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [ebx + 0x276]
add esp, 4
test eax, eax
jbe 0x41e065
sub eax, edi
cmp eax, 0xa000
jbe 0x41e033
mov eax, 0xa000
mov ecx, dword [esp + 0x10]
push ecx
push eax
push 1
push esi
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x41e065
mov edx, dword [esp + 0x18]
add edi, eax
push edx
push 1
push eax
push esi
call sub.MSVCRT.dll_fwrite
mov eax, dword [ebx + 0x276]
add esp, 0x10
cmp edi, eax
jb 0x41e025
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCRT.dll_fclose
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCRT.dll_fclose
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebx + 0x2cc]
xor ecx, ecx
add edx, 0x2e
add esp, 0xc
mov dword [ebx + 0x2cc], edx
mov eax, edx
xor edx, edx
pop edi
mov dx, word [ebp + 0x1e]
pop esi
add eax, edx
xor edx, edx
mov dword [ebx + 0x2cc], eax
mov cx, word [ebp + 0x1c]
add eax, ecx
mov dword [ebx + 0x2cc], eax
mov dx, word [ebp + 0x20]
add edx, eax
mov eax, dword [ebx + 4]
inc eax
mov dword [ebx + 0x2cc], edx
mov dword [ebx + 4], eax
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x276]
push esi
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
mov ecx, ebx
call fcn.0041e350
test al, al
push esi
jne 0x41e0fd
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
call sub.MSVCRT.dll_fclose
mov esi, dword [ebx + 0x2cc]
xor ecx, ecx
add esi, 0x2e
xor edx, edx
mov dword [ebx + 0x2cc], esi
mov cx, word [ebp + 0x1e]
mov eax, esi
add esp, 4
add eax, ecx
xor ecx, ecx
mov dword [ebx + 0x2cc], eax
mov dx, word [ebp + 0x1c]
add eax, edx
pop edi
mov dword [ebx + 0x2cc], eax
mov cx, word [ebp + 0x20]
add ecx, eax
mov eax, dword [ebx + 4]
inc eax
pop esi
mov dword [ebx + 0x2cc], ecx
mov dword [ebx + 4], eax
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc