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

Disassembly:
push ebp
mov eax, 0x10034c
lea ebp, [esp - 0x60]
call fcn.00462ba0
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, 0x479160
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.0042460b
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 0x423249
mov eax, ebx
test byte [ebp - 0xf], 0x40
je 0x423252
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.00403993
cmp dword [ebp + 0x54], ebx
jne 0x423285
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x5c], eax
jmp 0x4234c2
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.00434163
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 0x4232fd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x5c], eax
jne 0x4234c2
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
call fcn.00434163
add esp, 0xc
jmp 0x4234c2
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.00402905
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.00403993
mov esi, dword [ebp + 0x58]
cmp esi, ebx
je 0x4234ba
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 0x423374
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4234ba
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.00462a80
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043417d
push edi
lea eax, [ebp - 0xc4]
push esi
push eax
call fcn.0043417d
add esp, 0x18
lea ecx, [ebp + 0x58]
call fcn.00402905
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x4234b7
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x5c], ebx
jle 0x4234b7
lea edi, [ebp - 0x1002dc]
mov eax, dword [ebp + 0x44]
add eax, 0x40
cmp dword [ebp + 0x4c], eax
jge 0x423431
add dword [ebp + 0x4c], 0x400
push dword [ebp + 0x4c]
lea ecx, [ebp + 0x50]
call fcn.00424699
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 0x423458
jg 0x42344d
cmp eax, ebx
jb 0x423458
push edx
push eax
xor eax, eax
push eax
push esi
call fcn.00462a80
cmp dword [ebp + 0x5c], ebx
mov ecx, dword [ebp + 0x3c]
je 0x42346f
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.0043413c
add esp, 0x10
push dword [edi + 4]
mov dword [ebp + 0x38], eax
push dword [edi]
xor eax, eax
push eax
push esi
call fcn.00462a80
push edx
push eax
push dword [ebp + 0x38]
call fcn.00434163
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 0x423414
mov dword [ebp + 0x5c], ebx
lea ecx, [ebp + 0x58]
call fcn.00402905
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
mov esi, dword [ebp + 0x68]
je 0x4234d9
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, esi
call fcn.00428e1b
mov eax, dword [ebp + 0x74]
cmp word [eax], bx
je 0x4234f0
lea ecx, [ebp - 0x88]
push ecx
push eax
mov ecx, esi
call fcn.00428e1b
mov eax, dword [ebp + 0x78]
cmp word [eax], bx
je 0x423507
lea ecx, [ebp - 0xc4]
push ecx
push eax
mov ecx, esi
call fcn.00428e1b
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42351a
push dword [ebp + 0x50]
mov ecx, esi
push eax
call fcn.00428e1b
lea ecx, [ebp + 0x54]
call fcn.00402905
lea ecx, [ebp + 0x50]
call fcn.00424686
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret