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

Disassembly:
mov eax, 0x102a8
call fcn.004020e0
push esi
push edi
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x2b1]
mov byte [esp + 0x2b0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x102c4]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push eax
mov byte [esp + 0x28], 0
mov word [esp + 0x29], di
mov byte [esp + 0x2c], 0
mov word [esp + 0x2d], di
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d6b
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffff
ja 0x401d64
cmp eax, 0xffffffff
je 0x401d64
push ebx
push ebp
lea edx, [esp + 0x34]
push edi
push edx
push eax
lea eax, [esp + 0x2c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [esp + 0x6d0]
mov dl, byte [esp + 0x6d1]
mov al, byte [esp + 0x6d2]
mov byte [esp + 0x14], cl
mov cl, byte [esp + 0x6d3]
mov byte [esp + 0x15], dl
mov dl, byte [esp + 0x6d4]
mov byte [esp + 0x18], al
mov al, byte [esp + 0x6d5]
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x6d6]
mov word [esp + 0x11], di
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x6d6]
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x6c9]
mov byte [esp + 0x30], cl
mov ecx, dword [esp + 0x6c8]
push edx
push eax
push ecx
call fcn.00401710
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x6d7]
mov ebx, eax
mov eax, dword [esp + 0x6d6]
push esi
push edx
push eax
call fcn.00401710
mov ecx, dword [esp + 0x6e5]
mov edx, dword [esp + 0x6e4]
push esi
push ecx
push edx
mov edi, eax
call fcn.00401710
mov ecx, dword [esp + 0x6f2]
mov ebp, eax
mov eax, dword [esp + 0x6f3]
push esi
push eax
push ecx
call fcn.00401710
mov dword [esp + 0x60], eax
lea eax, [esp + ebx + 0x2e8]
push 0
push edi
push eax
mov eax, dword [esp + 0x102fc]
lea edx, [esp + 0x50]
push edx
push eax
call fcn.00401790
mov eax, dword [esp + 0x10308]
add esp, 0x44
lea esi, [edi + ebx]
lea edx, [esp + 0x18]
push 0
push ebp
lea ecx, [esp + esi + 0x2c0]
push ecx
push edx
push eax
call fcn.00401790
mov ecx, dword [esp + 0x44]
add esi, ebp
push 1
lea esi, [esp + esi + 0x2d0]
mov eax, dword [esp + 0x102e0]
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
push eax
call fcn.00401790
add esp, 0x28
xor edi, edi
call fcn.004020b5
cdq
mov ecx, 0xff
idiv ecx
inc edi
cmp edi, 0x1b
mov byte [esp + edi + 0x6b7], dl
jl 0x401b7a
xor edx, edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1e], edx
push eax
mov dword [esp + 0x26], edx
mov word [esp + 0x20], 0
mov dword [esp + 0x2a], edx
mov word [esp + 0x2e], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1e]
mov edx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
and edx, 0xffff
add eax, ecx
mov ecx, dword [esp + 0x2a]
add eax, edx
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x26]
mov ecx, dword [esp + 0x22]
and eax, 0xffff
add edx, eax
and ecx, 0xffff
lea edx, [edx + ecx + 0xa]
push edx
call fcn.004020ab
mov ecx, 0x9f
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push 0x280
push esi
push ecx
call fcn.00401760
add esp, 0x14
push 0x281
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
xor esi, esi
call fcn.004020b5
and eax, 0x8000000f
jns 0x401c62
dec eax
or eax, 0xfffffff0
inc eax
mov edx, dword [str.0123456789ABCDEF]
inc esi
cmp esi, 0x20
mov al, byte [eax + edx]
mov byte [esp + esi + 0x37], al
jl 0x401c51
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x26]
mov eax, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x26]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0xb1]
push str._d__d__d__d:_d:_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [ebp]
add esp, 0x20
test al, al
jne 0x401d11
call fcn.00401740
mov byte [esp + 0x6d4], al
mov byte [esp + 0x10], al
call fcn.00401740
mov byte [esp + 0x11], al
mov edx, dword [esp + 0x10]
mov byte [esp + 0x6d5], al
push edx
lea eax, [esp + 0x3c]
push 0x280
push eax
push ebp
call fcn.00401760
mov al, byte [ebp]
add esp, 0x10
test al, al
je 0x401cd2
mov ecx, 0xa0
mov esi, ebp
lea edi, [esp + ebx + 0x2b8]
push ebp
rep movsd dword es:[edi], dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x102bc]
add ebx, 0x280
push 0
lea ecx, [esp + 0x2bc]
push ebx
push ecx
push 0
push edx
call fcn.00401790
add esp, 0x14
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x102a8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x102a8
ret