Function at 0x451060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
xor esi, esi
mov dword [esp + 0xc], 1
push edi
test ebp, ebp
jne 0x451095
push str.window
push str.Parameter__s_is_invalid
call fcn.0041b670
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
call fcn.00446800
add esp, 4
test eax, eax
je 0x4510b9
push str.Surface_already_associated_with_window
call fcn.0041b670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str._SDL_WindowRenderData
push ebp
call fcn.00445c10
add esp, 8
test eax, eax
je 0x4510e2
push str.Renderer_already_associated_with_window
call fcn.0041b670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.SDL_RENDER_VSYNC
call fcn.0043b6f0
add esp, 4
test eax, eax
je 0x451119
cmp byte [eax], 0
je 0x451119
push 1
push str.SDL_RENDER_VSYNC
call fcn.0043b670
mov ebx, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x451114
or ebx, 4
jmp 0x45111d
and ebx, 0xfffffffb
jmp 0x45111d
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x45123b
push str.SDL_RENDER_DRIVER
call fcn.0043b6f0
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x45116a
mov edi, 0x56812c
mov eax, dword [edi]
mov dword [esp + 0x14], eax
push dword [eax + 4]
push ecx
call fcn.0041cbc0
add esp, 8
test eax, eax
je 0x4511b0
mov ecx, dword [esp + 0x34]
add edi, 4
cmp edi, 0x568144
jl 0x451145
mov edi, 0x56812c
nop
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
and eax, ebx
cmp eax, ebx
jne 0x45118a
mov eax, dword [ecx]
push ebx
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x4511cb
add edi, 4
cmp edi, 0x568144
jl 0x451170
test esi, esi
jne 0x4511cb
push str.Couldnt_find_matching_render_driver
call fcn.0041b670
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov eax, dword [eax]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x45116a
mov dword [esp + 0x10], 0
test bl, 4
je 0x4511f1
mov eax, dword [esi + 0x7c]
mov dword [esi + 0xd4], 1
test al, 4
jne 0x4511f1
or eax, 4
mov dword [esi + 0xd8], 1
mov dword [esi + 0x7c], eax
push ebp
call fcn.00445cb0
lea ecx, [esp + 0x20]
push ecx
xor ecx, ecx
test eax, eax
cmovns ecx, eax
push ecx
call fcn.004454c0
add esp, 0xc
test eax, eax
jne 0x451218
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x45121d
mov ecx, 0x3c
mov eax, 0x3e8
cdq
idiv ecx
cmp dword [esi + 0x1d4], 0
mov dword [esi + 0xdc], eax
je 0x451281
mov eax, 1
jmp 0x4512a7
cmp eax, 6
jl 0x451259
push 5
push str.index_must_be__1_or_in_the_range_of_0____d
call fcn.0041b670
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [eax*4 + 0x56812c]
push ebx
push ebp
mov eax, dword [eax]
call eax
mov esi, eax
add esp, 8
xor eax, eax
mov dword [esp + 0x10], eax
test esi, esi
jne 0x4511cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.SDL_RENDER_BATCHING
call fcn.0043b6f0
add esp, 4
test eax, eax
je 0x4512a3
push 1
push str.SDL_RENDER_BATCHING
call fcn.0043b670
add esp, 8
jmp 0x4512a7
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1d8], eax
mov dword [esi], 0x57e2e8
mov dword [esi + 0xcc], ebp
call fcn.0044bee0
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x180], 0x3f800000
mov dword [esi + 0x184], 0x3f800000
mov dword [esi + 0x190], 0x3f800000
mov dword [esi + 0x194], 0x3f800000
cmp dword [esi + 0x1a0], 0
jne 0x45133a
cmp dword [esi + 0x1a4], 0
jne 0x45133a
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x1a4], 1
mov dword [esi + 0x1a8], 2
mov dword [esi + 0x1ac], 0
mov dword [esi + 0x1b0], 2
mov dword [esi + 0x1b4], 3
mov eax, dword [esi + 8]
mov dword [esi + 0x1e8], 1
test eax, eax
je 0x4513b3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x4513b3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 0xcc]
call fcn.00446630
movd xmm1, dword [esp + 0x40]
add esp, 0xc
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, dword [esp + 0x18]
movss dword [esi + 0x190], xmm1
movd xmm1, dword [esp + 0x10]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movss dword [esi + 0x194], xmm1
push 1
push str.SDL_MOUSE_RELATIVE_SCALING
call fcn.0043b670
push str.SDL_RENDER_LINE_METHOD
mov dword [esi + 0x198], eax
call fcn.0043b6f0
add esp, 0xc
test eax, eax
je 0x4513fc
push eax
call fcn.0041caa0
add esp, 4
sub eax, 1
je 0x4513fc
sub eax, 1
je 0x4513f5
sub eax, 1
jne 0x4513fc
mov eax, 2
jmp 0x4513fe
mov eax, 1
jmp 0x4513fe
xor eax, eax
push ebp
mov dword [esi + 0x19c], eax
call fcn.00445f20
test al, 0x48
mov eax, 0
push esi
setne al
push str._SDL_WindowRenderData
push ebp
mov dword [esi + 0xd0], eax
call fcn.004477b0
add esp, 0x10
cmp dword [esi], 0x57e2e8
jne 0x451497
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00452410
add esp, 0xc
test eax, eax
js 0x4514a9
xorps xmm0, xmm0
movups xmmword [esi + 0xf8], xmm0
push esi
movd xmm0, dword [esp + 0x38]
cvtdq2pd xmm0, xmm0
movsd qword [esi + 0x108], xmm0
movd xmm0, dword [esp + 0x1c]
cvtdq2pd xmm0, xmm0
movsd qword [esi + 0x110], xmm0
call fcn.00450650
add esp, 4
test eax, eax
js 0x4514a9
cmp dword [esi + 0x1d8], 0
jne 0x4514a9
push esi
call fcn.0044fc50
add esp, 4
jmp 0x4514a9
push str.renderer
push str.Parameter__s_is_invalid
call fcn.0041b670
add esp, 8
push esi
push 0x455a30
call fcn.004311d0
push dword [esi + 0x78]
push str.Created_renderer:__s
push 6
call fcn.0041b920
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret