Function at 0x495300
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9c0b
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
push 0x147
push eax
call edi
mov ecx, dword [esi + 0x2c]
push 0
push eax
push 0x150
push ecx
call edi
mov edx, dword [esi + 0x30]
push 0
mov ebx, eax
lea eax, [esi + 0x30]
push 0
push 0x1009
push edx
mov dword [ebp - 0x13c], eax
call edi
mov eax, dword [esi + 0x34]
push 0
push 0x82
push 0x401
push eax
call edi
mov ecx, dword [esi + 0x34]
push 0
push 0x83
push 0x401
push ecx
call edi
mov edx, dword [esi + 0x34]
push 0
push 0x84
push 0x401
push edx
call edi
lea ecx, [ebp - 0x184]
call fcn.004961f0
mov eax, dword [esi + 4]
push 0
push eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0
call fcn.0046df20
mov ecx, dword [ebp - 0x180]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x18
call fcn.004966e0
add esp, 4
push eax
lea ecx, [ebp - 0x184]
call fcn.00496110
mov ecx, ebx
call fcn.00420760
cmp dword [eax + 0x14], 8
jb 0x495403
mov eax, dword [eax]
mov dx, word [eax]
mov ebx, dword [sym.imp.WINMM.dll_mciSendCommandW]
lea eax, [ebp - 0x1c8]
push eax
push 0x3200
mov word [ebp - 0x18], dx
push 0x803
lea edx, [ebp - 0x18]
push 0
mov dword [ebp - 0x16], 0x3a
mov dword [ebp - 0x1c0], 0x204
mov dword [ebp - 0x1bc], edx
call ebx
test eax, eax
jne 0x495849
mov esi, dword [ebp - 0x1c4]
lea edx, [ebp - 0x134]
push edx
push 0x400
push 0x80d
push esi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x130], 2
call ebx
test eax, eax
je 0x49548d
push 0
push 0
push 0x804
push esi
call ebx
mov eax, dword [ebp - 0x180]
push eax
jmp 0x4957fb
lea ecx, [ebp - 0x128]
push ecx
push 0x100
push 0x814
push esi
mov dword [ebp - 0x120], 3
call ebx
test eax, eax
je 0x4954be
push 0
push 0
push 0x804
push esi
jmp 0x4957f2
mov eax, dword [ebp - 0x124]
xor esi, esi
mov dword [ebp - 0x188], eax
cmp eax, 1
jb 0x4957e2
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
push eax
push 0x110
push 0x814
lea ebx, [esi + 1]
push ecx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x120], 0x4001
call dword [sym.imp.WINMM.dll_mciSendCommandW]
test eax, eax
jne 0x495833
push ebx
lea edx, [ebp - 0x118]
push 0x4d2514
push edx
call fcn.00433830
xor ecx, ecx
add esp, 0xc
cmp dword [ebp - 0x124], 0x440
lea edx, [ebp - 0x118]
sete cl
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x164], 1
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x150], edx
cmp ecx, 0xffffffff
je 0x4955a7
mov dword [ebp - 0x164], 3
mov dword [ebp - 0x148], ecx
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x164]
push ecx
push eax
mov eax, dword [edx]
push 0x104d
push eax
call edi
push ebx
push 0x19
call fcn.004966e0
add esp, 4
push eax
lea ecx, [ebp - 0x118]
push 0x80
push ecx
call fcn.004342c0
add esp, 0x10
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x184]
call fcn.00496110
mov ebx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
push eax
push 0x110
push 0x814
push ebx
mov dword [ebp - 0x120], 2
call dword [sym.imp.WINMM.dll_mciSendCommandW]
test eax, eax
jne 0x495852
mov eax, dword [ebp - 0x124]
mov ecx, eax
shr ecx, 8
movzx edx, cl
movzx ecx, al
mov ebx, ecx
shl ebx, 4
sub ebx, ecx
lea ecx, [edx + ebx*4]
imul ecx, ecx, 0x4b
shr eax, 0x10
movzx edx, al
lea eax, [ecx + edx - 0x96]
push eax
lea ecx, [ebp - 0x118]
push 0x4d2514
push ecx
call fcn.00433830
mov ecx, dword [ebp - 0x13c]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x118]
push 0
mov dword [ebp - 0x150], edx
mov edx, dword [ecx]
push 0x104c
mov ebx, 1
push edx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], ebx
call edi
lea eax, [ebp - 0x128]
push eax
push 0x110
mov dword [ebp - 0x120], ebx
mov ebx, dword [ebp - 0x138]
push 0x814
push ebx
call dword [sym.imp.WINMM.dll_mciSendCommandW]
test eax, eax
jne 0x495864
mov eax, dword [ebp - 0x124]
movzx ecx, al
mov edx, eax
shr edx, 8
mov ebx, ecx
shl ebx, 4
movzx edx, dl
sub ebx, ecx
lea ebx, [edx + ebx*4]
imul ebx, ebx, 0x4b
shr eax, 0x10
movzx eax, al
lea ebx, [ebx + eax - 0x96]
push ebx
push eax
push edx
push ecx
lea eax, [ebp - 0x118]
push 0x4c9604
push eax
call fcn.00433830
xor eax, eax
add esp, 0x18
lea edx, [ebp - 0x1b4]
push edx
push eax
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [eax]
push 0x104c
push ecx
mov dword [ebp - 0x1b4], 1
mov dword [ebp - 0x1b0], esi
mov dword [ebp - 0x1ac], 2
call edi
mov ecx, dword [ebp - 0x13c]
push ebx
push esi
call fcn.0044d060
mov esi, dword [ebp - 0x18c]
lea edx, [esi + 1]
cmp edx, dword [ebp - 0x188]
jbe 0x4954d5
mov ebx, dword [sym.imp.WINMM.dll_mciSendCommandW]
mov ecx, dword [ebp - 0x138]
push 0
push 0
push 0x804
push ecx
call ebx
mov edx, dword [ebp - 0x180]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x184]
mov dword [ebp - 4], 0xffffffff
call fcn.00496130
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x138]
push 0
push 0
push 0x804
push eax
call dword [sym.imp.WINMM.dll_mciSendCommandW]
mov ecx, dword [ebp - 0x180]
push ecx
jmp 0x4957fb
push 0
push 0
push 0x804
push ebx
call dword [sym.imp.WINMM.dll_mciSendCommandW]
jmp 0x4957f4
push 0
push 0
push 0x804
push ebx
call dword [sym.imp.WINMM.dll_mciSendCommandW]
mov eax, dword [ebp - 0x180]
push eax
jmp 0x4957fb