Function at 0x450490
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 0x4504c5
push str.window
push str.Parameter__s_is_invalid
call fcn.0041ad60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
call fcn.00445d80
add esp, 4
test eax, eax
je 0x4504e9
push str.Surface_already_associated_with_window
call fcn.0041ad60
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.004451a0
add esp, 8
test eax, eax
je 0x450512
push str.Renderer_already_associated_with_window
call fcn.0041ad60
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.0043ac90
add esp, 4
test eax, eax
je 0x450549
cmp byte [eax], 0
je 0x450549
push 1
push str.SDL_RENDER_VSYNC
call fcn.0043ac50
mov ebx, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x450544
or ebx, 4
jmp 0x45054d
and ebx, 0xfffffffb
jmp 0x45054d
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x45066b
push str.SDL_RENDER_DRIVER
call fcn.0043ac90
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x45059a
mov edi, 0x5690d4
mov eax, dword [edi]
mov dword [esp + 0x14], eax
push dword [eax + 4]
push ecx
call fcn.0041c290
add esp, 8
test eax, eax
je 0x4505e0
mov ecx, dword [esp + 0x34]
add edi, 4
cmp edi, 0x5690ec
jl 0x450575
mov edi, 0x5690d4
nop
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
and eax, ebx
cmp eax, ebx
jne 0x4505ba
mov eax, dword [ecx]
push ebx
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x4505fb
add edi, 4
cmp edi, 0x5690ec
jl 0x4505a0
test esi, esi
jne 0x4505fb
push str.Couldnt_find_matching_render_driver
call fcn.0041ad60
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 0x45059a
mov dword [esp + 0x10], 0
test bl, 4
je 0x450621
mov eax, dword [esi + 0x7c]
mov dword [esi + 0xd4], 1
test al, 4
jne 0x450621
or eax, 4
mov dword [esi + 0xd8], 1
mov dword [esi + 0x7c], eax
push ebp
call fcn.00445240
lea ecx, [esp + 0x20]
push ecx
xor ecx, ecx
test eax, eax
cmovns ecx, eax
push ecx
call fcn.00444a50
add esp, 0xc
test eax, eax
jne 0x450648
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x45064d
mov ecx, 0x3c
mov eax, 0x3e8
cdq
idiv ecx
cmp dword [esi + 0x1d4], 0
mov dword [esi + 0xdc], eax
je 0x4506b1
mov eax, 1
jmp 0x4506d7
cmp eax, 6
jl 0x450689
push 5
push str.index_must_be__1_or_in_the_range_of_0____d
call fcn.0041ad60
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [eax*4 + 0x5690d4]
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 0x4505fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.SDL_RENDER_BATCHING
call fcn.0043ac90
add esp, 4
test eax, eax
je 0x4506d3
push 1
push str.SDL_RENDER_BATCHING
call fcn.0043ac50
add esp, 8
jmp 0x4506d7
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1d8], eax
mov dword [esi], 0x57f2ec
mov dword [esi + 0xcc], ebp
call fcn.0044b3e0
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 0x45076a
cmp dword [esi + 0x1a4], 0
jne 0x45076a
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 0x4507e3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x4507e3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 0xcc]
call fcn.00445bc0
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.0043ac50
push str.SDL_RENDER_LINE_METHOD
mov dword [esi + 0x198], eax
call fcn.0043ac90
add esp, 0xc
test eax, eax
je 0x45082c
push eax
call fcn.0041c170
add esp, 4
sub eax, 1
je 0x45082c
sub eax, 1
je 0x450825
sub eax, 1
jne 0x45082c
mov eax, 2
jmp 0x45082e
mov eax, 1
jmp 0x45082e
xor eax, eax
push ebp
mov dword [esi + 0x19c], eax
call fcn.004454b0
test al, 0x48
mov eax, 0
push esi
setne al
push str._SDL_WindowRenderData
push ebp
mov dword [esi + 0xd0], eax
call fcn.00446d50
add esp, 0x10
cmp dword [esi], 0x57f2ec
jne 0x4508c7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00451840
add esp, 0xc
test eax, eax
js 0x4508d9
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.0044fa80
add esp, 4
test eax, eax
js 0x4508d9
cmp dword [esi + 0x1d8], 0
jne 0x4508d9
push esi
call fcn.0044f080
add esp, 4
jmp 0x4508d9
push str.renderer
push str.Parameter__s_is_invalid
call fcn.0041ad60
add esp, 8
push esi
push 0x454ec0
call fcn.00430690
push dword [esi + 0x78]
push str.Created_renderer:__s
push 6
call fcn.0041b010
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret