Function at 0x4504d0
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 0x450505
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.00445dd0
add esp, 4
test eax, eax
je 0x450529
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.004451f0
add esp, 8
test eax, eax
je 0x450552
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.0043ace0
add esp, 4
test eax, eax
je 0x450589
cmp byte [eax], 0
je 0x450589
push 1
push str.SDL_RENDER_VSYNC
call fcn.0043aca0
mov ebx, dword [esp + 0x44]
add esp, 8
test eax, eax
je 0x450584
or ebx, 4
jmp 0x45058d
and ebx, 0xfffffffb
jmp 0x45058d
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x4506ab
push str.SDL_RENDER_DRIVER
call fcn.0043ace0
mov ecx, eax
add esp, 4
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x4505da
mov edi, 0x5690e4
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 0x450620
mov ecx, dword [esp + 0x34]
add edi, 4
cmp edi, 0x5690fc
jl 0x4505b5
mov edi, 0x5690e4
nop
mov ecx, dword [edi]
mov eax, dword [ecx + 8]
and eax, ebx
cmp eax, ebx
jne 0x4505fa
mov eax, dword [ecx]
push ebx
push ebp
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x45063b
add edi, 4
cmp edi, 0x5690fc
jl 0x4505e0
test esi, esi
jne 0x45063b
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 0x4505da
mov dword [esp + 0x10], 0
test bl, 4
je 0x450661
mov eax, dword [esi + 0x7c]
mov dword [esi + 0xd4], 1
test al, 4
jne 0x450661
or eax, 4
mov dword [esi + 0xd8], 1
mov dword [esi + 0x7c], eax
push ebp
call fcn.00445290
lea ecx, [esp + 0x20]
push ecx
xor ecx, ecx
test eax, eax
cmovns ecx, eax
push ecx
call fcn.00444aa0
add esp, 0xc
test eax, eax
jne 0x450688
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x45068d
mov ecx, 0x3c
mov eax, 0x3e8
cdq
idiv ecx
cmp dword [esi + 0x1d4], 0
mov dword [esi + 0xdc], eax
je 0x4506f1
mov eax, 1
jmp 0x450717
cmp eax, 6
jl 0x4506c9
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 + 0x5690e4]
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 0x45063b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push str.SDL_RENDER_BATCHING
call fcn.0043ace0
add esp, 4
test eax, eax
je 0x450713
push 1
push str.SDL_RENDER_BATCHING
call fcn.0043aca0
add esp, 8
jmp 0x450717
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1d8], eax
mov dword [esi], 0x57f2fc
mov dword [esi + 0xcc], ebp
call fcn.0044b420
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 0x4507aa
cmp dword [esi + 0x1a4], 0
jne 0x4507aa
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 0x450823
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call eax
add esp, 0xc
test eax, eax
jne 0x450823
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 0xcc]
call fcn.00445c10
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.0043aca0
push str.SDL_RENDER_LINE_METHOD
mov dword [esi + 0x198], eax
call fcn.0043ace0
add esp, 0xc
test eax, eax
je 0x45086c
push eax
call fcn.0041c170
add esp, 4
sub eax, 1
je 0x45086c
sub eax, 1
je 0x450865
sub eax, 1
jne 0x45086c
mov eax, 2
jmp 0x45086e
mov eax, 1
jmp 0x45086e
xor eax, eax
push ebp
mov dword [esi + 0x19c], eax
call fcn.00445500
test al, 0x48
mov eax, 0
push esi
setne al
push str._SDL_WindowRenderData
push ebp
mov dword [esi + 0xd0], eax
call fcn.00446da0
add esp, 0x10
cmp dword [esi], 0x57f2fc
jne 0x450907
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00451880
add esp, 0xc
test eax, eax
js 0x450919
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.0044fac0
add esp, 4
test eax, eax
js 0x450919
cmp dword [esi + 0x1d8], 0
jne 0x450919
push esi
call fcn.0044f0c0
add esp, 4
jmp 0x450919
push str.renderer
push str.Parameter__s_is_invalid
call fcn.0041ad60
add esp, 8
push esi
push 0x454ef0
call fcn.004306d0
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