Function at 0x5238d0
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.00487db0
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.0054d100
mov al, byte [ebx + 8]
xor ebx, ebx
cmp al, 0x11
jne 0x523a28
cmp edi, ebx
je 0x5239d7
mov ecx, edi
call fcn.0054da30
cmp eax, 3
jb 0x5239d7
mov ecx, dword [esp + 0x24]
cmp byte [ecx], 0
je 0x523a28
lea ecx, [esp + 0x40]
call fcn.00549fe0
lea ecx, [esp + 0x54]
call fcn.00486950
mov edx, dword [esp + 0x28]
push edx
call fcn.005dd350
add esp, 4
push 0x434c50
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.00549fe0
lea ecx, [esp + 0x54]
call fcn.00486950
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005dd350
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.00476aa0
dec edi
mov dword [esi], ebx
jne 0x523a10
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 0x523eda
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.0050a7b0
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.00476b10
lea ecx, [esp + 0x18]
call fcn.00476aa0
cmp edi, 0x40
jge 0x523a97
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp dword [ecx + 0xc], eax
mov dword [esp + 0x18], 0
jl 0x523a40
cmp edi, 3
jl 0x523ed8
mov ecx, dword [esp + 0x68]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x523ab9
and ecx, 0xfffffff8
mov ecx, dword [ecx + 0xc]
mov eax, ecx
and eax, 7
cmp eax, 2
jne 0x523ac3
and ecx, 0x1f
mov eax, ecx
cmp eax, 4
je 0x523ad1
cmp eax, 5
jne 0x523ed8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
call fcn.00476660
mov ecx, dword [esi + 0x228]
push eax
call fcn.004c5810
lea ecx, [esp + 0x6c]
call fcn.00405c20
test al, al
jne 0x523b05
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x523b19
lea ecx, [esp + 0x6c]
call fcn.00405bf0
call fcn.004fae80
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, dword [esp + 0x28]
push 0x604b9c
push eax
call fcn.0043bfe0
add esp, 8
test al, al
jne 0x523e4e
mov ecx, dword [esp + 0x28]
push str._result
push ecx
call fcn.0043bfe0
add esp, 8
test al, al
jne 0x523e4e
mov edx, dword [esp + 0x28]
push str.onStatus
push edx
call fcn.0043bfe0
add esp, 8
test al, al
je 0x523bff
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 0x5f8760
lea ecx, [esp + 0x84]
mov dword [esp + 0x20], 2
call fcn.00426650
mov ecx, dword [esi + 0x228]
push eax
call fcn.004c4280
test eax, eax
je 0x523ed8
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.004c5810
mov edx, dword [esp + 0x18]
push str.NetStream.Publish.BadName
push edx
call fcn.0043bfe0
add esp, 8
test al, al
je 0x523bf1
mov ecx, esi
call fcn.00523550
lea ecx, [esp + 0x18]
call fcn.00423ae0
jmp 0x523ed8
lea eax, [edi - 1]
cmp eax, 3
jl 0x523c40
lea ebx, [esp + eax*4 + 0x68]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
push ebx
lea ecx, [esp + 0x28]
call fcn.00476660
mov eax, dword [eax]
mov ecx, dword [esi + 0x228]
push eax
call fcn.00415110
mov eax, dword [esp + 0x10]
sub ebx, 4
dec eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
jne 0x523c12
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 0x523ed8
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.0054d190
test edi, edi
je 0x523cb1
mov ecx, edi
call fcn.0054da30
cmp eax, 3
jb 0x523cb1
mov ecx, dword [esp + 0x38]
push 0
add ecx, 4
mov dword [esp + 0x28], 0x11
call fcn.0052cdc0
test ebx, ebx
mov dword [esp + 0x18], 2
mov dword [esp + 0x20], 0
mov edi, str._result
jne 0x523ccf
mov edi, 0x604b9c
mov ecx, dword [esi + 0x228]
call fcn.004b4e00
mov edx, dword [esi + 0x228]
push eax
push edi
push edx
lea ecx, [esp + 0x24]
call fcn.004a5560
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050a7b0
fild dword [esp + 0x14]
mov edx, dword [esp + 0x14]
test edx, edx
mov ecx, dword [esi + 0x228]
push ecx
jge 0x523d15
fadd qword [0x5f66f0]
sub esp, 8
lea ecx, [esp + 0x24]
fstp qword [esp]
call fcn.004a5590
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050a7b0
test ebx, ebx
jne 0x523dad
mov ecx, dword [esi + 0x228]
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], 2
mov dword [esp + 0x54], ebx
call fcn.00476d10
lea ecx, [esp + 0x48]
call fcn.00426650
mov ecx, dword [esi + 0x228]
push ebx
mov edi, eax
push 0x5fad20
push edi
call fcn.004bf7a0
push str.NetConnection.Call.Failed
push 0x5f8760
mov ecx, edi
call fcn.004aafa0
push 0x5f8778
push 0x5f8768
mov ecx, edi
call fcn.004aafa0
mov ecx, dword [esp + 0x38]
push ebx
lea edx, [esp + 0x4c]
push edx
call fcn.0050a7b0
lea ecx, [esp + 0x48]
call fcn.00476aa0
jmp 0x523dfc
lea ecx, [esp + 0x18]
call fcn.00476c90
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050a7b0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x228]
mov dword [esp + 0x14], 2
call fcn.0040df80
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
call fcn.00476b10
mov ecx, dword [esp + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
call fcn.0050a7b0
mov ecx, dword [esi + 0x228]
call fcn.0040dfc0
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
call dword [0x5f6554]
mov ecx, dword [esp + 0x24]
and eax, 0x7fffffff
push eax
push edi
push ebx
push ecx
lea ecx, [esi + 0x84]
call fcn.0050ca80
lea ecx, [esp + 0x18]
call fcn.00476aa0
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0
call fcn.00549fe0
jmp 0x523ed8
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x10]
push ebx
push eax
call fcn.0051c6b0
mov edi, eax
add esp, 8
test edi, edi
je 0x523ed8
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x38]
call fcn.00476660
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.0043bfe0
add esp, 8
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
call dword [eax + 0x14]
test al, al
jne 0x523ec8
mov edx, dword [esp + 0x28]
push 0x604b9c
push edx
call fcn.0043bfe0
add esp, 8
test al, al
je 0x523ec8
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.0051bd70
add esp, 8
xor ebx, ebx
lea ecx, [esp + 0x40]
call fcn.00549fe0
lea ecx, [esp + 0x54]
call fcn.00486950
mov eax, dword [esp + 0x28]
push eax
call fcn.005dd350
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.00476aa0
dec edi
mov dword [esi], ebx
jne 0x523f11
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4