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

Disassembly:
push ebp
mov eax, 0x10034c
lea ebp, [esp - 0x60]
call fcn.0046cf20
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x1002ec], ebx
mov dword [ebp - 0x1002e8], ebx
mov ecx, 0x40000
lea edi, [ebp - 0x1002e4]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x2c], ebx
lea edi, [ebp + 0x30]
stosd dword es:[edi], eax
mov esi, 0x4847f0
lea edi, [ebp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp + 0x24], ebx
lea edi, [ebp + 0x28]
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x40], ebx
stosd dword es:[edi], eax
mov dword [ebp + 0x5c], 1
mov word [ebp - 0xc4], bx
mov word [ebp - 0x88], bx
mov word [ebp - 0x4c], bx
call fcn.0042c3f7
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x6c]
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x48], ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test byte [ebp - 0x10], 0x10
mov eax, 0x2000000
jne 0x4256a2
mov eax, ebx
test byte [ebp - 0xf], 0x40
je 0x4256ab
push 0x20
pop esi
push ebx
or eax, 0x20000000
push eax
push 3
push ebx
push 1
mov edi, 0x80000000
or esi, edi
push esi
mov esi, dword [ebp + 0x6c]
push esi
lea ecx, [ebp + 0x54]
call fcn.00403c6d
cmp dword [ebp + 0x54], ebx
jne 0x4256de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x5c], eax
jmp 0x42591b
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x54]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp + 0x28]
lea eax, [ebp - 0x88]
push dword [ebp + 0x24]
push eax
call fcn.00435e84
add esp, 0xc
push ebx
lea eax, [ebp + 0x40]
push eax
push 0x100000
lea eax, [ebp - 0x1002ec]
push eax
push 8
lea eax, [ebp + 0x2c]
push eax
push 0x90073
push dword [ebp + 0x54]
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x425756
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x5c], eax
jne 0x42591b
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
call fcn.00435e84
add esp, 0xc
jmp 0x42591b
mov eax, dword [ebp - 0x1002ec]
mov dword [ebp + 0x48], eax
mov eax, dword [ebp - 0x1002d4]
mov dword [ebp + 0x34], eax
mov eax, dword [ebp - 0x1002d0]
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x38], eax
call fcn.0040296e
mov ax, word [esi]
push ebx
push ebx
push 3
push ebx
push 3
mov word [ebp + 0x1c], ax
push edi
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x58], ebx
call fcn.00403c6d
mov esi, dword [ebp + 0x58]
cmp esi, ebx
je 0x425913
push ebx
lea eax, [ebp + 0x40]
push eax
push 0x20
lea eax, [ebp - 0xe4]
push eax
push ebx
push ebx
push 0x74004
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4257cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x425913
push 0x7f
pop ecx
mov byte [ebp - 0x2e4], bl
xor eax, eax
lea edi, [ebp - 0x2e3]
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp + 0x40]
push eax
push 0x200
lea eax, [ebp - 0x2e4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [ebp - 0x2d7]
movzx esi, word [ebp - 0x2d9]
push dword [ebp + 0x38]
imul esi, eax
push dword [ebp + 0x34]
xor edi, edi
push edi
push esi
call fcn.0046d500
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435e9e
push edi
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.00435e9e
add esp, 0x18
lea ecx, [ebp + 0x58]
call fcn.0040296e
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x425910
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x5c], ebx
jle 0x425910
lea edi, [ebp - 0x1002dc]
mov eax, dword [ebp + 0x44]
add eax, 0x40
cmp dword [ebp + 0x4c], eax
jge 0x42588a
add dword [ebp + 0x4c], 0x400
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x50]
call fcn.0042c43e
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x44]
mov edx, dword [edi + 0xc]
cmp edx, ebx
lea eax, [eax + ecx*2]
mov dword [ebp + 0x3c], eax
mov eax, dword [edi + 8]
jl 0x4258b1
jg 0x4258a6
cmp eax, ebx
jb 0x4258b1
push edx
push eax
xor eax, eax
push eax
push esi
call fcn.0046d500
cmp dword [ebp + 0x5c], ebx
mov ecx, dword [ebp + 0x3c]
je 0x4258c8
mov word [ecx], 0xd
add ecx, 2
mov word [ecx], 0xa
inc ecx
inc ecx
push str._I64d
push edx
push eax
push ecx
call fcn.00435e5c
add esp, 0x10
push dword [edi + 4]
mov dword [ebp + 0x38], eax
push dword [edi]
xor eax, eax
push eax
push esi
call fcn.0046d500
push edx
push eax
push dword [ebp + 0x38]
call fcn.00435e84
sub eax, dword [ebp + 0x3c]
add esp, 0xc
sar eax, 1
add dword [ebp + 0x44], eax
inc dword [ebp + 0x5c]
mov eax, dword [ebp + 0x5c]
add edi, 0x10
cmp eax, dword [ebp + 0x48]
jl 0x42586d
mov dword [ebp + 0x5c], ebx
lea ecx, [ebp + 0x58]
call fcn.0040296e
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
mov esi, dword [ebp + 0x68]
je 0x425932
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.0042af0d
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x425949
lea ecx, [ebp - 0x88]
push ecx
push eax
mov ecx, esi
call fcn.0042af0d
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
je 0x425960
lea ecx, [ebp - 0xc4]
push ecx
push eax
mov ecx, esi
call fcn.0042af0d
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x425973
push dword [ebp + 0x50]
mov ecx, esi
push eax
call fcn.0042af0d
lea ecx, [ebp + 0x54]
call fcn.0040296e
lea ecx, [ebp + 0x50]
call fcn.0042704a
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret