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

Disassembly:
push ebp
mov eax, 0x10034c
lea ebp, [esp - 0x60]
call fcn.00467bd0
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, 0x47e510
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.0042aeb8
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 0x424d7b
mov eax, ebx
test byte [ebp - 0xf], 0x40
je 0x424d84
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.00403b3c
cmp dword [ebp + 0x54], ebx
jne 0x424db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x5c], eax
jmp 0x424ff4
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.00434504
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 0x424e2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x5c], eax
jne 0x424ff4
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
call fcn.00434504
add esp, 0xc
jmp 0x424ff4
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.004029f8
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.00403b3c
mov esi, dword [ebp + 0x58]
cmp esi, ebx
je 0x424fec
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 0x424ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x424fec
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.00467ab0
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043451e
push edi
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.0043451e
add esp, 0x18
lea ecx, [ebp + 0x58]
call fcn.004029f8
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x424fe9
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x5c], ebx
jle 0x424fe9
lea edi, [ebp - 0x1002dc]
mov eax, dword [ebp + 0x44]
add eax, 0x40
cmp dword [ebp + 0x4c], eax
jge 0x424f63
add dword [ebp + 0x4c], 0x400
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x50]
call fcn.0042aeff
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 0x424f8a
jg 0x424f7f
cmp eax, ebx
jb 0x424f8a
push edx
push eax
xor eax, eax
push eax
push esi
call fcn.00467ab0
cmp dword [ebp + 0x5c], ebx
mov ecx, dword [ebp + 0x3c]
je 0x424fa1
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.004344dc
add esp, 0x10
push dword [edi + 4]
mov dword [ebp + 0x38], eax
push dword [edi]
xor eax, eax
push eax
push esi
call fcn.00467ab0
push edx
push eax
push dword [ebp + 0x38]
call fcn.00434504
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 0x424f46
mov dword [ebp + 0x5c], ebx
lea ecx, [ebp + 0x58]
call fcn.004029f8
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
mov esi, dword [ebp + 0x68]
je 0x42500b
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00429dbf
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x425022
lea ecx, [ebp - 0x88]
push ecx
push eax
mov ecx, esi
call fcn.00429dbf
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
je 0x425039
lea ecx, [ebp - 0xc4]
push ecx
push eax
mov ecx, esi
call fcn.00429dbf
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42504c
push dword [ebp + 0x50]
mov ecx, esi
push eax
call fcn.00429dbf
lea ecx, [ebp + 0x54]
call fcn.004029f8
lea ecx, [ebp + 0x50]
call fcn.0042602e
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret