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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
push ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx + 0xb]
mov eax, dword [ebx + 0x14]
push esi
mov esi, ecx
xor ecx, ecx
mov ch, byte [ebx + 9]
push edi
mov dword [esp + 0x24], eax
mov eax, 2
lea edi, [esp + 0x68]
mov cl, byte [ebx + 0xa]
shl ecx, 8
or ecx, edx
mov dword [esp + 0x14], ecx
xor edx, edx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x224]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x228]
push ecx
push edx
lea ecx, [esp + 0x5c]
call fcn.004880b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [esi + 0x228]
mov edx, dword [esp + 0x14]
push 0
push ecx
mov edi, eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x48], edi
call fcn.0054da20
mov al, byte [ebx + 8]
xor ebx, ebx
cmp al, 0x11
jne 0x524348
cmp edi, ebx
je 0x5242f7
mov ecx, edi
call fcn.0054e350
cmp eax, 3
jb 0x5242f7
mov ecx, dword [esp + 0x24]
cmp byte [ecx], 0
je 0x524348
lea ecx, [esp + 0x40]
call fcn.0054a940
lea ecx, [esp + 0x54]
call fcn.00486bf0
mov edx, dword [esp + 0x28]
push edx
call fcn.005ddc00
add esp, 4
push 0x434dc0
push 0x40
push 4
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.00401030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x40]
call fcn.0054a940
lea ecx, [esp + 0x54]
call fcn.00486bf0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005ddc00
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea esi, [esp + 0x168]
mov edi, 0x40
mov edi, edi
sub esi, 4
mov ecx, esi
call fcn.00476c80
dec edi
mov dword [esi], ebx
jne 0x524330
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0xc], edx
jge 0x5247fa
lea ebx, [esp + 0x68]
lea ecx, [ecx]
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 2
mov dword [esp + 0x28], 0
call fcn.0050b0a0
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x18]
mov ecx, ebx
inc edi
push edx
mov dword [esp + 0x14], edi
add ebx, 4
call fcn.00476cf0
lea ecx, [esp + 0x18]
call fcn.00476c80
cmp edi, 0x40
jge 0x5243b7
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 0xc], eax
mov dword [esp + 0x18], 0
jl 0x524360
cmp edi, 3
jl 0x5247f8
mov ecx, dword [esp + 0x68]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x5243d9
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
mov eax, ecx
and eax, 7
cmp eax, 2
jne 0x5243e3
and ecx, 0x1f
mov eax, ecx
cmp eax, 4
je 0x5243f1
cmp eax, 5
jne 0x5247f8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
call fcn.00476840
mov ecx, dword [esi + 0x228]
push eax
call fcn.004c61a0
lea ecx, [esp + 0x6c]
call fcn.00405c00
test al, al
jne 0x524425
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x524439
lea ecx, [esp + 0x6c]
call fcn.00405bd0
call fcn.004fb6b0
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, dword [esp + 0x28]
push 0x604b6c
push eax
call fcn.0043c150
add esp, 8
test al, al
jne 0x52476e
mov ecx, dword [esp + 0x28]
push str._result
push ecx
call fcn.0043c150
add esp, 8
test al, al
jne 0x52476e
mov edx, dword [esp + 0x28]
push str.onStatus
push edx
call fcn.0043c150
add esp, 8
test al, al
je 0x52451f
mov eax, dword [esi]
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [eax + 0x10]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0x5f8750
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], 2
call fcn.0040c060
mov ecx, dword [esi + 0x228]
push eax
call fcn.004c4c10
test eax, eax
je 0x5247f8
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x228]
call fcn.004c61a0
mov edx, dword [esp + 0x18]
push str.NetStream.Publish.BadName
push edx
call fcn.0043c150
add esp, 8
test al, al
je 0x524511
mov ecx, esi
call fcn.00523e70
lea ecx, [esp + 0x18]
call fcn.00402690
jmp 0x5247f8
lea eax, [edi - 1]
cmp eax, 3
jl 0x524560
lea ebx, [esp + eax*4 + 0x68]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x28]
call fcn.00476840
mov eax, dword [eax]
mov ecx, dword [esi + 0x228]
push eax
call fcn.004150f0
mov eax, dword [esp + 0x10]
sub ebx, 4
dec eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
jne 0x524532
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
add edi, 0xfffffffd
push edi
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esi + 0x224]
push eax
call dword [edx + 8]
movzx ebx, al
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x5247f8
mov ecx, dword [esi + 0x228]
mov edi, dword [esp + 0x34]
push 0
push ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x30], 0x14
call fcn.0054dab0
test edi, edi
je 0x5245d1
mov ecx, edi
call fcn.0054e350
cmp eax, 3
jb 0x5245d1
mov ecx, dword [esp + 0x38]
push 0
add ecx, 4
mov dword [esp + 0x28], 0x11
call fcn.0052d700
test ebx, ebx
mov dword [esp + 0x18], 2
mov dword [esp + 0x20], 0
mov edi, str._result
jne 0x5245ef
mov edi, 0x604b6c
mov ecx, dword [esi + 0x228]
call fcn.004b5360
mov edx, dword [esi + 0x228]
push eax
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.004a5760
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050b0a0
fild dword [esp + 0x14]
mov edx, dword [esp + 0x14]
test edx, edx
mov ecx, dword [esi + 0x228]
push ecx
jge 0x524635
fadd qword [0x5f66f0]
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
call fcn.004a5790
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050b0a0
test ebx, ebx
jne 0x5246cd
mov ecx, dword [esi + 0x228]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 2
mov dword [esp + 0x54], ebx
call fcn.00476ef0
lea ecx, [esp + 0x48]
call fcn.0040c060
mov ecx, dword [esi + 0x228]
push ebx
mov edi, eax
push 0x5fad20
push edi
call fcn.004c0140
push str.NetConnection.Call.Failed
push 0x5f8750
mov ecx, edi
call fcn.004ab260
push 0x5f8768
push 0x5f8758
mov ecx, edi
call fcn.004ab260
mov ecx, dword [esp + 0x38]
push ebx
lea edx, [esp + 0x4c]
push edx
call fcn.0050b0a0
lea ecx, [esp + 0x48]
call fcn.00476c80
jmp 0x52471c
lea ecx, [esp + 0x18]
call fcn.00476e70
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050b0a0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x228]
mov dword [esp + 0x14], 2
call fcn.0040dfb0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
call fcn.00476cf0
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050b0a0
mov ecx, dword [esi + 0x228]
call fcn.0040dff0
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x24]
and eax, 0x7fffffff
push eax
push edi
push ebx
push ecx
lea ecx, [esi + 0x84]
call fcn.0050d370
lea ecx, [esp + 0x18]
call fcn.00476c80
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0
call fcn.0054a940
jmp 0x5247f8
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x10]
push ebx
push eax
call fcn.0051cf60
mov edi, eax
add esp, 8
test edi, edi
je 0x5247f8
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x38]
call fcn.00476840
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
lea edx, [esp + 0x34]
push edx
push edi
push str._result
push ecx
mov dword [esp + 0x20], eax
call fcn.0043c150
add esp, 8
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
call dword [eax + 0x14]
test al, al
jne 0x5247e8
mov edx, dword [esp + 0x28]
push 0x604b6c
push edx
call fcn.0043c150
add esp, 8
test al, al
je 0x5247e8
mov eax, dword [esi]
lea ecx, [esp + 0x74]
push ecx
push 0
push 0
push 0
push 0
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [esi + 0x18]
add edx, 0x10
push ebx
push edx
call fcn.0051c620
add esp, 8
xor ebx, ebx
lea ecx, [esp + 0x40]
call fcn.0054a940
lea ecx, [esp + 0x54]
call fcn.00486bf0
mov eax, dword [esp + 0x28]
push eax
call fcn.005ddc00
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea esi, [esp + 0x168]
mov edi, 0x40
sub esi, 4
mov ecx, esi
call fcn.00476c80
dec edi
mov dword [esi], ebx
jne 0x524831
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4