Function at 0x42c7c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f686
mov eax, dword fs:[0]
push eax
sub esp, 0x540
push ebx
push esi
push edi
mov eax, dword [0x4bb27c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
mov bl, 5
push ecx
mov byte [ebp - 4], bl
call fcn.004222e0
add esp, 8
push eax
mov byte [ebp - 4], 6
call fcn.0042a4a0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, byte [ebp + 0x10]
test bl, bl
mov esi, 2
mov edi, 0x40000000
je 0x42c854
mov esi, 4
mov edi, 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00426160
mov eax, dword [eax]
add esp, 8
push 0
push 0x80
push esi
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esi, 0xffffffff
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c8ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x42c937
push str.CNFileUtilities::WriteTextFile
lea ecx, [ebp - 0x20]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 9
call edi
test eax, eax
jg 0x42c8e7
call edi
mov esi, eax
jmp 0x42c8f7
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00435510
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
push 0x77e
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 0xa
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0x194]
push edx
call fcn.00466ffb
test bl, bl
je 0x42cae2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x42c9d5
push str.CNFileUtilities::WriteTextFile
lea ecx, [ebp - 0x28]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0xc
call edi
test eax, eax
jg 0x42c985
call edi
mov esi, eax
jmp 0x42c995
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00435510
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
push 0x786
lea edx, [ebp - 0x20]
push edx
push esi
push eax
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0xd
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x124]
push eax
call fcn.00466ffb
test eax, eax
mov edi, dword [ebp + 0x14]
jne 0x42c9e3
xor bl, bl
jmp 0x42cae5
test edi, edi
jne 0x42cae5
cmp eax, 3
jl 0x42cae5
push edi
push edi
push edi
push esi
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea ecx, [ebp - 0x28]
push ecx
push 3
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ca9f
push str.CNFileUtilities::WriteTextFile
lea ecx, [ebp - 0x18]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0x12
call edi
test eax, eax
jg 0x42ca4f
call edi
mov esi, eax
jmp 0x42ca5f
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00435510
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push 0x799
lea edx, [ebp - 0x14]
push edx
push esi
push eax
lea ecx, [ebp - 0x354]
mov byte [ebp - 4], 0x13
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0x354]
push eax
call fcn.00466ffb
mov al, byte [ebp - 0x20]
cmp al, 0xff
jne 0x42cab3
cmp byte [ebp - 0x1f], 0xfe
jne 0x42cadb
mov edi, 2
jmp 0x42cae5
cmp al, 0xfe
jne 0x42cac4
cmp byte [ebp - 0x1f], 0xff
jne 0x42cadb
mov edi, 3
jmp 0x42cae5
cmp al, 0xef
jne 0x42cadb
cmp byte [ebp - 0x1f], 0xbb
jne 0x42cadb
cmp byte [ebp - 0x1e], 0xbf
jne 0x42cadb
mov edi, 4
jmp 0x42cae5
mov edi, 1
jmp 0x42cae5
mov edi, dword [ebp + 0x14]
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test bl, bl
sete cl
mov byte [ebp - 0x14], cl
lea ecx, [ebp - 0x3c]
call fcn.004356d0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push edi
lea eax, [ebp - 0x3c]
push eax
push ecx
mov byte [ebp - 4], 0x14
call fcn.004259b0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
mov edi, dword [ebp - 0x34]
add esp, 0x10
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 0
call eax
push 0
lea ecx, [ebp - 0x24]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42cbcb
push str.CNFileUtilities::WriteTextFile
lea ecx, [ebp - 0x14]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x15
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0x16
call edi
test eax, eax
jg 0x42cb7b
call edi
mov esi, eax
jmp 0x42cb8b
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.00435510
add esp, 0xc
lea ecx, [ebp - 0x14]
push ecx
push 0x7bf
lea edx, [ebp - 0x18]
push edx
push esi
push eax
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x17
call fcn.0041fce0
push 0x4b1c2c
lea eax, [ebp - 0xb4]
push eax
call fcn.00466ffb
cmp edi, dword [ebp - 0x24]
je 0x42cc58
push str.CNFileUtilities::WriteTextFile
lea ecx, [ebp - 0x14]
call fcn.004031f0
push str..NFileUtilities.cpp
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x18
call fcn.004031f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0x19
call edi
test eax, eax
jg 0x42cc08
call edi
mov esi, eax
jmp 0x42cc18
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push 0
call edi
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00435510
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
push 0x7c2
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 0x1a
call fcn.0041fce0
push 0x4b1c2c
lea edx, [ebp - 0x514]
push edx
call fcn.00466ffb
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00435f80
cmp esi, 0xffffffff
je 0x42cc70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret