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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d24bf
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x58ac5c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov ecx, 0x5a54c0
push eax
call fcn.00406e60
push 0x6030
call fcn.0046f9f0
add esp, 4
test eax, eax
jns 0x409479
call fcn.0045a210
push eax
push str.SDL_Init_failed_with_the_following_message____s
push section..data
call fcn.00403fe0
push 0
push str.Unable_to_initialise_SDL2._The_program_will_now_close.
push str.Fatal_Error
push 0x10
call fcn.00461150
add esp, 0x1c
xor al, al
jmp 0x409ce3
push 0x1c
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4094b8
push 0x1e0
push 0x140
push 0x1c0
push 0x280
push str.clownmdemu_frontend_v0.5.1
push section..data
mov ecx, eax
call fcn.0040cc80
jmp 0x4094ba
xor eax, eax
push 0x229a4940
mov dword [ebp - 4], 0xffffffff
mov dword [0x692ee4], eax
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40951c
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_unsigned_char____cdecl___unsigned_char__enum_ClownMDEmu_Button___bool__unsigned_char__enum_ClownMDEmu_Button_.0
mov dword [ebp - 0x34], 0x409eb0
mov dword [ebp - 0x14], ecx
mov ecx, 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x38]
push ecx
push dword [0x692ee4]
mov ecx, eax
push section..data
call fcn.00406480
jmp 0x40951e
xor eax, eax
mov dword [0x692ee8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x40954f
mov ecx, dword [ebp - 0x14]
and eax, 0xfffffffe
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x40954f
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 8
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x409571
mov ecx, dword [0x692ee8]
mov dword [eax], ecx
mov dword [eax + 4], 0x5a54bc
jmp 0x409573
xor eax, eax
push 0x40
mov dword [0x692eec], eax
call fcn.004b2122
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4095fd
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_bool____cdecl___unsigned_int___unsigned_int____bool__unsigned_int___unsigned_int__.0
mov dword [ebp - 0x34], 0x4084b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
lea edi, [esi + 8]
or eax, 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [0x692ee8]
mov dword [esi], eax
mov eax, dword [0x692ee4]
mov dword [esi + 4], eax
mov dword [ebp - 0x48], edi
mov dword [edi + 0x24], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 6
test ecx, ecx
je 0x4095df
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
jmp 0x4095ff
xor esi, esi
mov ecx, dword [ebp - 0x44]
mov dword [0x692ef0], esi
mov dword [ebp - 4], 0xffffffff
test cl, 2
je 0x40962c
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40962c
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
push 4
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409645
mov dword [eax], 0x5a54bc
jmp 0x409647
xor eax, eax
push 4
mov dword [0x692ef4], eax
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x409665
mov dword [eax], 0x5a54bc
jmp 0x409667
xor eax, eax
push 8
mov dword [0x692ef8], eax
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40968e
mov ecx, dword [0x692ee8]
mov dword [eax], ecx
mov dword [eax + 4], 0x5a54bc
jmp 0x409690
xor eax, eax
push 0x5c
mov dword [0x692efc], eax
call fcn.004b2122
mov edx, eax
add esp, 4
mov dword [ebp - 0x48], edx
test edx, edx
je 0x409751
mov ecx, dword [0x692ee8]
mov eax, dword [0x692ee4]
mov dword [edx], section..data
mov dword [edx + 4], 0x5a54b8
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x588018
mov dword [edx + 0x10], 0x5a6b54
mov dword [edx + 0x14], 0x5a54bc
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [edx + 0x30], 0
mov dword [edx + 0x34], 1
mov dword [edx + 0x38], 0
mov dword [edx + 0x3c], 0
mov dword [edx + 0x40], 0
mov dword [edx + 0x44], 0
mov dword [edx + 0x48], 0
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
mov dword [edx + 0x54], 0
mov dword [edx + 0x58], 0
jmp 0x409753
xor edx, edx
push 8
mov dword [0x692f00], edx
call fcn.004b2122
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40977b
mov ecx, dword [0x692ee8]
mov dword [eax], ecx
mov dword [eax + 4], 0x5a54bc
jmp 0x40977d
xor eax, eax
mov ecx, dword [0x692ee4]
mov dword [0x692f04], eax
call fcn.0040ce80
push 0x5a6b48
fstp dword [0x5a54b8]
call fcn.0040cf00
mov eax, dword [0x692ee4]
push dword [eax + 8]
call fcn.0045fc90
add esp, 8
test eax, eax
js 0x4097eb
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0045f860
add esp, 8
test eax, eax
jne 0x4097eb
mov esi, dword [ebp - 0x18]
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ecx
shl eax, 4
sub eax, ecx
shl eax, 2
sub esi, eax
sete byte [0x692ee0]
mov eax, dword [0x692ee8]
mov byte [ebp - 0x3c], 0
mov word [eax + 0x15], 0x101
mov byte [0x692ee1], 0
mov byte [0x692ee2], 0
mov dword [eax + 0x108], 1
mov ecx, dword [0x5a54e4]
test ecx, ecx
je 0x409cfe
mov eax, dword [ecx]
lea edx, [ebp - 0x3c]
push edx
call dword [eax + 8]
mov eax, dword [0x692ee8]
push 0x539d30
push str.clownmdemu_frontend.ini
mov dword [eax + 0x10c], 0
mov byte [eax + 0x14], 0
mov byte [eax + 0x16], 1
call fcn.00467270
mov esi, eax
add esp, 8
test esi, esi
je 0x409875
push 0
push 0x408e80
push esi
push 0x4093a0
call fcn.0044fc60
add esp, 0x10
test eax, eax
je 0x409969
xor eax, eax
mov ecx, 0x200
mov edi, 0x5a5948
rep stosd dword es:[edi], eax
push 0x40000048
mov dword [0x5a5a90], 1
mov dword [0x5a5a8c], 2
mov dword [0x5a5a88], 3
mov dword [0x5a5a84], 4
mov dword [0x5a59bc], 5
mov dword [0x5a59b4], 6
mov dword [0x5a5960], 7
mov dword [0x5a59e8], 8
call fcn.00468570
push 0x40000044
mov dword [eax*4 + 0x5a5948], 9
call fcn.00468570
push 9
mov dword [eax*4 + 0x5a5948], 0xf
call fcn.00468570
push 0x4000003a
mov dword [eax*4 + 0x5a5948], 0xa
call fcn.00468570
push 0x4000003e
mov dword [eax*4 + 0x5a5948], 0x10
call fcn.00468570
push 0x40000042
mov dword [eax*4 + 0x5a5948], 0xd
call fcn.00468570
add esp, 0x18
mov dword [eax*4 + 0x5a5948], 0xe
mov dword [0x5a59f8], 0xb
mov dword [0x5a599c], 0xc
test esi, esi
je 0x409972
push esi
call fcn.00467300
add esp, 4
movzx eax, byte [0x692ee0]
push eax
mov eax, dword [0x692ee4]
push dword [eax + 0x10]
call fcn.004649c0
push 2
push 0x14
push 0x10
push 8
push 0x448
push 0xb60
push str.1.90.0
call fcn.00414d40
push 0
call fcn.004149f0
call fcn.00416e90
mov esi, eax
call fcn.00417520
or dword [esi], 1
mov edi, eax
push 0
mov dword [ebp - 0x40], edi
mov dword [esi + 0x18], str.clownmdemu_frontend_imgui.ini
call fcn.0042f8d0
movaps xmm0, xmmword [0x546160]
mov dword [edi + 0x14], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x20], 0x3f000000
mov dword [edi + 0x24], 0x3f000000
mov dword [edi + 0x88], 0
mov dword [edi + 0x78], 0
movups xmmword [edi + 0xe4], xmm0
movaps xmm0, xmmword [0x5460c0]
movups xmmword [edi + 0x104], xmm0
movaps xmm0, xmmword [0x546040]
movups xmmword [edi + 0x154], xmm0
movaps xmm0, xmmword [0x546010]
movups xmmword [edi + 0x164], xmm0
movaps xmm0, xmmword [0x546060]
movups xmmword [edi + 0x174], xmm0
movaps xmm0, xmmword [0x546030]
movups xmmword [edi + 0x134], xmm0
movaps xmm0, xmmword [0x5460f0]
movups xmmword [edi + 0x184], xmm0
movaps xmm0, xmmword [0x5460e0]
movups xmmword [edi + 0x194], xmm0
movaps xmm0, xmmword [0x5460f0]
movups xmmword [edi + 0x1b4], xmm0
movaps xmm0, xmmword [0x546150]
movups xmmword [edi + 0x204], xmm0
movaps xmm0, xmmword [0x546130]
movups xmmword [edi + 0x214], xmm0
movaps xmm0, xmmword [0x546140]
movups xmmword [edi + 0x224], xmm0
movaps xmm0, xmmword [0x546050]
movups xmmword [edi + 0x234], xmm0
movaps xmm0, xmmword [0x546110]
movups xmmword [edi + 0x244], xmm0
movaps xmm0, xmmword [0x546100]
movups xmmword [edi + 0x254], xmm0
movaps xmm0, xmmword [0x546000]
movups xmmword [edi + 0x264], xmm0
movaps xmm0, xmmword [0x546090]
movups xmmword [edi + 0x274], xmm0
movaps xmm0, xmmword [0x546110]
movups xmmword [edi + 0x284], xmm0
movaps xmm0, xmmword [0x546030]
movups xmmword [edi + 0x294], xmm0
movaps xmm0, xmmword [0x546070]
movups xmmword [edi + 0x2a4], xmm0
movaps xmm0, xmmword [0x546150]
movups xmmword [edi + 0x2b4], xmm0
movaps xmm0, xmmword [0x546020]
movups xmmword [edi + 0x2c4], xmm0
movaps xmm0, xmmword [0x546080]
movups xmmword [edi + 0x2d4], xmm0
movaps xmm0, xmmword [0x5460d0]
movups xmmword [edi + 0x2e4], xmm0
movaps xmm0, xmmword [0x5460b0]
movups xmmword [edi + 0x2f4], xmm0
movaps xmm0, xmmword [0x5460a0]
mov esi, edi
movups xmmword [edi + 0x304], xmm0
mov ecx, 0x112
add esp, 0x28
movaps xmm0, xmmword [0x546120]
movups xmmword [edi + 0x314], xmm0
mov edi, 0x5a54e8
movss xmm0, dword [0x5a54b8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x40]
mov ecx, edi
movss dword [esp], xmm0
call fcn.00422790
movss xmm0, dword [0x5a54b8]
mulss xmm0, dword [0x4d43f4]
call fcn.004b2160
mov ecx, dword [0x692ee4]
mov esi, eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ecx + 8]
call fcn.004601f0
add esp, 0xc
cmp dword [ebp - 0x50], 0x280
jne 0x409c73
cmp dword [ebp - 0x54], 0x1c0
jne 0x409c73
movss xmm1, dword [edi + 0x40]
mov eax, esi
movd xmm0, esi
addss xmm1, xmm1
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4d3640]
mov eax, dword [0x692ee4]
push dword [eax + 8]
cvtpd2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [ebp - 0x40], xmm1
call fcn.0045fef0
add esp, 4
test eax, 0x2000
je 0x409c39
movss xmm1, dword [0x545fc4]
jmp 0x409c41
movss xmm1, dword [0x5a54b8]
movaps xmm0, xmm1
mulss xmm1, dword [0x545fe4]
mulss xmm0, dword [0x545fd8]
addss xmm0, dword [ebp - 0x40]
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
mov eax, dword [0x692ee4]
push dword [eax + 8]
call fcn.00460dd0
add esp, 0xc
mov eax, dword [0x692ee4]
push dword [eax + 0x10]
push dword [eax + 8]
call fcn.0044e390
mov eax, dword [0x692ee4]
push dword [eax + 0x10]
call fcn.0044f740
push esi
call fcn.00409f10
add esp, 0x10
cmp dword [ebp + 8], 1
jle 0x409caf
mov eax, dword [ebp - 0x58]
push dword [eax + 4]
call fcn.00409d20
add esp, 4
jmp 0x409cc5
mov ecx, dword [0x692ee8]
push 0
push 0
mov byte [0x5a6b53], 0
call fcn.00406970
mov eax, dword [0x692ee4]
push dword [eax + 8]
call fcn.004611c0
add esp, 4
mov byte [0x588016], 0
call fcn.00409e40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b20f1
mov esp, ebp
pop ebp
ret
call fcn.004b20a0
int3