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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, 0x1f6
lea eax, [ebp - 0x220]
push edi
push eax
push dword [0x417f14]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ebx, ebx
mov eax, 0x80000000
push ebx
push eax
push 3
push ebx
push ebx
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x401a3f
push dword [0x417ed0]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [0x414030], 0x6e
jne 0x401a30
mov eax, dword [0x417f18]
mov esi, 0x417f40
push edi
add eax, 2
push esi
push eax
push dword [0x417f14]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
push ebx
push esi
push dword [0x417f10]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4176d0], 0xffffffec
jmp 0x401c39
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bdd
cmp esi, ebx
je 0x401bdd
mov eax, 0x3030303
push esi
push 0x40
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x1020304
mov dword [ebp - 0x1c], 0x5060708
mov dword [ebp - 0x18], 0x13cbd124
mov dword [ebp - 0x14], 0x397b9063
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x417f0c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x401af2
push dword [0x417f0c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x417ed0]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [0x414030], 0x6e
jne 0x401ae3
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x30
push ebx
push str.Memory_allocation_error__
push dword [0x417f10]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4176d0], 0xffffffea
jmp 0x401c39
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x28]
push ebx
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esi - 0x18]
mov dword [ebp - 4], ebx
cmp eax, ebx
jbe 0x401b4f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x24]
push 0x18
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
call fcn.00409eb0
add esp, 0xc
test eax, eax
je 0x401b42
inc dword [ebp - 4]
lea eax, [esi - 0x18]
cmp dword [ebp - 4], eax
jb 0x401b1a
jmp 0x401b4f
mov eax, dword [ebp - 4]
add eax, 0x18
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x401bc3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x417f0c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x417f0c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [0x417ed0]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [0x414030], 0x6e
jne 0x401bb7
mov eax, dword [0x417f18]
mov esi, 0x417f40
push edi
inc eax
push esi
push eax
push dword [0x417f14]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
push ebx
push esi
push dword [0x417f10]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4176d0], 0xffffffe9
jmp 0x401c39
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub esi, eax
mov dword [ecx], esi
mov ecx, dword [ebp - 0xc]
add eax, ecx
jmp 0x401c3b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x417ed0]
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [0x414030], 0x6e
jne 0x401c2f
mov eax, dword [0x417f18]
mov esi, 0x417f40
push edi
add eax, 3
push esi
push eax
push dword [0x417f14]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
call dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
push ebx
push esi
push dword [0x417f10]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x4176d0], 0xffffffeb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret