Function at 0x42d241
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xec
mov eax, 0x5dbd19
call fcn.00593b07
cmp dword [0x6e5fc4], 8
mov esi, 0x6e5fb0
mov eax, esi
mov dword [0x6d2a18], 1
cmovae eax, dword [0x6e5fb0]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 5
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [0x6e5fc4], 8
mov edi, eax
cmovae esi, dword [0x6e5fb0]
push esi
push 0x145
push 0x6308a4
push str.__s__d___OnReadingFile_stat_s_file__s
call fcn.0040a649
add esp, 0x10
cmp edi, 0xffffffff
jne 0x42d2bc
mov dword [0x6d2a18], ebx
jmp 0x42d533
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx - 5]
cmp ecx, 0x3ffb
ja 0x42d525
lea ecx, [ebx + 1]
push ecx
call fcn.00592e78
and dword [ebp - 0xf0], 0
mov esi, eax
pop ecx
push 0
lea eax, [ebp - 0xf0]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d51e
cmp dword [ebp - 0xf0], ebx
jne 0x42d51e
xor eax, eax
mov byte [esi + ebx], al
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], al
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], eax
call fcn.004045aa
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
cmp dword [0x6c85e4], 0x10
lea edx, [ebp - 0x88]
mov ecx, 0x6c85d0
cmovae ecx, dword [0x6c85d0]
push eax
call fcn.004168b0
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00404812
push esi
call fcn.00592945
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x42d385
and dword [0x6d2a18], 0
jmp 0x42d514
push 0x10
pop edi
xor ebx, ebx
lea esi, [ebp - 0x70]
cmp dword [ebp - 0x5c], edi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x70]
mov byte [ebp - 0xe9], bl
cmovae esi, dword [ebp - 0x70]
lea edx, [ebp - 0xe9]
add esi, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], edi
cmovae eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], edi
push eax
cmovae ecx, dword [ebp - 0x70]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.0042d804
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042d610
cmp dword [ebp - 0x60], ebx
je 0x42d4f7
lea eax, [ebp - 0x70]
mov ecx, 0x6e5fa8
push eax
call fcn.0042c6f4
push 0x41
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.005aa3d0
add esp, 0xc
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], edi
lea edx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x70]
push 0x40
call fcn.004234d6
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004045aa
push eax
push str.ck
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
call fcn.004c61bd
lea ecx, [ebp - 0xd0]
call fcn.00430a1f
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, 0x6c85e8
cmp dword [0x6c85fc], edi
push dword [0x6c85f8]
cmovae ecx, dword [0x6c85e8]
push ecx
push ebx
mov ecx, eax
call fcn.004033a9
mov byte [ebp - 0xf4], bl
lea ecx, [ebp - 0x88]
push dword [ebp - 0xf4]
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x74], ebx
call fcn.004046c1
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb8]
call fcn.00403251
pop ecx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.0042d74e
pop ecx
push eax
mov ecx, 0x6e5fcc
call fcn.00409145
lea ecx, [ebp - 0xa0]
call fcn.00404812
lea ecx, [ebp - 0xb8]
call fcn.00404812
lea ecx, [ebp - 0x88]
call fcn.00404812
lea ecx, [ebp - 0xd0]
call fcn.00404812
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], bl
call fcn.00404812
push 0x173
push 0x6308a4
push str.__s__d___OnReadingFile_finish_
mov dword [0x6d2a18], ebx
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00404812
jmp 0x42d533
push esi
call fcn.00592945
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x6d2a18], 0
xor eax, eax
call fcn.00593ab1
ret