Function at 0x40128c
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1c0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.nome_app
mov qword [rbp - 8], rax
lea rax, [0x00402098]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.0040102c
cmp eax, 0
je 0x4012f3
lea rax, str.Errore_durante_lestrazione_della_DLL._n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov eax, 1
jmp 0x4016bd
lea rax, str.APPDATA
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_getenv
mov rcx, qword [rbp - 0x10]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea rax, [0x004020c9]
mov r8, rax
movabs rax, 0x104
mov r11, rax
lea rax, [rbp - 0x114]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__snprintf
lea rax, [rbp - 0x114]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
lea rax, [rbp - 0x114]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LoadLibraryA
mov qword [rbp - 0x120], rax
mov rax, qword [rbp - 0x120]
cmp rax, 0
je 0x401387
jmp 0x4013b5
lea rax, str.Errore_nel_caricare_SDL2.dll._n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov eax, 1
jmp 0x4016bd
lea rax, [0x004020f9]
mov r11, rax
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x128], rax
lea rax, [0x00402102]
mov r11, rax
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x130], rax
lea rax, [0x00402113]
mov r11, rax
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x138], rax
lea rax, [0x00402125]
mov r11, rax
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x140], rax
lea rax, [0x0040212e]
mov r11, rax
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetProcAddress
mov qword [rbp - 0x148], rax
mov rax, qword [rbp - 0x128]
cmp rax, 0
je 0x4014cd
mov rax, qword [rbp - 0x130]
cmp rax, 0
je 0x4014cd
mov rax, qword [rbp - 0x138]
cmp rax, 0
je 0x4014cd
mov rax, qword [rbp - 0x140]
cmp rax, 0
je 0x4014cd
mov rax, qword [rbp - 0x148]
cmp rax, 0
je 0x4014cd
jmp 0x40150d
lea rax, str.Errore_nel_recuperare_le_funzioni_SDL._n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov eax, 1
jmp 0x4016bd
mov eax, 0x20
mov r10, rax
mov rcx, r10
mov r11, qword [rbp - 0x128]
call r11
cmp eax, 0
jge 0x40156b
lea rax, str.Errore_nellinizializzare_SDL._n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov eax, 1
jmp 0x4016bd
mov eax, 4
mov qword [rsp + 0x28], rax
mov eax, 0x1e0
mov qword [rsp + 0x20], rax
mov eax, 0x280
mov r9, rax
mov eax, 0x1fff0000
mov r8, rax
mov eax, 0x1fff0000
mov r11, rax
lea rax, str.Finestra_SDL2
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [rbp - 0x130]
call r11
mov qword [rbp - 0x150], rax
mov rax, qword [rbp - 0x150]
cmp rax, 0
je 0x4015ce
jmp 0x401618
lea rax, str.Errore_nel_creare_la_finestra._n
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll_printf
mov r11, qword [rbp - 0x140]
call r11
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov eax, 1
jmp 0x4016bd
mov eax, 1
mov dword [rbp - 0x18c], eax
mov eax, dword [rbp - 0x18c]
cmp eax, 0
je 0x401673
lea rax, [rbp - 0x188]
mov r10, rax
mov rcx, r10
mov r11, qword [rbp - 0x148]
call r11
cmp eax, 0
je 0x401671
mov eax, dword [rbp - 0x188]
cmp eax, 0x100
jne 0x40166f
mov eax, 0
mov dword [rbp - 0x18c], eax
jmp 0x401632
jmp 0x401623
mov rax, qword [rbp - 0x150]
mov r10, rax
mov rcx, r10
mov r11, qword [rbp - 0x138]
call r11
mov r11, qword [rbp - 0x140]
call r11
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov rax, qword [rbp - 0x120]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_FreeLibrary
mov eax, 0
leave
ret