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

Disassembly:
push ebp
mov eax, 0x310c
push edi
push esi
push ebx
call fcn.01087f10
sub esp, eax
mov eax, dword [esp + 0x3120]
mov dword [esp + 0x3c], str.x_pn_tng
mov ebx, dword [eax + 0xc]
mov eax, str.RTP_AVP
mov ebp, dword [ebx + 8]
cmp dword [ebx + 0x230], 1
cmove eax, dword [esp + 0x3c]
mov dword [ebx + 0x224], 0x3c
test ebp, ebp
mov dword [esp + 0x3c], eax
jle 0x5046c1
mov eax, ebp
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0x1388
mov dword [esp + 0x48], 0
mov edx, dword [esp + 0x312c]
test edx, edx
jne 0x5041d4
mov eax, dword [ebx + 0x238]
cmp eax, 2
je 0x504437
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x38]
mov ebp, dword [eax + edx]
cmp dword [esp + 0x40], 0x2710
jg 0x504640
mov ecx, dword [esp + 0x3120]
lea edx, [esp + 0x2fc8]
mov dword [esp + 0x4c], ebx
mov edi, dword [esp + 0x40]
lea esi, [ecx + 0x4d0]
mov ebx, esi
mov esi, edx
jmp 0x503eac
cmp edi, 0x2710
jg 0x504640
mov eax, dword [esp + 0x3124]
mov dword [esp + 0x1c], edi
add edi, 2
mov dword [esp + 0x18], 0x1128865
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x11283c6
mov dword [esp + 4], 0x100
mov dword [esp], esi
call fcn.0047deb0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00480cb0
test eax, eax
jne 0x503ea0
mov eax, dword [ebp]
mov dword [esp + 0x40], edi
mov ebx, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00523aa0
mov edi, eax
mov eax, dword [esp + 0x3c]
lea esi, [esp + 0x23c8]
mov dword [esp + 8], str._s_UDP_
mov dword [esp + 4], 0x7ff
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.01088520
cmp dword [ebx + 0x238], 1
je 0x503f6f
mov dword [esp + 8], 0x800
mov dword [esp + 4], str.unicast_
mov dword [esp], esi
call fcn.00acfc40
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.client_port_d
mov dword [esp + 4], 0x800
mov dword [esp], esi
call fcn.00acfce0
mov eax, dword [ebx + 0x230]
test eax, eax
jne 0x503fb0
mov eax, dword [esp + 0x30]
test eax, eax
jle 0x5045b6
cmp dword [ebx + 0x238], 2
jne 0x5045b6
nop
mov eax, dword [esp + 0x3120]
mov edi, dword [eax + 8]
test edi, edi
je 0x504233
mov dword [esp + 8], 0x800
mov dword [esp + 4], str._modereceive
mov dword [esp], esi
call fcn.00acfc40
lea edx, [esp + 0x1bc8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], str.Transport:__s_r_n
mov dword [esp + 4], 0x800
mov dword [esp], edx
call fcn.01088520
mov esi, dword [ebx + 0x1698]
test esi, esi
jne 0x5042d3
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x504262
cmp dword [ebx + 0x238], 1
je 0x5045e0
lea eax, [esp + 0x1bc8]
mov edx, str.SETUP
mov dword [esp], eax
mov eax, dword [esp + 0x3120]
lea ecx, [ebp + 0x14]
lea esi, [esp + 0x58]
mov dword [esp + 4], esi
call fcn.00502ea0
mov eax, dword [esp + 0x5c]
cmp eax, 0x1cd
je 0x5046f0
cmp eax, 0xc8
jne 0x504410
cmp dword [esp + 0x60], 1
jne 0x504410
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x168]
test edx, edx
je 0x5042f7
cmp eax, dword [ebx + 0x234]
jne 0x504410
mov edx, dword [ebx + 0x230]
cmp dword [esp + 0x164], edx
jne 0x504410
cmp eax, dword [esp + 0x312c]
jne 0x504700
cmp dword [esp + 0x312c], 1
je 0x504310
jae 0x504291
mov dword [esp + 0x2fc8], 0
xor eax, eax
mov dword [esp + eax + 0x2fcc], 0
add eax, 4
cmp eax, 0x18
jb 0x5040cf
mov word [esp + eax + 0x2fcc], 0
lea esi, [esp + 0x2fc8]
test byte [ebx + 0x169c], 1
mov dword [esp + 0x34], esi
je 0x504118
mov dword [esp + 8], 0x1e
mov dword [esp + 4], str._connect1
mov dword [esp], esi
call fcn.00acfbe0
cmp byte [esp + 0x120], 0
je 0x504670
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 0x1128986
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x120]
mov dword [esp + 0x10], eax
lea esi, [esp + 0x2bc8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x11283c6
mov dword [esp + 4], 0x400
mov dword [esp], esi
call fcn.0047deb0
cmp dword [esp + 0x30], 1
setle dl
jle 0x50418a
cmp dword [ebx + 0x238], 2
je 0x50429f
mov dword [esp + 4], esi
mov eax, dword [ebp]
mov byte [esp + 0x2c], dl
mov dword [esp], eax
call fcn.00523950
movzx edx, byte [esp + 0x2c]
test eax, eax
js 0x504410
test dl, dl
je 0x504736
mov esi, dword [esp + 0x3120]
mov eax, dword [esi + 4]
test eax, eax
je 0x50429f
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.005261d0
jmp 0x50429f
mov edx, dword [ebx + 0xc]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x312c], 1
mov ebp, dword [edx + ecx]
je 0x5044a4
cmp dword [esp + 0x312c], 2
lea esi, [esp + 0x23c8]
jne 0x503fb0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], str._s_UDP_multicast
mov dword [esp + 4], 0x7ff
mov dword [esp], esi
mov dword [esp + 0xc], ecx
call fcn.01088520
mov eax, dword [esp + 0x3120]
mov edi, dword [eax + 8]
test edi, edi
jne 0x503fc2
mov eax, dword [ebx + 0x238]
sub eax, 1
cmp eax, 1
ja 0x503fda
mov dword [esp + 8], 0x800
mov dword [esp + 4], str._modeplay
mov dword [esp], esi
call fcn.00acfc40
jmp 0x503fda
lea eax, [esp + 0x1bc8]
mov edx, str.SETUP
mov dword [esp], eax
mov eax, dword [esp + 0x3120]
lea ecx, [ebp + 0x14]
lea esi, [esp + 0x58]
mov dword [esp + 4], esi
call fcn.00502ea0
mov eax, dword [esp + 0x5c]
jmp 0x504059
cmp dword [esp + 0x312c], 2
je 0x504323
mov eax, dword [esp + 0x3120]
mov edx, ebp
call fcn.004ffb30
test eax, eax
jne 0x504415
mov eax, dword [ebx + 8]
add dword [esp + 0x30], 1
add dword [esp + 0x38], 4
cmp dword [esp + 0x30], eax
jge 0x5046c1
mov ebp, eax
jmp 0x503e46
lea ecx, [esp + 0x1bc8]
mov dword [esp + 8], 0x800
mov dword [esp + 4], str.x_Dynamic_Rate:_0_r_n
mov dword [esp], ecx
call fcn.00acfc40
jmp 0x50400b
mov edx, dword [esp + 0x164]
mov dword [ebx + 0x234], eax
mov dword [ebx + 0x230], edx
jmp 0x5040a1
mov eax, dword [esp + 0x78]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [ebp + 0x10], eax
jmp 0x50429f
cmp word [esp + 0xa0], 0
je 0x504530
lea eax, [esp + 0x2fc8]
mov ecx, 0x20
mov dword [esp + 0x34], eax
lea esi, [esp + 0xa0]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov edx, dword [esp + 0x80]
mov edi, dword [esp + 0x98]
lea esi, [esp + 0x30ce]
mov dword [esp], ecx
mov dword [esp + 8], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x32
mov dword [esp + 4], pe_nt_image_headers32
call fcn.00485f00
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edi
lea edi, [esp + 0x2bc8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x1128989
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x11283c6
mov dword [esp + 4], 0x400
mov dword [esp], edi
call fcn.0047deb0
mov esi, dword [esp + 0x3120]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
mov dword [esp + 4], edi
add esi, 0x4d0
mov dword [esp + 0xc], esi
mov dword [esp], ebp
call fcn.00480cb0
test eax, eax
jns 0x50429f
mov eax, 0xbebbb1b7
mov esi, dword [esp + 0x3120]
mov dword [esp + 0x2c], eax
mov dword [esp], esi
call fcn.00501de0
mov eax, dword [esp + 0x2c]
add esp, 0x310c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x504560
test ebp, ebp
jle 0x504729
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x4c], ebx
xor ebx, ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x34]
mov esi, dword [edx + ebx*4]
lea eax, [esi + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 3
jle 0x50448d
lea esi, [esi + eax + 0x10]
mov edi, str._rtx
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
je 0x5046a0
add ebx, 1
cmp ebx, ebp
jne 0x504460
add esp, 0x310c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebx + 0x238], 2
je 0x504591
mov eax, dword [esp + 0x3c]
lea esi, [esp + 0x23c8]
mov dword [esp + 8], str._s_TCP_
mov dword [esp + 4], 0x7ff
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.01088520
cmp dword [ebx + 0x230], 1
je 0x5044f9
mov dword [esp + 8], 0x800
mov dword [esp + 4], str.unicast_
mov dword [esp], esi
call fcn.00acfc40
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [esp + 8], str.interleaved_d__d
mov dword [esp + 4], 0x800
add eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
call fcn.00acfce0
add dword [esp + 0x44], 2
jmp 0x503fb0
lea edx, [esp + 0x2fc8]
mov ecx, 0x20
mov dword [esp + 0x34], edx
mov edi, edx
lea esi, [ebp + 0x418]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x414]
mov edi, dword [ebp + 0x498]
jmp 0x50435d
mov eax, dword [esp + 0x38]
mov edx, dword [ebx + 0xc]
mov esi, dword [esp + 0x30]
sub eax, 4
cmp dword [esp + 0x48], esi
cmovl eax, dword [esp + 0x38]
mov ebp, dword [edx + eax]
cmp dword [esp + 0x30], 1
jle 0x503e6e
mov edi, dword [esp + 0x88]
jmp 0x503f27
mov esi, dword [esp + 0x3120]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0x18]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + 8]
cmp dword [edx + 0xd0], 2
jne 0x5044b1
jmp 0x5042b8
add edi, 1
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x11288b6
mov dword [esp + 4], 0x800
mov dword [esp], esi
call fcn.00acfce0
jmp 0x503fb0
mov esi, dword [esp + 0x3130]
lea eax, [esp + 0x2fc8]
mov dword [esp + 0x34], eax
mov dword [esp + 4], eax
mov dword [esp + 8], esi
lea esi, [esp + 0x30ce]
mov dword [esp], esi
call fcn.00527410
mov edx, dword [esp + 0x34]
lea eax, [ebx + 0x24]
lea ecx, [esp + 0x1bc8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.If_Match:__s_r_nRealChallenge2:__s__sd_s_r_n
mov dword [esp + 4], 0x800
mov dword [esp], ecx
call fcn.00acfce0
jmp 0x504024
mov esi, dword [esp + 0x3120]
mov dword [esp + 8], str.Unable_to_open_an_input_RTP_port_n
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00acfa00
mov eax, 0xfffffffb
jmp 0x504415
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x3124]
mov dword [esp + 0x18], 0x1128986
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jmp 0x50414c
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x48], ebp
je 0x504494
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x48]
mov ebp, dword [eax + ecx*4]
jmp 0x50457a
mov eax, dword [esp + 0x1abc]
test eax, eax
jle 0x5046d2
mov dword [ebx + 0x224], eax
xor eax, eax
cmp dword [ebx + 0x238], 1
jne 0x50442c
mov dword [ebx + 0xe50], 1
jmp 0x50442c
mov eax, 1
jmp 0x504415
mov ecx, dword [esp + 0x3120]
mov dword [esp + 8], str.Nonmatching_transport_in_server_reply_n
mov dword [esp + 4], 0x10
mov dword [esp], ecx
call fcn.00acfa00
mov eax, 0xbebbb1b7
jmp 0x504415
mov dword [esp + 0x48], 0
jmp 0x5046a8
cmp dword [ebx + 0x238], 2
jne 0x5041b2
jmp 0x50429f