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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x73bb00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x58], edi
call fcn.00625aa0
mov esi, dword [edi + 0x1210]
mov ecx, esi
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x1214]
or ecx, eax
mov dword [ebp - 0x48], edx
je 0x4537c6
mov ecx, dword [ebp - 0x50]
sub ecx, esi
sbb edx, eax
call fcn.00633280
cvtsd2ss xmm0, xmm0
movss dword [ebp - 0x4c], xmm0
call fcn.00625a90
mov ecx, eax
call fcn.00633280
movss xmm1, dword [ebp - 0x4c]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [edi + 0x1218]
ucomiss xmm0, dword [0x67b308]
lahf
test ah, 0x44
jnp 0x4537bb
mulss xmm0, dword [0x68444c]
mulss xmm1, dword [0x6806c4]
addss xmm1, xmm0
mov edx, dword [ebp - 0x48]
movss dword [edi + 0x1218], xmm1
mov eax, dword [ebp - 0x50]
mov ecx, 0xffff
mov dword [edi + 0x1210], eax
mov eax, dword [edi + 0x187c]
mov dword [edi + 0x1214], edx
cdq
idiv ecx
inc edx
mov dword [edi + 0x187c], edx
call sub.SDL2.dll_SDL_PumpEvents
lea eax, [ebp - 0x54]
push eax
call sub.SDL2.dll_SDL_GetKeyboardState
mov ecx, dword [ebp - 0x54]
add esp, 4
cmp ecx, 0x123
jl 0x45380e
mov ecx, 0x123
mov dword [ebp - 0x54], ecx
cmp byte [0x77c39c], 0
jne 0x4539f4
push ecx
lea edx, [edi + 0x167c]
push eax
push edx
mov dword [ebp - 0x5c], edx
call fcn.006205c0
mov ecx, dword [ebp - 0x54]
mov eax, 0x200
sub eax, ecx
push eax
push 0
lea eax, [ecx + 0x167c]
add eax, edi
push eax
call fcn.00634760
add esp, 0x18
cmp byte [0x77c39c], 0
jne 0x4539f4
push 0
push 0
call sub.SDL2.dll_SDL_GetMouseState
add esp, 8
test al, 1
je 0x45386e
mov byte [edi + 0x179f], 1
test al, 4
je 0x453879
mov byte [edi + 0x17a0], 1
test al, 2
je 0x453884
mov byte [edi + 0x17a1], 1
test al, 8
je 0x45388f
mov byte [edi + 0x17a2], 1
test al, 0x10
je 0x45389a
mov byte [edi + 0x17a3], 1
test al, 0x20
je 0x4538a5
mov byte [edi + 0x17a4], 1
test al, 0x40
je 0x4538b0
mov byte [edi + 0x17a5], 1
test al, al
jns 0x4538bb
mov byte [edi + 0x17a6], 1
test eax, 0x100
je 0x4538c9
mov byte [edi + 0x17a7], 1
cmp dword [0x78185c], 0
je 0x4539f4
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
mov esi, eax
test esi, esi
je 0x4539f4
movd xmm0, dword [0x781894]
mov ecx, esi
cvtdq2ps xmm0, xmm0
mov eax, dword [esi]
mov dword [ebp - 0x4c], 0
movss xmm1, dword [0x6ab79c]
divss xmm0, dword [0x680724]
mov eax, dword [eax + 8]
minss xmm1, xmm0
movss dword [ebp - 0x50], xmm1
call eax
test eax, eax
jle 0x453987
movss xmm0, dword [ebp - 0x50]
lea eax, [edi + 0x17c1]
xorps xmm0, xmmword [0x67b120]
mov edi, eax
movss dword [ebp - 0x44], xmm0
xor ecx, ecx
nop dword [eax]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x48], eax
call dword [ebp - 0x48]
movss xmm1, dword [ebp - 0x44]
lea edi, [edi + 2]
fstp dword [ebp - 0x48]
movss xmm0, dword [ebp - 0x48]
mov ecx, esi
comiss xmm1, xmm0
setae al
comiss xmm0, dword [ebp - 0x50]
mov byte [edi - 3], al
setae al
inc dword [ebp - 0x4c]
mov byte [edi - 2], al
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, eax
jl 0x453940
mov edi, dword [ebp - 0x58]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x4c], 0
mov eax, dword [eax + 0x14]
call eax
test eax, eax
jle 0x4539f4
mov edi, 0x13c
xor ecx, ecx
mov eax, dword [esi]
lea edx, [ebp - 0x64]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x1c]
lea ecx, [edi + 3]
mov eax, edi
cmp edi, ecx
jg 0x4539db
mov ecx, dword [ebp - 0x5c]
lea edx, [edi + ecx]
nop dword [eax]
cmp dword [ebp - 0x64], eax
je 0x4539ce
cmp dword [ebp - 0x60], eax
je 0x4539ce
xor cl, cl
jmp 0x4539d0
mov cl, 1
mov byte [edx], cl
inc eax
lea ecx, [edi + 3]
inc edx
cmp eax, ecx
jle 0x4539c0
mov eax, dword [esi]
mov ecx, esi
inc dword [ebp - 0x4c]
add edi, 4
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, eax
jl 0x4539a2
mov edi, dword [ebp - 0x58]
mov byte [ebp - 0x3d], 0
lea eax, [ebp - 0x3c]
push eax
call sub.SDL2.dll_SDL_PollEvent
add esp, 4
test eax, eax
je 0x4542c9
mov dl, byte [0x77c39c]
xor al, al
test dl, dl
movzx eax, al
mov esi, 1
cmovne eax, esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
cmp eax, 0x401
ja 0x453d28
je 0x453da1
cmp eax, 0x300
ja 0x453b8a
je 0x453b58
sub eax, 0x100
je 0x4542b7
sub eax, 0x100
je 0x453a85
sub eax, esi
jne case.default.0x453fac
test dl, dl
jne case.default.0x453fac
push dword [ebp - 0x34]
mov ecx, edi
call fcn.00453140
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
movzx eax, byte [ebp - 0x30]
add eax, 0xfffffffc
cmp eax, 9
ja case.default.0x453fac
jmp dword [eax*4 + 0x4542f0]
mov ecx, dword [edi + 0x1220]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
mov ecx, dword [edi + 0x1220]
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov eax, dword [ecx]
push dword [ebp - 0x2c]
call dword [eax + 0x28]
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
cmp byte [edi + 0x1238], cl
je 0x453aeb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x3c]
push 0
push 0
call sub.SDL2.dll_SDL_GetRelativeMouseState
add esp, 8
mov esi, dword [ebp - 0x44]
mov al, 1
mov byte [edi + 0x1240], 1
mov byte [ebp - 0x3d], al
jmp 0x453d7e
mov al, 1
mov byte [edi + 0x1240], cl
mov byte [ebp - 0x3d], al
cmp byte [edi + 0x1238], cl
je 0x454210
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
mov esi, dword [ebp - 0x44]
mov byte [edi + 0x1238], 1
jmp 0x453d7b
mov ecx, dword [edi + 0x1220]
push dword [ebp - 0x34]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
mov ecx, dword [edi + 0x1220]
push dword [ebp - 0x34]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
movzx eax, word [ebp - 0x24]
test dword [0x781854], eax
jne case.default.0x453fac
cmp dword [0x781850], ecx
je 0x453b82
push dword [ebp - 0x28]
call sub.SDL2.dll_SDL_GetScancodeFromKey
add esp, 4
mov esi, eax
jmp 0x453d7b
mov esi, dword [ebp - 0x2c]
jmp 0x453d7b
sub eax, 0x301
je 0x453d06
sub eax, 1
je 0x453c2a
sub eax, 1
jne case.default.0x453fac
test dl, dl
jne case.default.0x453fac
mov byte [edi + 0x1242], cl
mov eax, dword [edi + 8]
mov dword [edi + 0x1268], 0xffffffff
mov dword [edi + 0x1264], ecx
cmp eax, 0x20
je case.default.0x453fac
lea eax, [eax + eax*8]
add eax, eax
push 0x81
mov dword [edi + eax*8 + 0x10], ecx
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
add eax, eax
mov dword [edi + eax*8 + 0xc], 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
shl eax, 4
add eax, 0x14
add eax, edi
push eax
call fcn.00623c10
mov eax, dword [edi + 8]
add esp, 0xc
mov esi, dword [ebp - 0x44]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x187c]
add ecx, ecx
mov dword [edi + ecx*8 + 0x98], eax
inc dword [edi + 8]
jmp 0x453d7b
test dl, dl
jne 0x45420d
lea eax, [ebp - 0x30]
push eax
call fcn.006240e0
add esp, 4
mov dword [edi + 0x1268], eax
test eax, eax
je 0x453ce6
push 0x20
lea ecx, [ebp - 0x30]
lea eax, [edi + 0x1242]
push ecx
push eax
call fcn.00623c10
xor esi, esi
mov dword [edi + 0x1264], 0
add esp, 0xc
cmp dword [ebp - 0x10], esi
jle 0x453c90
xor eax, eax
push eax
lea eax, [edi + 0x1242]
push eax
call fcn.00625520
inc esi
mov dword [edi + 0x1264], eax
add esp, 8
cmp esi, dword [ebp - 0x10]
jl 0x453c74
mov eax, dword [edi + 8]
mov esi, dword [ebp - 0x44]
cmp eax, 0x20
je 0x453d7b
lea eax, [eax + eax*8]
add eax, eax
mov dword [edi + eax*8 + 0x10], 0
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
add eax, eax
mov dword [edi + eax*8 + 0xc], 4
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
add eax, eax
mov byte [edi + eax*8 + 0x14], 0
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x187c]
add ecx, ecx
mov dword [edi + ecx*8 + 0x98], eax
inc dword [edi + 8]
jmp 0x453d7b
mov esi, dword [ebp - 0x44]
mov byte [edi + 0x1242], 0
mov dword [edi + 0x1268], 0
mov dword [edi + 0x1264], 0
jmp 0x453d7b
mov dword [ebp - 0x4c], 2
cmp dword [0x781850], ecx
je 0x453b82
push dword [ebp - 0x28]
call sub.SDL2.dll_SDL_GetScancodeFromKey
add esp, 4
mov esi, eax
jmp 0x453d7b
cmp eax, 0x600
ja 0x453f8d
je 0x453e40
sub eax, 0x402
je 0x453d9a
sub eax, 1
jne case.default.0x453fac
mov eax, dword [ebp - 0x28]
mov edx, 0x12c
test eax, eax
mov dword [ebp - 0x4c], 3
mov eax, 0x12d
cmovg ecx, edx
mov edx, 0x12e
cmovs ecx, eax
mov eax, dword [ebp - 0x2c]
test eax, eax
mov eax, 0x12f
cmovg ecx, edx
cmovs ecx, eax
mov dword [ebp - 0x44], ecx
mov esi, ecx
mov al, byte [ebp - 0x3d]
cmp byte [ebp - 0x50], 0
je 0x454217
cmp esi, 0x42
jne 0x454217
mov byte [ebp - 0x50], 0
jmp 0x45422b
mov dword [ebp - 0x4c], 2
mov eax, dword [ebp - 0x2c]
cmp al, 1
jne 0x453db2
mov ecx, 0x123
mov dword [ebp - 0x44], ecx
jmp 0x453e18
cmp al, 3
jne 0x453dbd
mov esi, 0x124
jmp 0x453d7b
cmp al, 2
jne 0x453dc8
mov esi, 0x125
jmp 0x453d7b
cmp al, 4
jne 0x453dd3
mov esi, 0x126
jmp 0x453d7b
cmp al, 5
jne 0x453dde
mov esi, 0x127
jmp 0x453d7b
cmp al, 6
jne 0x453de9
mov esi, 0x128
jmp 0x453d7b
cmp al, 7
jne 0x453df4
mov esi, 0x129
jmp 0x453d7b
cmp al, 8
jne 0x453e02
mov esi, 0x12a
jmp 0x453d7b
cmp al, 9
jne 0x453e10
mov esi, 0x12b
jmp 0x453d7b
cmp al, 1
jne case.default.0x453fac
mov al, byte [ebp - 0x2a]
test al, 1
jne 0x453e26
mov byte [edi + 0x1241], 1
mov esi, dword [ebp - 0x44]
cmp al, 1
mov al, byte [ebp - 0x3d]
jne 0x453d7e
mov byte [edi + 0x1241], 0
jmp 0x453d7e
cmp dword [0x78185c], ecx
je case.default.0x453fac
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
test eax, eax
je 0x453a7d
mov eax, dword [eax + 0x70]
cmp eax, dword [ebp - 0x34]
jne 0x453a7d
mov al, byte [ebp - 0x30]
cmp al, 0xc
jae 0x453a7d
movd xmm0, dword [0x781894]
cvtdq2ps xmm0, xmm0
movzx eax, al
movss xmm1, dword [0x6ab79c]
lea ecx, [eax*2 + 0x144]
divss xmm0, dword [0x680724]
movsx eax, word [ebp - 0x2c]
lea esi, [ecx + 1]
movd xmm2, eax
minss xmm1, xmm0
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm1
movss dword [ebp - 0x48], xmm1
mulss xmm0, dword [0x6ab7ac]
comiss xmm0, xmm2
jb 0x453ee5
cmp byte [edi + ecx + 0x167c], 0
jne 0x453ee5
mov byte [edi + ecx + 0x167c], 1
mov ax, word [edi + 0x187c]
mov word [edi + ecx*2 + 0x127c], ax
push 1
jmp 0x453efe
comiss xmm2, xmm0
jbe 0x453f0d
cmp byte [edi + ecx + 0x167c], 0
je 0x453f0d
mov byte [edi + ecx + 0x167c], 0
push 2
push ecx
push 0
mov ecx, edi
call fcn.004526d0
movss xmm1, dword [ebp - 0x48]
movsx eax, word [ebp - 0x2c]
mulss xmm1, dword [0x6ab7a4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jb 0x453f5a
cmp byte [edi + esi + 0x167c], 0
jne 0x453f5a
push 1
mov byte [edi + esi + 0x167c], 1
mov ecx, edi
mov ax, word [edi + 0x187c]
push esi
push 0
mov word [edi + esi*2 + 0x127c], ax
call fcn.004526d0
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
comiss xmm1, xmm0
jbe 0x453a7d
cmp byte [edi + esi + 0x167c], 0
je 0x453a7d
push 2
push esi
push 0
mov ecx, edi
mov byte [edi + esi + 0x167c], 0
call fcn.004526d0
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
cmp eax, 0x1000
ja case.default.0x453fac
je 0x4541e6
add eax, 0xfffff9fe
cmp eax, 4
ja case.default.0x453fac
jmp dword [eax*4 + 0x454318]
cmp dword [0x78185c], ecx
je case.default.0x453fac
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x2c]
call eax
test eax, eax
je 0x453a7d
mov eax, dword [eax + 0x70]
cmp eax, dword [ebp - 0x34]
jne 0x453a7d
mov al, byte [ebp - 0x30]
cmp al, 0xc
jae 0x453a7d
movzx ecx, al
mov eax, dword [ebp - 0x3c]
add ecx, 0x130
cmp eax, 0x603
jne 0x454025
mov byte [edi + ecx + 0x167c], 1
mov ax, word [edi + 0x187c]
push 1
push ecx
mov word [edi + ecx*2 + 0x127c], ax
mov ecx, edi
push 0
call fcn.004526d0
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
cmp eax, 0x604
jne 0x453a7d
push 2
push ecx
mov byte [edi + ecx + 0x167c], 0
mov ecx, edi
push 0
call fcn.004526d0
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
lea eax, [ebp - 0x3c]
mov ecx, edi
push eax
call fcn.00452b90
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
push dword [ebp - 0x34]
mov ecx, edi
call fcn.00452ff0
test al, al
je 0x453a7d
mov ecx, edi
call fcn.00454330
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
mov edx, dword [edi + 0x1228]
mov eax, dword [edi + 0x122c]
mov dword [ebp - 0x48], edx
cmp edx, eax
je case.default.0x453fac
mov esi, dword [ebp - 0x34]
nop word [eax + eax]
lea ecx, [edx + 0x88]
mov dword [ebp - 0x5c], ecx
cmp dword [edx + 0x70], esi
je 0x4540bf
mov edx, ecx
mov dword [ebp - 0x48], ecx
cmp edx, eax
jne 0x4540a0
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x48]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx]
call edx
push esi
push eax
push str.Closed_joystick__d__s
push str.joystick
call fcn.0061d2f0
mov eax, dword [edi + 0x122c]
add esp, 0x10
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x5c], eax
je 0x454199
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x48], eax
lea edx, [eax + 0x90]
nop dword [eax + eax]
mov eax, dword [edx - 4]
lea ecx, [edx - 0x84]
mov dword [edx - 0x8c], eax
mov esi, 0x40
mov eax, dword [edx]
mov dword [edx - 0x88], eax
nop dword [eax]
mov al, byte [ecx + 0x88]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x454130
lea ecx, [edx - 0x44]
mov esi, 0x22
nop dword [eax]
mov al, byte [ecx + 0x88]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x454150
mov eax, dword [edx + 0x68]
mov dword [edx - 0x20], eax
mov eax, dword [edx + 0x6c]
mov dword [edx - 0x1c], eax
mov eax, dword [edx + 0x70]
mov dword [edx - 0x18], eax
mov eax, dword [edx + 0x74]
mov dword [edx - 0x14], eax
mov eax, dword [edx + 0x78]
mov dword [edx - 0x10], eax
mov eax, dword [edx + 0x7c]
mov dword [edx - 0xc], eax
add edx, 0x88
lea eax, [edx - 8]
cmp eax, edi
jne 0x454110
mov edi, dword [ebp - 0x58]
mov ecx, dword [edi + 0x122c]
sub ecx, 0x88
push 0
mov eax, dword [ecx]
call dword [eax + 0x28]
add dword [edi + 0x122c], 0xffffff78
mov eax, dword [ebp - 0x48]
cmp eax, dword [edi + 0x122c]
je 0x4541d7
lea ecx, [eax + 8]
dec dword [ecx]
lea ecx, [ecx + 0x88]
lea eax, [ecx - 8]
cmp eax, dword [edi + 0x122c]
jne 0x4541c4
mov ecx, edi
call fcn.00454330
mov esi, dword [ebp - 0x44]
jmp 0x453d7b
push 0x200
push dword [ebp - 0x34]
lea eax, [edi + 0x1880]
push eax
call fcn.00623c10
push dword [ebp - 0x34]
call sub.SDL2.dll_SDL_free
mov esi, dword [ebp - 0x44]
add esp, 0x10
jmp 0x453d7b
mov al, byte [ebp - 0x3d]
mov esi, ecx
jmp 0x453d7e
test esi, esi
jle 0x4539f8
cmp esi, 0x200
jge 0x4539f8
test al, al
jne 0x4539f8
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x60]
call eax
test al, al
jne 0x4539f8
cmp byte [ebp - 0x50], al
jne 0x4539f8
mov ecx, dword [ebp - 0x4c]
test cl, 1
je 0x45426c
mov byte [edi + esi + 0x167c], 1
mov ax, word [edi + 0x187c]
mov word [edi + esi*2 + 0x127c], ax
mov eax, dword [edi + 8]
cmp eax, 0x20
je 0x4539f8
lea eax, [eax + eax*8]
add eax, eax
mov dword [edi + eax*8 + 0x10], esi
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
add eax, eax
mov dword [edi + eax*8 + 0xc], ecx
mov eax, dword [edi + 8]
lea eax, [eax + eax*8]
add eax, eax
mov byte [edi + eax*8 + 0x14], 0
mov eax, dword [edi + 8]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 0x187c]
add ecx, ecx
mov dword [edi + ecx*8 + 0x98], eax
inc dword [edi + 8]
jmp 0x4539f8
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063292f
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1268], 0
jne 0x4542dc
mov dword [edi + 0x1268], 0xffffffff
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0063292f
mov esp, ebp
pop ebp
ret