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

Disassembly:
push 0xec
mov eax, 0x5e4391
call fcn.0059bbd7
cmp dword [0x6f2058], 8
mov esi, 0x6f2044
mov eax, esi
mov dword [0x6dea88], 1
cmovae eax, dword [0x6f2044]
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 [0x6f2058], 8
mov edi, eax
cmovae esi, dword [0x6f2044]
push esi
push 0x145
push 0x63a674
push str.__s__d___OnReadingFile_stat_s_file__s
call fcn.0040a649
add esp, 0x10
cmp edi, 0xffffffff
jne 0x432315
mov dword [0x6dea88], ebx
jmp 0x43258c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx - 5]
cmp ecx, 0x3ffb
ja 0x43257e
lea ecx, [ebx + 1]
push ecx
call fcn.0059af42
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 0x432577
cmp dword [ebp - 0xf0], ebx
jne 0x432577
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 [0x6d45e4], 0x10
lea edx, [ebp - 0x88]
mov ecx, 0x6d45d0
cmovae ecx, dword [0x6d45d0]
push eax
call fcn.00416ad9
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00404812
push esi
call fcn.0059aa0f
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4323de
and dword [0x6dea88], 0
jmp 0x43256d
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.0043285d
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x70]
call fcn.00432669
cmp dword [ebp - 0x60], ebx
je 0x432550
lea eax, [ebp - 0x70]
mov ecx, 0x6f203c
push eax
call fcn.0043174d
push 0x41
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.005b24a0
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.00423738
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.004cde44
lea ecx, [ebp - 0xd0]
call fcn.00435a2c
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, 0x6d45e8
cmp dword [0x6d45fc], edi
push dword [0x6d45f8]
cmovae ecx, dword [0x6d45e8]
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.004327a7
pop ecx
push eax
mov ecx, 0x6f2060
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 0x63a674
push str.__s__d___OnReadingFile_finish_
mov dword [0x6dea88], ebx
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00404812
jmp 0x43258c
push esi
call fcn.0059aa0f
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x6dea88], 0
xor eax, eax
call fcn.0059bb81
ret