Function at 0x403463
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
cmp dword [ebp + 8], 0
je 0x4037ef
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x4037ef
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4037ef
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test al, al
je 0x4037de
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 1]
xor eax, 1
test al, al
je 0x4037de
mov eax, dword [ebp - 0x14]
mov byte [eax + 1], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x64]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], str.tuxguitar_synth_vst_ui
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetClassInfoA]
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403540
mov dword [ebp - 0x60], sym.__Z35VSTEffectHandleUI_editorHwndProcessP6HWND__jjl_16
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x40], str.tuxguitar_synth_vst_ui
mov dword [ebp - 0x48], 3
lea eax, [ebp - 0x64]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassA]
call eax
sub esp, 4
movzx eax, ax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4037c2
mov dword [ebp - 0x1c], 0xca0000
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x64
mov dword [esp + 0x18], 0x64
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.tuxguitar_synth_vst_ui
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4037b4
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
call eax
sub esp, 4
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffeb
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetWindowLongA]
call eax
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 1
mov dword [esp + 4], str.tuxguitar_synth_vst.ico
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadImageA]
call eax
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], pe_nt_image_headers32
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 1
mov dword [esp + 4], str.tuxguitar_synth_vst.ico
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadImageA]
call eax
sub esp, 0x18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], pe_nt_image_headers32
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x40377d
lea eax, [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
jne 0x403735
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 1
test al, al
je 0x403735
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DestroyWindow]
call eax
sub esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40377d
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 2]
test al, al
je 0x40377d
mov eax, dword [ebp - 0x14]
mov byte [eax + 2], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov dword [esp + 4], 9
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
jne 0x4036fb
jmp 0x4037ce
mov dword [esp], str.VSTClient____could_not_create_window._n
call sym.VSTLogger_log_char_const__..._
jmp 0x4037ce
mov dword [esp], str.VSTClient____could_not_register_class._n
call sym.VSTLogger_log_char_const__..._
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 1], 0
nop
jmp 0x4037ef
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret