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

Disassembly:
push ebp
mov eax, 0x10034c
lea ebp, [esp - 0x60]
call fcn.0046d3f0
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, 0x4847f8
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.0042c809
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 0x4259e9
mov eax, ebx
test byte [ebp - 0xf], 0x40
je 0x4259f2
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.00403ce4
cmp dword [ebp + 0x54], ebx
jne 0x425a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x5c], eax
jmp 0x425c62
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.00436260
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 0x425a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x5c], eax
jne 0x425c62
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
call fcn.00436260
add esp, 0xc
jmp 0x425c62
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.00402a26
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.00403ce4
mov esi, dword [ebp + 0x58]
cmp esi, ebx
je 0x425c5a
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 0x425b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x425c5a
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.0046d9d0
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043627a
push edi
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.0043627a
add esp, 0x18
lea ecx, [ebp + 0x58]
call fcn.00402a26
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x425c57
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x5c], ebx
jle 0x425c57
lea edi, [ebp - 0x1002dc]
mov eax, dword [ebp + 0x44]
add eax, 0x40
cmp dword [ebp + 0x4c], eax
jge 0x425bd1
add dword [ebp + 0x4c], 0x400
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x50]
call fcn.0042c850
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 0x425bf8
jg 0x425bed
cmp eax, ebx
jb 0x425bf8
push edx
push eax
xor eax, eax
push eax
push esi
call fcn.0046d9d0
cmp dword [ebp + 0x5c], ebx
mov ecx, dword [ebp + 0x3c]
je 0x425c0f
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.00436238
add esp, 0x10
push dword [edi + 4]
mov dword [ebp + 0x38], eax
push dword [edi]
xor eax, eax
push eax
push esi
call fcn.0046d9d0
push edx
push eax
push dword [ebp + 0x38]
call fcn.00436260
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 0x425bb4
mov dword [ebp + 0x5c], ebx
lea ecx, [ebp + 0x58]
call fcn.00402a26
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
mov esi, dword [ebp + 0x68]
je 0x425c79
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.0042b2cd
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x425c90
lea ecx, [ebp - 0x88]
push ecx
push eax
mov ecx, esi
call fcn.0042b2cd
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
je 0x425ca7
lea ecx, [ebp - 0xc4]
push ecx
push eax
mov ecx, esi
call fcn.0042b2cd
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x425cba
push dword [ebp + 0x50]
mov ecx, esi
push eax
call fcn.0042b2cd
lea ecx, [ebp + 0x54]
call fcn.00402a26
lea ecx, [ebp + 0x50]
call fcn.00427365
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret