Function at 0x412b90
Capabilities:
Get file size
Hide graphical window
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x616724]
push ebx
push esi
push edi
mov edi, dword [0x6167a4]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 0x824], 0xffffffff
mov byte [edi + 0x1034], 0
mov word [edi + 0x1036], ax
mov byte [edi + 0x1436], al
mov word [edi + 0x1438], ax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x39f8], eax
cmp eax, 0xffffffff
jne 0x412c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, 0xbba
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 0x3a04]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x3a00], eax
cmp eax, 0x80000000
jae 0x4132ba
cmp dword [esi], 0
ja 0x4132ba
movsx esi, word [ebp + 0x10]
mov eax, 1
mov word [edi + 0x39c0], ax
xor ecx, ecx
xor eax, eax
mov dword [edi + 0x39cc], 0
mov dword [edi + 0x39e8], eax
mov edx, 0x400
mov dword [edi + 0x39ec], eax
xorps xmm0, xmm0
mov dword [edi + 0x39f0], eax
mov dword [edi + 0x39d2], eax
mov word [edi + 0x39f4], ax
mov dword [edi + 0x39d8], eax
mov dword [edi + 0x39dc], eax
mov word [edi + 0x18d8], ax
mov eax, esi
mul edx
movups xmmword [edi + 0x1870], xmm0
movups xmmword [edi + 0x1880], xmm0
mov byte [edi + 0x39d0], 0
mov word [edi + 0x3a1c], 0x101
seto cl
movsd qword [edi + 0x18d0], xmm0
neg ecx
or ecx, eax
push ecx
movups xmmword [edi + 0x1890], xmm0
movups xmmword [edi + 0x18a0], xmm0
movups xmmword [edi + 0x18b0], xmm0
movups xmmword [edi + 0x18c0], xmm0
call fcn.0056654e
add esp, 4
shl esi, 0xa
lea ebx, [edi + 0x3a08]
mov dword [edi + 0x39c8], eax
push 0
push ebx
push esi
push eax
push dword [edi + 0x39f8]
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
call eax
test eax, eax
jne 0x412d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x39c8]
call fcn.00565fd3
add esp, 4
mov eax, 0xbbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x3a00], 0x7a120
mov ecx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], esi
jbe 0x412d83
mov eax, dword [edi + 0x3a18]
push 0x5a9f58
push 0
push 0x801d
push dword [eax]
call ecx
mov eax, dword [edi + 0x3a18]
push 5
push dword [eax]
call esi
cmp dword [ebx], 0
jbe case.default.0x412dae
mov ecx, edi
call fcn.004133a0
movsx ecx, word [edi + 0x3932]
mov dx, ax
dec ecx
mov word [edi + 0x39c2], dx
cmp ecx, 0xb
ja case.default.0x412dae
jmp dword [ecx*4 + 0x4132e0]
mov eax, 5
jmp 0x412e32
mov eax, 9
jmp 0x412e32
mov eax, 8
jmp 0x412e32
cmp dx, 6
je case.default.0x412dae
mov eax, 7
jmp 0x412e32
cmp dx, 1
je case.default.0x412dae
mov eax, 3
jmp 0x412e32
cmp dx, 2
je case.default.0x412dae
mov eax, 4
jmp 0x412e32
cmp dx, 0xb
je case.default.0x412dae
mov eax, 0xc
jmp 0x412e32
mov eax, 0xa
jmp 0x412e32
mov eax, 0xd
jmp 0x412e32
xor eax, eax
cmp dx, 6
setne al
add eax, 0xe
jmp 0x412e32
cmp dx, 0x10
je case.default.0x412dae
mov eax, 0x12
jmp 0x412e32
cmp dx, 0x11
je case.default.0x412dae
mov eax, 0x13
mov word [edi + 0x39c2], ax
push dword [edi + 0x39c8]
call fcn.00565fd3
add esp, 4
push 0x1000
call fcn.0056654e
add esp, 4
mov dword [edi + 0x39c8], eax
push 0
push 0
push 0
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx], 1
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2083d], 0
jne 0x413289
mov eax, dword [edi + 0x3a00]
cmp eax, 0x7a120
jbe 0x412eed
movd xmm1, dword [edi + 0x39d8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [eax*8 + 0x5ea8e0]
divsd xmm1, xmm0
mulsd xmm1, qword [0x5ea660]
cvttsd2si esi, xmm1
cmp esi, dword [ebp - 4]
je 0x412eed
call fcn.0040f410
mov eax, dword [edi + 0x3a18]
push esi
push 0
push 0x801c
push dword [eax]
call dword [ebp + 8]
mov dword [ebp - 4], esi
push 0
push ebx
push 0x1000
push dword [edi + 0x39c8]
push dword [edi + 0x39f8]
call dword [ebp - 0xc]
test eax, eax
je 0x41323d
mov eax, dword [ebx]
movsx ecx, word [edi + 0x39c2]
add dword [edi + 0x39d8], eax
dec ecx
test eax, eax
je 0x413084
cmp ecx, 0x12
ja case.default.0x413094
jmp dword [ecx*4 + 0x413310]
mov ecx, edi
call fcn.00414460
jmp case.default.0x413094
mov ecx, edi
mov byte [edi + 0x3a1c], 0
call fcn.00414460
jmp case.default.0x413094
mov ecx, edi
call fcn.004141e0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
call fcn.004146a0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
mov byte [edi + 0x3a1c], 0
call fcn.004146a0
jmp case.default.0x413094
mov ecx, edi
call fcn.00414d80
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
call fcn.004154c0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [edi + 0x39c8]
mov cl, byte [esi + eax]
movsx eax, word [edi + 0x39d2]
mov byte [edi + 0x39ce], cl
mov byte [eax + edi + 0x3a1e], cl
mov ax, word [edi + 0x39d2]
inc ax
cmp word [edi + 0x39c0], 1
movzx ecx, ax
mov word [edi + 0x39d2], ax
jne 0x413014
mov eax, 0x400
cmp cx, ax
jl 0x413014
push ecx
mov ecx, edi
call fcn.00415a00
xor eax, eax
mov dword [edi + 0x39d2], eax
inc esi
cmp esi, dword [ebx]
jb 0x412fc0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
call fcn.00415cf0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
call fcn.00416350
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
call fcn.004165b0
mov byte [edi + 0x3a1c], 0
jmp case.default.0x413094
mov ecx, edi
mov byte [edi + 0x3a1c], 0
call fcn.004165b0
jmp case.default.0x413094
mov byte [edi + 0x3a1c], 0
mov ecx, edi
call fcn.00416a30
jmp case.default.0x413094
cmp ecx, 0x12
ja case.default.0x413094
movzx eax, byte [ecx + 0x413384]
jmp dword [eax*4 + 0x41335c]
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.004145d0
jmp case.default.0x413094
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.00414380
jmp case.default.0x413094
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.00414ab0
jmp case.default.0x413094
cmp word [edi + 0x39d4], 0
jle case.default.0x413094
movsx eax, word [edi + 0x39d2]
mov ecx, edi
mov byte [eax + edi + 0x3a1e], 0
movzx eax, word [edi + 0x39d4]
push eax
call fcn.00415040
jmp case.default.0x413094
cmp word [edi + 0x39d4], 0
jle case.default.0x413094
movsx eax, word [edi + 0x39d2]
mov ecx, edi
mov byte [eax + edi + 0x3a1e], 0
movzx eax, word [edi + 0x39d4]
push eax
call fcn.004158f0
jmp case.default.0x413094
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.00415a00
jmp case.default.0x413094
movzx eax, word [edi + 0x39d4]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.00416290
jmp case.default.0x413094
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.004164d0
jmp case.default.0x413094
movzx eax, word [edi + 0x39d4]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.004145d0
jmp case.default.0x413094
movzx eax, word [edi + 0x39d2]
test ax, ax
jle case.default.0x413094
push eax
mov ecx, edi
call fcn.004145d0
cmp dword [ebx], 0
jne 0x412e80
cmp dword [edi + 0x3a00], 0x7a120
jbe 0x4131df
mov eax, dword [edi + 0x3a18]
push 0
push dword [eax]
call dword [ebp + 0x10]
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x39c8]
call fcn.00565fd3
xor eax, eax
add esp, 4
mov word [edi + 0x3132], ax
mov word [edi + 0x3532], ax
mov word [edi + 0x41a], ax
cmp dword [edi + 0x39dc], eax
jne 0x41322b
cmp dword [edi + 0x39d8], eax
setne al
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
call fcn.00416be0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x39c8]
call fcn.00565fd3
add esp, 4
cmp dword [edi + 0x3a00], 0x7a120
jbe 0x41327b
mov eax, dword [edi + 0x3a18]
push 0
push dword [eax]
call dword [ebp + 0x10]
mov eax, 0xbbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 0x39c8]
call fcn.00565fd3
add esp, 4
mov eax, 0x270f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push dword [edi + 0x39f8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 0xbbb
mov esp, ebp
pop ebp
ret 0x10