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

Disassembly:
push 0xec
mov eax, 0x5da229
call fcn.00592017
cmp dword [0x6e2f74], 8
mov esi, 0x6e2f60
mov eax, esi
mov dword [0x6cf9c8], 1
cmovae eax, dword [0x6e2f60]
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 [0x6e2f74], 8
mov edi, eax
cmovae esi, dword [0x6e2f60]
push esi
push 0x145
push 0x62e8ac
push str.__s__d___OnReadingFile_stat_s_file__s
call fcn.0040a649
add esp, 0x10
cmp edi, 0xffffffff
jne 0x42d2b9
mov dword [0x6cf9c8], ebx
jmp 0x42d530
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [ebx - 5]
cmp ecx, 0x3ffb
ja 0x42d522
lea ecx, [ebx + 1]
push ecx
call fcn.00591388
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 0x42d51b
cmp dword [ebp - 0xf0], ebx
jne 0x42d51b
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 [0x6c55e4], 0x10
lea edx, [ebp - 0x88]
mov ecx, 0x6c55d0
cmovae ecx, dword [0x6c55d0]
push eax
call fcn.004168ad
pop ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
mov bl, al
call fcn.00404812
push esi
call fcn.00590e55
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x42d382
and dword [0x6cf9c8], 0
jmp 0x42d511
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.0042d801
pop ecx
pop ecx
push esi
push dword [eax]
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0x70]
call fcn.0042d60d
cmp dword [ebp - 0x60], ebx
je 0x42d4f4
lea eax, [ebp - 0x70]
mov ecx, 0x6e2f58
push eax
call fcn.0042c6f1
push 0x41
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.005a88e0
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.004234d3
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.004c46f5
lea ecx, [ebp - 0xd0]
call fcn.00430a1c
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, 0x6c55e8
cmp dword [0x6c55fc], edi
push dword [0x6c55f8]
cmovae ecx, dword [0x6c55e8]
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.0042d74b
pop ecx
push eax
mov ecx, 0x6e2f7c
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 0x62e8ac
push str.__s__d___OnReadingFile_finish_
mov dword [0x6cf9c8], ebx
call fcn.0040a649
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.00404812
jmp 0x42d530
push esi
call fcn.00590e55
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x6cf9c8], 0
xor eax, eax
call fcn.00591fc1
ret