Function at 0x405370
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], esi
call fcn.00401d90
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, dword [eax + 4]
cmp ecx, 0x17
ja case.0x4053b7.2
movzx eax, byte [ecx + 0x40585c]
jmp dword [eax*4 + 0x405828]
push str.Installer_:_SDL_CASINO_END_PROCESS_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
push str.Casino____SDL_:_SDL_CASINO_END_PROCESS
mov byte [esi + 0x20], 0
call fcn.00404f70
add esp, 8
call fcn.00408470
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_CASINO_START_PROCESS_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Installer_:_SDL_INSTALLER_END_PROCESS_n
call edi
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
call fcn.00408470
mov edx, dword [eax + 0x2c]
push edx
lea eax, [esp + 0x10]
push 0x438934
push eax
call fcn.004200a5
add esp, 0xc
cmp byte [esi + 0x20], 0
je 0x405482
push str.Installer_:_Send_SDL_INSTALLER_END_PROCESS_n
call edi
lea ecx, [esp + 0xc]
push ecx
push 0
mov ecx, esi
call fcn.004052d0
mov byte [esi + 0x22], 0
mov byte [esi + 0x20], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_UPGRADE_VERSION_OK_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov edx, dword [eax + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Casino____SDL_:_SDL_UPGRADE_VERSION_OK
call fcn.00404f70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_UPGRADE_VERSION_NOTOK_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Casino____SDL_:_SDL_UPGRADE_VERSION_NOTOK
call fcn.00404f70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_UPGRADE_PROGRESS_BAR_OK_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Casino____SDL_:_SDL_UPGRADE_PROGRESS_BAR_OK
call fcn.00404f70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_UPGRADE_PROGRESS_BAR_CANCEL_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov edx, dword [eax + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Casino____SDL_:_SDL_UPGRADE_PROGRESS_BAR_CANCEL
call fcn.00404f70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_UPGRADE_EXIT_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 8
mov esi, str.Installer_:_SDL_REPLACE_ITEM__
lea edi, [esp + 0x70]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x94]
push 0
push ecx
call fcn.00420550
lea esi, [ebx + 4]
mov ecx, 0x18
lea edi, [esp + 0x1c]
lea eax, [esp + 0x1c]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov edx, eax
jmp 0x405640
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405640
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405652
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00415a85
lea edx, [esp + 0x14]
add esp, 4
push edx
call fcn.00408470
mov ecx, eax
call fcn.00407590
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x70]
push eax
call esi
push 0x438f6c
call esi
lea ecx, [esp + 0x10]
push ecx
push str.Casino____SDL_:_SDL_REPLACE_ITEM__s
call fcn.00404f70
mov ecx, dword [esp + 0x14]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 5
call fcn.004052d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push 0x34
lea eax, [esp + 0xa0]
push 0
mov ecx, 0xb
mov esi, str.Installer_:_SDL_SET_ITEM_TO_TOP_PRIORITY__
lea edi, [esp + 0x78]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00420550
lea esi, [ebx + 4]
mov ecx, 0x18
lea edi, [esp + 0x1c]
lea eax, [esp + 0x1c]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405710
lea edi, [esp + 0x70]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405722
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00415a85
lea ecx, [esp + 0x14]
add esp, 4
push ecx
call fcn.00408470
mov ecx, eax
call fcn.00407450
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [esp + 0x70]
push edx
call esi
push 0x438f6c
call esi
lea eax, [esp + 0x10]
push eax
push str.Casino____SDL_:_SDL_SET_ITEM_TO_TOP_PRIORITY__s
call fcn.00404f70
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_PING_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
push 0x438897
push 0x17
mov ecx, esi
call fcn.004052d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push str.Installer_:_SDL_PONG_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00415a85
add esp, 4
call fcn.00408470
mov byte [eax + 0x40], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10
push esi
push ebx
push edx
push edi
call dword [sym.imp.USER32.dll_DefWindowProcA]
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042050e
mov esp, ebp
pop ebp
ret 0x10