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

Disassembly:
sub esp, 0x108
or ecx, 0xffffffff
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460588
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x8000027
push 3
push eax
push 1
mov ecx, ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateFileA]
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6f14], eax
jne 0x425067
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
mov dword [0x4e6f20], eax
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x4e6f08], eax
jne 0x425097
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [0x4e6f20]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [0x4e6f14]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4250c6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov ecx, dword [0x4e6f14]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call ebp
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4e6f14], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460580
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x8000027
push 3
push eax
push 1
mov ecx, edx
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6f00], eax
jne 0x425166
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x4e6de8], eax
jne 0x425193
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [0x4e6f00]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4251bd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [0x4e6f00]
push eax
call ebp
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4e6f00], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460578
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x10000027
push 3
push eax
push 1
mov ecx, edx
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6dec], eax
jne 0x425256
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
mov eax, 0xba2e8ba3
mul dword [0x4e6f20]
shr edx, 4
xor eax, eax
mov dword [0x4e6dd4], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460588
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x8000027
push 3
push eax
push 1
mov ecx, edx
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6f18], eax
jne 0x4252f1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
mov dword [0x4e6f1c], eax
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x4e6f0c], eax
jne 0x425321
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [0x4e6f1c]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [0x4e6f18]
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x425350
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov ecx, dword [0x4e6f18]
push ecx
call ebp
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4e6f18], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460580
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x8000027
push 3
push eax
push 1
mov ecx, edx
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6f04], eax
jne 0x4253ea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00451b32
add esp, 4
test eax, eax
mov dword [0x4e6de4], eax
jne 0x425417
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov edx, dword [0x4e6f04]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push eax
push edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x425441
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov eax, dword [0x4e6f04]
push eax
call ebp
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
mov dword [0x4e6f04], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460578
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
repne scasb al, byte es:[edi]
push eax
mov ecx, ebp
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
push 0x10000027
push 3
push eax
push 1
mov ecx, ebp
push 0x80000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6df0], eax
jne 0x4254da
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
mov ecx, dword [0x4e6dd4]
mov eax, 0xba2e8ba3
mul dword [0x4e6f1c]
shr edx, 4
mov dword [0x4e6dd0], edx
add edx, ecx
push edx
call fcn.00424ba0
add esp, 4
test eax, eax
jne 0x4257a5
mov edx, dword [0x4e6dd4]
mov eax, dword [0x4e6dec]
mov ecx, dword [0x4e6de8]
push edx
mov edx, dword [0x4e6f08]
push eax
push ecx
push edx
call fcn.00424de0
add esp, 0x10
test eax, eax
jne 0x4257a5
mov eax, dword [0x4e6dd0]
mov ecx, dword [0x4e6df0]
mov edx, dword [0x4e6de4]
push eax
mov eax, dword [0x4e6f0c]
push ecx
push edx
push eax
call fcn.00424de0
add esp, 0x10
test eax, eax
jne 0x4257a5
mov ebp, dword [esp + 0x124]
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460588
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push eax
push 2
push eax
push eax
mov ecx, edx
push 0x40000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6dc8], eax
jne 0x4255de
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460580
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
push eax
dec edi
rep movsd dword es:[edi], dword [esi]
push eax
push 2
push eax
push eax
mov ecx, edx
push 0x40000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6ddc], eax
jne 0x42565b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
or ecx, 0xffffffff
xor eax, eax
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x460578
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x14]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
cmp eax, 0xffffffff
mov dword [0x4e6de0], eax
jne 0x4256da
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
push 0x400000
mov dword [0x4e6f10], ebp
call fcn.00451b32
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x425703
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret
cmp dword [0x4e6dd4], ebp
mov ebx, dword [0x4e6f08]
jle 0x42574d
push ebx
call fcn.00424c80
mov ecx, dword [0x4e6dc8]
mov edx, dword [0x4e6ddc]
push 0x400000
push edi
push eax
mov eax, dword [0x4e6de0]
push ecx
push edx
push eax
call fcn.00424e40
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4257b0
mov eax, dword [0x4e6dd4]
add ebx, 0x16
inc ebp
cmp ebp, eax
jl 0x425711
mov eax, dword [0x4e6dd0]
mov ebx, dword [0x4e6f0c]
xor ebp, ebp
test eax, eax
jle 0x42579a
push ebx
call fcn.00424c80
mov ecx, dword [0x4e6dc8]
mov edx, dword [0x4e6ddc]
push 0x400000
push edi
push eax
mov eax, dword [0x4e6de0]
push ecx
push edx
push eax
call fcn.00424e40
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4257b0
mov eax, dword [0x4e6dd0]
add ebx, 0x16
inc ebp
cmp ebp, eax
jl 0x42575e
push edi
call fcn.00451be4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push edi
call fcn.00451be4
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret