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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
call fcn.0040a3f0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push 1
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esi, eax
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x18], 0
jg 0x40352d
jmp 0x4038a7
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403560
jmp 0x4038a7
cmp dword [ebp - 0x18], 0
jg 0x403577
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00407832
add esp, 4
jmp 0x4038a7
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
lea ecx, [eax + eax + 2]
push ecx
call fcn.0040790f
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x403889
push 0xa
mov eax, dword [ebp - 4]
push eax
call fcn.00408363
add esp, 8
mov dword [ebp - 0x10], eax
push 0x3d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00408363
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4035fc
mov edx, dword [ebp - 0x10]
mov word [edx], 0
cmp dword [ebp - 0x14], 0
je 0x40386c
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
mov word [ecx], 0
push 0x422990
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x403666
mov eax, dword [ebp - 0x24]
push eax
call fcn.0040a3b9
add esp, 4
mov dword [0x42297c], eax
cmp dword [0x4241dc], 0
je 0x403661
mov ecx, dword [0x42297c]
push ecx
push 0
push 0x406
mov edx, dword [0x4241dc]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40386c
push 0x4229a0
mov eax, dword [ebp - 4]
push eax
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x4036b4
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0040a3b9
add esp, 4
mov dword [0x424204], eax
cmp dword [0x4241dc], 0
je 0x4036af
push 0
mov edx, dword [0x424204]
push edx
push 0x402
mov eax, dword [0x4241dc]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40386c
push 0x4229ac
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x403729
push 0x4241e4
mov edx, dword [ebp - 0x24]
push edx
call fcn.004038b0
add esp, 8
cmp dword [0x4241dc], 0
je 0x403724
mov dword [ebp - 0x28], 0x34
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [0x4241f0]
sub ecx, dword [0x4241e8]
push ecx
mov edx, dword [0x4241ec]
sub edx, dword [0x4241e4]
push edx
mov eax, dword [0x4241e8]
push eax
mov ecx, dword [0x4241e4]
push ecx
push 0
mov edx, dword [0x4241dc]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40386c
push 0x4229c8
mov eax, dword [ebp - 4]
push eax
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x40379d
push 0x4241f4
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004038b0
add esp, 8
cmp dword [0x4241d8], 0
je 0x403798
mov dword [ebp - 0x2c], 0x34
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [0x424200]
sub eax, dword [0x4241f8]
push eax
mov ecx, dword [0x4241fc]
sub ecx, dword [0x4241f4]
push ecx
mov edx, dword [0x4241f8]
push edx
mov eax, dword [0x4241f4]
push eax
push 0
mov ecx, dword [0x4241d8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x40386c
push 0x4229e0
mov edx, dword [ebp - 4]
push edx
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x403806
push 0x4241e0
mov eax, dword [ebp - 0x24]
push eax
call fcn.004039b0
add esp, 8
cmp dword [0x4241d8], 0
je 0x403804
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [0x4241d8]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [0x4241c4]
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [0x4241c4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40386c
push 0x4229f8
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a3be
add esp, 8
test eax, eax
jne 0x40386c
cmp dword [0x4241d8], 0
je 0x40386c
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x4241d8]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [0x4241d8]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [0x4241c4]
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [0x4241c4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [ebp - 0x10], 0
je 0x40387d
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x403884
mov dword [ebp - 4], 0
jmp 0x4035c2
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00407832
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4038a7
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407832
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret