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

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
mov ecx, 5
mov esi, 0x45f11c
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x15c]
mov ecx, dword [esi*4 + 0x45ff14]
cmp ecx, 0xffffffff
lea eax, [esi*4 + 0x45ff14]
mov dword [esp + 0x20], eax
je 0x417bb1
push esi
call fcn.00417ad0
add esp, 4
mov ebp, dword [esp + 0x164]
push 0
lea eax, [esi*4 + 0x466c98]
push 1
mov dword [esp + 0x18], eax
mov dword [eax], 0
lea eax, [esi*4 + 0x466d18]
push 0x80000000
push ebp
mov dword [esp + 0x24], eax
mov dword [eax], 0
call fcn.00416a00
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x417c92
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x417fd1
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4181fe
push 0
push 1
push 0x80000000
push ebp
call fcn.00416a00
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x417bf7
mov esi, dword [esp + 0x15c]
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
push eax
mov dword [esi*4 + 0x466c58], eax
call fcn.00451b32
mov edx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x417d50
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x417e0e
mov ecx, dword [esp + 0x15c]
mov edx, dword [ecx*4 + 0x466c58]
push edx
call fcn.00451b32
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x417cbc
mov esi, dword [esp + 0x15c]
mov eax, dword [esi*4 + 0x466c58]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx]
push eax
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x417e34
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x417e22
mov edx, dword [esp + 0x15c]
mov eax, dword [edx*4 + 0x466c58]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push eax
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x417d75
mov esi, dword [esp + 0x15c]
jmp 0x417e34
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
jmp 0x4181ef
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebp, dword [esp + 0x168]
test ebp, ebp
je 0x4180d0
push 0
push 1
push 0x80000000
push ebp
call fcn.00416a00
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
jne 0x417f02
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x417fbc
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x417fe1
push 0
push 1
push 0x80000000
push ebp
call fcn.00416a00
mov ebx, eax
add esp, 0x10
cmp ebx, 0xffffffff
je 0x417e67
mov esi, dword [esp + 0x15c]
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
lea edi, [esi*4 + 0x466cd8]
push eax
mov dword [esp + 0x1c], edi
mov dword [edi], eax
call fcn.00451b32
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [ecx], eax
jne 0x418016
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x417fed
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.00451b32
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x417f32
mov esi, dword [esp + 0x15c]
mov edi, dword [esp + 0x18]
jmp 0x418016
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
push ecx
call fcn.00451be4
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push edx
jmp 0x4181f0
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push edx
call fcn.00451be4
add esp, 4
push ebx
mov dword [esi], 0
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx]
push ecx
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4180c9
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 + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x418195
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push 0
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push eax
push edx
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x418036
mov esi, dword [esp + 0x15c]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [esp + 0x160]
mov edx, esi
shl edx, 6
add edx, esi
lea ebp, [edx*4 + 0x4f55e0]
push ebp
push 1
push 0x80000000
push ebx
call fcn.00416a00
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ecx], eax
jne 0x417fd1
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edx, [esp + 0x3c]
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
lea edi, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
lea edx, [esp + 0x3c]
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x3c]
and ecx, 3
push 0x35
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4181d0
push ebp
push 1
push 0x80000000
push ebx
call fcn.00416a00
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ecx], eax
je 0x418105
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push eax
call fcn.00451be4
mov dword [esi], 0
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
push ecx
call fcn.00451be4
add esp, 8
pop edi
mov dword [esi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret
mov esi, dword [esp + 0x10]
mov edx, dword [esi]
push edx
call fcn.00451be4
mov dword [esi], 0
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x4181fe
push eax
call fcn.00451be4
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x148
ret