Function at 0x48b950
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
xor ebx, ebx
lea eax, [esi + 0x1c]
cmp ecx, ebx
push edi
mov dword [esp + 0x10], ebx
jne 0x48b997
push 0x30000
push esi
push 0x48bf80
lea ecx, [esi + 0x44]
push 1
push ecx
push eax
call dword [sym.imp.WINMM.dll_midiStreamOpen]
cmp eax, ebx
je 0x48b997
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
lea edi, [esi + 0x7c]
push ecx
push eax
push eax
call fcn.0048c930
add esp, 0xc
mov ebp, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebp
call fcn.004a0000
mov dword [edi + 8], ebp
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x48ba04
mov ecx, ebp
sub ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 2
jae 0x48ba25
mov ebp, dword [edi + 8]
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0048c570
mov ecx, 2
sub ecx, eax
push ecx
push ebp
mov ecx, edi
call fcn.0048c5a0
jmp 0x48ba45
mov ecx, edi
call fcn.0048c570
cmp eax, 2
jbe 0x48ba45
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
add eax, 0xa8
push edx
push eax
mov ecx, edi
call fcn.0048c8b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x14]
push reloc.WS2_32.dll_accept
push edx
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], ecx
call dword [sym.imp.WINMM.dll_midiStreamProperty]
cmp eax, ebx
je 0x48ba7e
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov dword [esi + 0x48], ebx
mov edi, 1
mov dword [esi + 0x40], ebx
mov ebp, 0x400
mov ecx, dword [esi + 0x40]
push ebp
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x80]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 4], ebp
call fcn.0050f5f7
mov edx, dword [esi + 0x40]
add esp, 4
lea ecx, [edx*8]
sub ecx, edx
lea edx, [ecx + ecx*2]
mov ecx, dword [esi + 0x80]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x40]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x80]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
cmp ecx, ebx
je 0x48ba74
mov dword [eax + 0x40], ebx
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x80]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
mov dword [edx + ecx*4 + 0x44], ebp
mov ecx, dword [esi + 0x40]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x80]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 0x4c], ebx
mov ecx, dword [esi + 0x40]
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x80]
mov dword [eax + edx*4 + 0x50], ebx
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x80]
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [eax + eax*2]
lea edx, [edx + ecx*4]
mov ecx, esi
push edx
push edi
call fcn.0048b1c0
cmp eax, ebx
je 0x48bb6b
cmp eax, 0xffffff99
jne 0x48ba74
mov dword [esp + 0x10], 1
mov ecx, dword [esi + 0x40]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x80]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 0x48]
lea eax, [ecx + eax*4]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x48bbbe
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x80]
push 0x40
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [edx + eax*4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.WINMM.dll_midiOutPrepareHeader]
cmp eax, ebx
jne 0x48ba6c
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x80]
push 0x40
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [edx + eax*4]
mov edx, dword [esi + 0x1c]
push ecx
push edx
call dword [sym.imp.WINMM.dll_midiStreamOut]
cmp eax, ebx
jne 0x48bc16
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, ebx
jne 0x48bc1e
mov ecx, dword [esi + 0x40]
inc ecx
mov eax, ecx
mov dword [esi + 0x40], ecx
cmp eax, 2
jl 0x48ba8e
mov eax, 1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 4]
mov eax, 1
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret