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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0942
mov eax, dword fs:[0]
push eax
mov eax, 0xdf60
call fcn.00492330
mov eax, dword [0x505ef8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
and dword [ebp - 0xdf54], 0
push 0x505ab0
mov ecx, ebx
mov dword [ebp - 0xdf44], ebx
mov dword [ebp - 0xdf6c], ebx
mov dword [ebp - 0xdf58], edi
call fcn.00408fd9
and dword [ebp - 4], 0
xor eax, eax
inc eax
mov ecx, eax
mov dword [ebp - 0xdf5c], eax
mov dword [ebp - 0xdf54], ecx
call fcn.00424cae
test al, al
jne 0x4246f1
xor eax, eax
push 0xdf20
push eax
mov word [ebp - 0xdf34], ax
lea eax, [ebp - 0xdf32]
push eax
call fcn.004913e0
add esp, 0xc
xor edi, edi
xor esi, esi
xor edx, edx
test edi, edi
je 0x4246ca
test edx, edx
je 0x4246ca
lea eax, [esi + edx]
lea ecx, [esi + edx]
mov ax, word [ebp + eax*2 - 0xe086]
inc ax
add ax, word [ebp + ecx*2 - 0xdf36]
mov word [ebp + ecx*2 - 0xdf34], ax
inc edx
cmp edx, 0xa9
jl 0x4246a2
add esi, 0xa9
inc edi
cmp esi, 0x6f91
jl 0x4246a0
movsx eax, word [ebp - 0x14]
mov edi, dword [ebp - 0xdf58]
mov dword [0x507340], eax
call fcn.00424be7
test al, al
jne 0x424717
push 4
call fcn.0048e498
mov esi, eax
call fcn.0048f9e0
mov dword [esi], eax
push esi
mov dword [0x507340], eax
call fcn.0048e469
pop ecx
pop ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x424760
push 0x4c03a0
mov ecx, edi
call fcn.004093fe
test eax, eax
je 0x424760
lea eax, [ebp - 0xdf3c]
push eax
call fcn.00423ba0
pop ecx
push 3
pop ecx
push dword [eax]
mov dword [ebp - 0xdf54], ecx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004093fe
test eax, eax
je 0x424760
mov byte [ebp - 0xdf5c], 0
mov eax, dword [ebp - 0xdf54]
and dword [ebp - 4], 0
test al, 2
je 0x424785
mov ecx, dword [ebp - 0xdf3c]
and eax, 0xfffffffd
lea ecx, [ecx - 0x10]
mov dword [ebp - 0xdf54], eax
call fcn.00407864
cmp byte [ebp - 0xdf5c], 0
je 0x4247bd
lea eax, [ebp - 0xdf3c]
push eax
call fcn.00423ba0
pop ecx
mov dword [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00402394
mov ecx, dword [ebp - 0xdf3c]
lea ecx, [ecx - 0x10]
call fcn.00407864
jmp 0x424a43
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xdf3c], esi
cmp esi, 0xffffffff
jne 0x4247f7
lea eax, [ebp - 0xdf3c]
push eax
call fcn.00423ba0
pop ecx
mov dword [ebp - 4], 3
jmp 0x4247a2
push 8
lea eax, [ebp - 0xdf64]
push 0
push eax
call fcn.004913e0
add esp, 0xc
lea eax, [ebp - 0xdf64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x42484b
lea eax, [ebp - 0xdf3c]
push eax
call fcn.00423ba0
pop ecx
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00402394
mov ecx, dword [ebp - 0xdf3c]
lea ecx, [ecx - 0x10]
call fcn.00407864
jmp 0x424a3c
cmp dword [ebp - 0xdf60], 0
je 0x42486a
lea eax, [ebp - 0xdf3c]
push eax
call fcn.00423ba0
pop ecx
mov dword [ebp - 4], 5
jmp 0x424830
cmp dword [ebp - 0xdf64], 0
je 0x424a3c
xor eax, eax
mov dword [ebp - 0xdf50], eax
mov dword [ebp - 0xdf4c], eax
mov dword [ebp - 0xdf48], eax
push dword [ebp - 0xdf64]
lea ecx, [ebp - 0xdf50]
mov dword [ebp - 4], 6
call fcn.00429023
mov edi, dword [ebp - 0xdf50]
and dword [ebp - 0xdf68], 0
push 0
lea eax, [ebp - 0xdf68]
push eax
push dword [ebp - 0xdf64]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4248db
lea ecx, [ebp - 0xdf50]
call fcn.00409cac
jmp 0x424a3c
xor eax, eax
mov byte [ebp - 0xdf35], al
mov byte [ebp - 0xdf3d], al
mov dword [ebp - 0xdf58], eax
lea eax, [ebp - 0xdf58]
push eax
lea eax, [ebp - 0xdf3d]
push eax
lea eax, [ebp - 0xdf35]
push eax
push edi
call fcn.00438ff8
mov eax, dword [ebp - 0xdf58]
add esp, 0x10
test eax, eax
jle 0x424933
add eax, edi
push eax
push edi
lea eax, [ebp - 0xdf5c]
push eax
lea ecx, [ebp - 0xdf50]
call fcn.00428bfb
mov edi, dword [ebp - 0xdf50]
cmp byte [ebp - 0xdf3d], 0
mov esi, dword [ebp - 0xdf4c]
je 0x42495f
mov ecx, edi
cmp edi, esi
je 0x42495f
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, esi
jne 0x424948
mov ebx, dword [ebp - 0xdf44]
sub esi, edi
cmp byte [edi + esi - 1], 0
je 0x4249a3
inc esi
push esi
lea ecx, [ebp - 0xdf50]
call fcn.00429023
mov edi, dword [ebp - 0xdf50]
mov byte [edi + esi - 1], 0
cmp byte [ebp - 0xdf35], 0
je 0x4249f8
inc esi
push esi
lea ecx, [ebp - 0xdf50]
call fcn.00429023
mov edi, dword [ebp - 0xdf50]
mov byte [edi + esi - 1], 0
jmp 0x4249c7
cmp byte [ebp - 0xdf35], 0
je 0x4249f8
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0xdf50]
call fcn.00429023
mov edi, dword [ebp - 0xdf50]
mov word [edi + esi], 0
cmp byte [ebp - 0xdf35], 0
je 0x4249f8
push edi
lea ecx, [ebp - 0xdf44]
call fcn.00401b1e
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00402394
mov ecx, dword [ebp - 0xdf44]
lea ecx, [ecx - 0x10]
call fcn.00407864
jmp 0x424a2b
push edi
lea ecx, [ebp - 0xdf44]
call fcn.0041b847
push eax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00402394
mov ecx, dword [ebp - 0xdf44]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.00407864
push ebx
push ebx
call fcn.004387f9
pop ecx
pop ecx
lea ecx, [ebp - 0xdf50]
call fcn.00409cac
mov esi, dword [ebp - 0xdf3c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f354
leave
ret