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

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x9c
lea ebx, [esp + 0x58]
mov dword [esp], ebx
call sub.SDL2.dll_SDL_PollEvent
test eax, eax
je 0x544fec
mov eax, dword [esp + 0x58]
cmp eax, 0x401
je 0x545190
ja 0x545000
cmp eax, 0x301
je 0x545180
ja 0x545050
cmp eax, 0x200
je 0x545260
cmp eax, 0x300
jne 0x545033
movzx eax, word [esp + 0x70]
and ax, 0x3c3
lea edx, [eax - 0x100]
test dx, 0xfeff
jne 0x545350
mov eax, dword [esp + 0x6c]
cmp eax, 0xd
je 0x545570
cmp eax, 0x4000003d
je 0x545464
cmp eax, 9
je 0x5455c8
call sub.SDL2.dll_SDL_IsTextInputActive
test eax, eax
je 0x544fb0
mov eax, dword [esp + 0x6c]
sub eax, 0x20
cmp eax, 0x5a
jbe 0x544f10
mov ecx, 0x5bb0a0
call fcn.0049be40
mov ecx, 0x5ba360
call fcn.0049a4a0
mov ecx, 0x5bb0a0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0049b6e0
sub esp, 8
mov dword [esp], ebx
call sub.SDL2.dll_SDL_PollEvent
test eax, eax
jne 0x544f20
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x700
je 0x545308
jbe 0x545140
cmp eax, 0x802
je 0x5452b8
cmp eax, 0x2000
jne 0x544f10
mov byte [0x5b9064], 1
jmp 0x544f10
cmp eax, 0x100
jne 0x544f10
mov byte [0x5b9063], 1
jmp 0x544f10
cmp eax, 0x303
je 0x545320
cmp eax, 0x400
jne 0x544f10
mov ecx, dword [esi + 0x534]
test ecx, ecx
jne 0x5453a0
cmp byte [0x5b31d3], 0
je 0x5454d8
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov edx, dword [esi + 0x418]
test edx, edx
jne 0x5450a1
mov eax, dword [esi + 0x414]
test eax, eax
je 0x545122
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.SDL2.dll_SDL_GetMouseState
mov eax, dword [esi + 0x42c]
test eax, eax
je 0x545458
mov edx, dword [esi + 0x41c]
mov eax, dword [esp + 0x20]
cmp edx, eax
jg 0x5453c8
mov edx, dword [esi + 0x424]
xor ecx, ecx
cmp eax, edx
jle 0x5450f0
mov dword [esp + 0x20], edx
mov edi, dword [0x5bb340]
mov ecx, 1
mov eax, dword [esi + 0x420]
mov edx, dword [esp + 0x24]
cmp eax, edx
jle 0x5453e9
mov dword [esp + 0x24], eax
mov ebp, dword [0x5bb33c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.SDL2.dll_SDL_WarpMouseInWindow
mov dword [esp + 4], ebp
mov ecx, 0x5bb0a0
mov dword [esp], edi
call fcn.0049bd60
sub esp, 8
jmp 0x544f10
cmp eax, 0x402
je 0x5451e8
cmp eax, 0x403
jne 0x544f10
mov eax, dword [esp + 0x6c]
mov ecx, 0x5bb0a0
neg eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.0049bd10
sub esp, 8
jmp 0x544f10
mov ecx, 0x5bb0a0
call fcn.0049be40
jmp 0x544f10
movzx eax, byte [esp + 0x68]
cmp al, 1
je 0x545410
cmp al, 3
je 0x5455a0
mov eax, dword [esi + 0x414]
test eax, eax
jne 0x544f10
mov dword [esi + 0x414], 1
mov eax, dword [esi + 0x418]
test eax, eax
jne 0x544f10
mov eax, dword [esi]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.SDL2.dll_SDL_SetWindowGrab
jmp 0x544f10
movzx eax, byte [esp + 0x68]
cmp al, 1
je 0x545430
cmp al, 3
je 0x545580
mov eax, dword [esi + 0x414]
test eax, eax
je 0x544f10
mov dword [esi + 0x414], 0
mov ebp, dword [esi + 0x418]
test ebp, ebp
jne 0x544f10
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.SDL2.dll_SDL_SetWindowGrab
mov edi, dword [esi + 0x534]
test edi, edi
je 0x544f10
mov dword [esp], 0
call sub.SDL2.dll_SDL_SetRelativeMouseMode
mov dword [esi + 0x534], 0
jmp 0x544f10
movzx ecx, byte [esp + 0x64]
cmp cl, 0xd
ja 0x544f10
mov eax, 1
shl eax, cl
test eax, 0x2080
jne 0x5454ad
test ah, 0x12
jne 0x545475
test al, 0x28
je 0x544f10
mov byte [0x5b9064], 1
mov edi, dword [esi]
test edi, edi
je 0x5452a5
mov ecx, esi
call fcn.00544dc0
mov dword [esi + 0x42c], 0
jmp 0x544f10
cmp word [esp + 0x78], 2
jne 0x544f10
fld dword [esp + 0x74]
mov ecx, 0x5bb0a0
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp qword [esp + 0x48]
fld dword [esp + 0x70]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fstp qword [esp + 0x50]
fld qword [esp + 0x48]
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.0049bc30
sub esp, 0x10
jmp 0x544f10
mov ecx, 0x5bb0a0
call fcn.0049bd30
jmp 0x544f10
mov ecx, 0x5ba360
call fcn.0049a4a0
mov ecx, 0x5bb0a0
mov dword [esp + 4], eax
lea eax, [esp + 0x64]
mov dword [esp], eax
call fcn.0049df20
sub esp, 8
jmp 0x544f10
sub eax, 0x40
test ax, 0xffbf
jne 0x544f97
mov eax, dword [esp + 0x6c]
cmp eax, 0x67
je 0x5455e1
cmp eax, 0x6d
jne 0x544f97
mov ecx, dword [esi + 0x534]
test ecx, ecx
je 0x545615
mov dword [esp], 0
call sub.SDL2.dll_SDL_SetRelativeMouseMode
mov dword [esi + 0x534], 0
jmp 0x54546b
mov eax, dword [esp + 0x78]
mov ecx, 0x5bb0a0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.0049bd60
sub esp, 8
jmp 0x544f10
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x420]
mov ecx, 1
mov edx, dword [esp + 0x24]
mov edi, dword [0x5bb338]
cmp eax, edx
jg 0x545102
mov eax, dword [esi + 0x428]
cmp edx, eax
jle 0x5455b9
mov dword [esp + 0x24], eax
mov ebp, dword [0x5bb344]
jmp 0x54510c
mov dword [esp], 0
mov ecx, 0x5bb0a0
call fcn.0049b5d0
sub esp, 4
jmp 0x5451a5
mov dword [esp], 4
mov ecx, 0x5bb0a0
call fcn.0049b5d0
mov ecx, 0x5bb0a0
sub esp, 4
call fcn.0049b870
jmp 0x5451fd
mov ecx, esi
call fcn.00544c90
jmp 0x5450c3
mov byte [0x5b9063], 1
call sub.SDL2.dll_SDL_IsTextInputActive
jmp 0x544f10
cmp byte [0x5b9074], 0
mov byte [0x5b9064], 1
jne 0x545492
cmp byte [0x5b31d4], 0
jne 0x545606
mov ecx, 0x5bb0a0
call fcn.0049be40
mov dword [esp], 0
call sub.SDL2.dll_SDL_ShowCursor
jmp 0x544f10
cmp byte [0x5b9074], 0
jne 0x5454c3
cmp byte [0x5b31d4], 0
jne 0x5455f7
mov dword [esp], 1
call sub.SDL2.dll_SDL_ShowCursor
jmp 0x544f10
lea eax, [esp + 0x24]
mov ecx, esi
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.00544c00
sub esp, 8
fnstcw word [esp + 0x1e]
fild dword [esp + 0x6c]
movzx eax, word [esp + 0x1e]
fstp dword [esp + 0x30]
fld dword [esp + 0x20]
or ah, 0xc
mov word [esp + 0x1c], ax
fstp dword [esp + 0x34]
fld dword [esp + 0x30]
fdiv dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
fild dword [esp + 0x70]
mov edi, dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x24]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fdiv dword [esp + 0x40]
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fldcw word [esp + 0x1c]
fistp dword [esp + 0x18]
fldcw word [esp + 0x1e]
mov ebp, dword [esp + 0x18]
jmp 0x545089
mov byte [0x5b9065], 1
jmp 0x54546b
mov dword [esp], 5
mov ecx, 0x5bb0a0
call fcn.0049b5d0
sub esp, 4
jmp 0x5451fd
mov dword [esp], 1
mov ecx, 0x5bb0a0
call fcn.0049b5d0
sub esp, 4
jmp 0x5451a5
test ecx, ecx
je 0x545122
mov eax, edx
jmp 0x54510c
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.SDL2.dll_SDL_GetWindowFromID
mov dword [esp], eax
call sub.SDL2.dll_SDL_MinimizeWindow
jmp 0x54546b
mov dword [esp], 2
mov ecx, esi
call fcn.005449e0
sub esp, 4
jmp 0x54546b
mov ecx, 0x5b9060
call fcn.004e6140
jmp 0x5454c3
mov ecx, 0x5b9060
call fcn.004e6180
jmp 0x545492
mov eax, dword [esi]
mov dword [esp], eax
call sub.SDL2.dll_SDL_GetWindowFlags
test ah, 1
je 0x545640
mov edx, dword [esi + 0x534]
test edx, edx
je 0x54546b
jmp 0x545381
mov eax, dword [esi + 0x534]
test eax, eax
je 0x54566d
mov dword [esp + 4], 0x5ab5bb
mov dword [esp], str.SDL_MOUSE_RELATIVE_MODE_WARP
call sub.SDL2.dll_SDL_SetHint
mov dword [esi + 0x534], 2
jmp 0x54546b
mov dword [esp], 1
call sub.SDL2.dll_SDL_SetRelativeMouseMode
jmp 0x54564a