Function at 0x44d1b0
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [0x5204dc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x3d4], eax
mov edi, ebx
mov eax, dword [0x5204d8]
mov dword [ebp - 0x3d8], ebx
mov dword [ebp - 0x3cc], edi
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
cmp eax, ecx
je 0x44d21c
push 0x5204d8
push ecx
push eax
call fcn.0044c020
mov eax, dword [0x5204d8]
add esp, 0xc
mov dword [0x5204dc], eax
test ebx, ebx
jne 0x44d248
push 0x520514
push ebx
push ebx
call fcn.00404b30
push 1
push eax
push ebx
call fcn.00458190
mov edi, eax
add esp, 0x18
mov dword [ebp - 0x3cc], edi
test edi, edi
je 0x44d2fd
push str.please_wait_5_seconds..._n
call fcn.00401410
push 0
push 0x44ced0
push 5
push 0
push str._raop._tcp.local
push edi
call fcn.00458390
push str._npick_an_AppleTV_or_type__exit__to_leave_pairing_mode_n_n
mov dword [0x5204e8], 0
mov dword [0x5204e4], 0
call fcn.00401410
mov ebx, dword [0x5204dc]
add esp, 0x20
mov esi, dword [0x5204d8]
cmp esi, ebx
je 0x44d2cf
nop dword [eax]
cmp dword [esi + 0x14], 0xf
mov edi, esi
jbe 0x44d2aa
mov edi, dword [esi]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push edi
push eax
push str.__15s____s_n
call fcn.00401410
add esi, 0x20
add esp, 0xc
cmp esi, ebx
jne 0x44d2a0
mov edi, dword [ebp - 0x3cc]
push str._nIP_address:
call fcn.00401410
lea eax, [ebp - 0x70]
push eax
push str._16s
call fcn.00415ef0
lea eax, [ebp - 0x70]
push 0x4df0d4
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 0x14
test eax, eax
jne 0x44d310
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x150]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x180], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 2
mov word [ebp - 0x180], ax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, dword [0x5204d8]
mov ecx, dword [0x5204dc]
mov dword [ebp - 0x17c], eax
cmp ebx, ecx
je 0x44d36c
nop dword [eax]
cmp dword [ebx + 0x18], eax
je 0x44d391
add ebx, 0x20
cmp ebx, ecx
jne 0x44d360
cmp dword [ebp - 0x3d8], 0
jne 0x44d37e
push edi
call fcn.00458140
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x17e], ax
call dword [sym.imp.WS2_32.dll_socket]
movups xmm0, xmmword [ebp - 0x180]
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [ebp - 0x164], edi
push edi
movups xmmword [ecx], xmm0
call fcn.00405700
add esp, 0x14
test al, al
je 0x44d2fd
push str.keep_alive
lea eax, [ebp - 0x150]
push str.Connection
push eax
call fcn.004069d0
push str.application_octet_stream
lea eax, [ebp - 0x150]
push str.Content_Type
push eax
call fcn.004069d0
lea eax, [ebp - 0x150]
push eax
push str.POST__pair_pin_start_HTTP_1.1
push edi
call fcn.004052f0
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x24
test eax, eax
je 0x44d428
push eax
call esi
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
call fcn.004058d0
push 0
push 0xffffffffffffffff
push 0x100
push eax
mov dword [0x5204e8], eax
call fcn.004058f0
lea eax, [ebp - 0x3c4]
push eax
push 0
lea eax, [ebp - 0x150]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00404d80
add esp, 0x30
test al, al
je 0x44de5d
lea eax, [ebp - 0x14]
push 0x4e40ac
push eax
call fcn.00407070
add esp, 8
test eax, eax
je 0x44de5d
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
push str.enter_PIN_code_displayed_on_AppleTV:
call fcn.00401410
lea eax, [ebp - 0x1c]
push eax
push 0x4e40d8
call fcn.00415ef0
add esp, 0x10
mov byte [ebp - 0x20], 0
cmp dword [ebx + 0x14], 0xf
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov eax, ebx
jbe 0x44d4cd
mov eax, dword [ebx]
lea ecx, [ebp - 0x30]
push ecx
push str._16___
push eax
call fcn.004056d0
push 0x50
lea eax, [ebp - 0x2e4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x2e4]
call fcn.004524b0
lea eax, [ebp - 0x30]
push eax
push 0x50
push str.user
push 0x4e40ec
push 0x50
push str.method
lea eax, [ebp - 0x2e4]
push 2
push eax
call fcn.004525e0
add esp, 0x20
mov dword [ebp - 0x158], 0
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
lea ecx, [ebp - 0x2e4]
movq qword [ebp - 0x160], xmm0
push eax
call fcn.004532a0
push str.spotraop
lea eax, [ebp - 0x150]
push str.Server
push eax
call fcn.004069d0
push str.keep_alive
lea eax, [ebp - 0x150]
push str.Connection
push eax
call fcn.004069d0
push str.application_x_apple_binary_plist
lea eax, [ebp - 0x150]
push str.Content_Type
push eax
call fcn.004069d0
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x160]
push eax
push 0x4dc7d4
lea eax, [ebp - 0x150]
push str.Content_Length
push eax
call fcn.00406b70
lea eax, [ebp - 0x150]
push eax
push str.POST__pair_setup_pin_HTTP_1.1
push edi
call fcn.004052f0
mov ecx, dword [ebp - 0x15c]
add esp, 0x40
mov edx, dword [ebp - 0x160]
sub ecx, edx
mov dword [ebp - 0x154], eax
push 0
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.step1_..._verifying_pin_n
call fcn.00401410
mov eax, dword [ebp - 0x154]
add esp, 4
test eax, eax
je 0x44d5ff
push eax
call esi
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
lea eax, [ebp - 0x3c4]
mov dword [ebp - 0x3c0], 0
push eax
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00404d80
add esp, 0x20
test al, al
je 0x44ddcd
lea eax, [ebp - 0x14]
push 0x4e40ac
push eax
call fcn.00407070
add esp, 8
test eax, eax
je 0x44ddcd
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
mov esi, dword [ebp - 0x3c4]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x3c0]
push 0x54
mov dword [ebp - 0x1a8], 0
movups xmmword [ebp - 0x1f4], xmm0
mov dword [ebp - 0x1b4], 0
movups xmmword [ebp - 0x1e4], xmm0
mov dword [ebp - 0x1ac], 0
movups xmmword [ebp - 0x1d4], xmm0
movups xmmword [ebp - 0x1c4], xmm0
call fcn.004d4281
add esp, 8
lea ecx, [ebp - 0x1f4]
mov dword [eax], eax
push esi
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push edi
mov dword [ebp - 0x1b0], eax
call fcn.00452810
sub esp, 0x18
mov dword [ebp - 0x174], 0
mov ecx, esp
xorps xmm0, xmm0
movq qword [ebp - 0x17c], xmm0
push 2
movups xmmword [ecx], xmm0
push 0x4de6b8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409320
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.0044cdf0
sub esp, 0x18
mov dword [ebp - 0x19c], 0
mov ecx, esp
xorps xmm0, xmm0
movq qword [ebp - 0x1a4], xmm0
push 4
movups xmmword [ecx], xmm0
push str.salt
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409320
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.0044cdf0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x190], 0
push eax
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
sub esp, 0xc
movq qword [ebp - 0x198], xmm0
lea eax, [ebp - 0x1a4]
mov ecx, esp
push eax
call fcn.00417f80
sub esp, 0xc
lea eax, [ebp - 0x17c]
mov ecx, esp
push eax
call fcn.00417f80
lea eax, [ebp - 0x198]
push eax
call fcn.0044c9a0
push 0x50
lea eax, [ebp - 0x294]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
lea ecx, [ebp - 0x294]
call fcn.004524b0
push dword [0x5204e4]
call fcn.004058e0
add eax, 7
xor esi, esi
cdq
add esp, 4
and edx, 7
mov dword [ebp - 0x18c], esi
add eax, edx
mov dword [ebp - 0x188], esi
sar eax, 3
xor edi, edi
mov dword [ebp - 0x3c8], eax
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x154], esi
test eax, eax
je 0x44d84a
push eax
lea ecx, [ebp - 0x18c]
call fcn.00416610
mov edi, dword [ebp - 0x3c8]
push edi
push esi
mov esi, dword [ebp - 0x18c]
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x154], esi
add edi, esi
mov dword [ebp - 0x188], edi
push esi
push dword [0x5204e4]
call fcn.00405890
mov eax, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x198]
sub eax, ecx
sub edi, dword [ebp - 0x154]
push eax
push ecx
push 0x40
push str.proof
push edi
push esi
push 0x40
push 0x4de6b8
lea eax, [ebp - 0x294]
push 2
push eax
call fcn.004525e0
add esp, 0x30
lea eax, [ebp - 0x170]
lea ecx, [ebp - 0x294]
push eax
call fcn.004532a0
mov esi, eax
lea eax, [ebp - 0x160]
cmp eax, esi
je 0x44d8e0
mov ecx, eax
call fcn.0040ce30
mov ecx, dword [esi]
mov dword [ebp - 0x160], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x15c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x158], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x170]
call fcn.0040ce30
push str.spotraop
lea eax, [ebp - 0x150]
push str.Server
push eax
call fcn.004069d0
push str.keep_alive
lea eax, [ebp - 0x150]
push str.Connection
push eax
call fcn.004069d0
push str.application_x_apple_binary_plist
lea eax, [ebp - 0x150]
push str.Content_Type
push eax
call fcn.004069d0
mov eax, dword [ebp - 0x15c]
sub eax, dword [ebp - 0x160]
push eax
push 0x4dc7d4
lea eax, [ebp - 0x150]
push str.Content_Length
push eax
call fcn.00406b70
mov edi, dword [ebp - 0x164]
lea eax, [ebp - 0x150]
push eax
push str.POST__pair_setup_pin_HTTP_1.1
push edi
call fcn.004052f0
mov ecx, dword [ebp - 0x15c]
add esp, 0x40
mov edx, dword [ebp - 0x160]
mov esi, eax
sub ecx, edx
push 0
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.step2_..._verifying_M1_n
call fcn.00401410
add esp, 4
test esi, esi
je 0x44d9a1
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
lea eax, [ebp - 0x3c4]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00404d80
add esp, 0x20
test al, al
je 0x44dd83
lea eax, [ebp - 0x14]
push 0x4e40ac
push eax
call fcn.00407070
add esp, 8
test eax, eax
je 0x44dd83
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
push 0x520518
push dword [0x5204e8]
call fcn.00405890
push 0x20
push 0x520518
push 0
push 0x43f
call fcn.00405a40
mov esi, eax
mov dword [ebp - 0x164], 0x20
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.00405a30
push esi
call fcn.00405a10
lea eax, [ebp - 0x3bc]
push eax
call fcn.00405b20
push 0x12
lea eax, [ebp - 0x3bc]
push str.Pair_Setup_AES_Key
push eax
call fcn.00405b30
push 0x28
lea eax, [ebp - 0x3bc]
push 0x5204ec
push eax
call fcn.00405b30
add esp, 0x48
lea eax, [ebp - 0x3bc]
push eax
push 0x520518
call fcn.00405b10
movups xmm0, xmmword [0x520518]
lea eax, [ebp - 0x3bc]
push eax
movups xmmword [ebp - 0x80], xmm0
call fcn.00405b20
push 0x11
lea eax, [ebp - 0x3bc]
push str.Pair_Setup_AES_IV
push eax
call fcn.00405b30
push 0x28
lea eax, [ebp - 0x3bc]
push 0x5204ec
push eax
call fcn.00405b30
lea eax, [ebp - 0x3bc]
push eax
push 0x520518
call fcn.00405b10
movups xmm0, xmmword [0x520518]
add esp, 0x2c
movups xmmword [ebp - 0x50], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
inc al
mov byte [ebp - 0x41], al
call fcn.00405940
push 0
push 0
mov esi, eax
call fcn.00405a60
push eax
push esi
call fcn.00405980
push 0
push 0x10
push 9
push esi
call fcn.00405920
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push esi
call fcn.00405980
push 0x20
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00405990
add esp, 0x44
lea eax, [ebp - 0x154]
push eax
push 0
push esi
call fcn.00405970
lea eax, [ebp - 0x90]
push eax
push 0x10
push 0x10
push esi
call fcn.00405920
push esi
call fcn.00405930
push 0x50
lea eax, [ebp - 0x244]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x2c
lea ecx, [ebp - 0x244]
call fcn.004524b0
push 0x10
lea eax, [ebp - 0x90]
push eax
push 0x40
push str.authTag
push 0x20
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 0x4e41b0
lea eax, [ebp - 0x244]
push 2
push eax
call fcn.004525e0
add esp, 0x28
mov dword [ebp - 0x168], 0
lea eax, [ebp - 0x170]
xorps xmm0, xmm0
lea ecx, [ebp - 0x244]
movq qword [ebp - 0x170], xmm0
push eax
call fcn.004532a0
push str.spotraop
lea eax, [ebp - 0x150]
push str.Server
push eax
call fcn.004069d0
push str.keep_alive
lea eax, [ebp - 0x150]
push str.Connection
push eax
call fcn.004069d0
push str.application_x_apple_binary_plist
lea eax, [ebp - 0x150]
push str.Content_Type
push eax
call fcn.004069d0
mov eax, dword [ebp - 0x16c]
sub eax, dword [ebp - 0x170]
push eax
push 0x4dc7d4
lea eax, [ebp - 0x150]
push str.Content_Length
push eax
call fcn.00406b70
lea eax, [ebp - 0x150]
push eax
push str.POST__pair_setup_pin_HTTP_1.1
push edi
call fcn.004052f0
mov ecx, dword [ebp - 0x16c]
add esp, 0x40
mov edx, dword [ebp - 0x170]
mov esi, eax
sub ecx, edx
push 0
push ecx
push edx
push edi
call dword [sym.imp.WS2_32.dll_send]
push str.step3_..._verifying_AES_n
call fcn.00401410
add esp, 4
test esi, esi
je 0x44dc9a
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0x150]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00404d80
add esp, 0x20
test al, al
je 0x44dd5b
lea eax, [ebp - 0x14]
push 0x4e40ac
push eax
call fcn.00407070
add esp, 8
test eax, eax
je 0x44dd5b
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
push dword [0x5204e8]
call fcn.004058b0
mov esi, eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x3d4]
add esp, 0xc
cmp dword [ebp - 0x3d0], 0
mov dword [ecx], eax
je 0x44dd39
cmp dword [ebx + 0x14], 0xf
jbe 0x44dd27
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov ecx, dword [ebp - 0x3d0]
add esp, 4
mov dword [ecx], eax
push 0x186
push str.D:UsersphiliDropboxDevelopmentlibraop_srcpairing.cpp
push esi
call fcn.00405900
mov ecx, dword [ebp - 0x3d4]
add esp, 0xc
mov eax, str.success__nsecret_is__s_n
mov ecx, dword [ecx]
jmp 0x44dd63
mov eax, str.cant_authentify__error__s
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00401410
add esp, 8
lea ecx, [ebp - 0x170]
call fcn.0040ce30
lea ecx, [ebp - 0x244]
call fcn.0044c680
lea ecx, [ebp - 0x18c]
call fcn.0040ce30
lea ecx, [ebp - 0x294]
call fcn.0044c680
lea ecx, [ebp - 0x198]
call fcn.0040ce30
lea ecx, [ebp - 0x1a4]
call fcn.0040ce30
lea ecx, [ebp - 0x17c]
call fcn.0040ce30
lea ecx, [ebp - 0x1f4]
call fcn.0044c680
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x44ddde
lea eax, [ebp - 0x14]
push eax
push str.pin_failed__s
call fcn.00401410
add esp, 8
mov eax, dword [ebp - 0x3c0]
test eax, eax
je 0x44ddf8
push eax
call esi
add esp, 4
mov dword [ebp - 0x3c0], 0
mov ecx, dword [ebp - 0x160]
test ecx, ecx
je 0x44de52
mov edx, dword [ebp - 0x158]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x44de2a
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44de2a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004d42b1
add esp, 8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
lea ecx, [ebp - 0x2e4]
call fcn.0044c680
mov eax, dword [0x5204e8]
test eax, eax
je 0x44de6f
push eax
call fcn.004058c0
add esp, 4
mov eax, dword [0x5204e4]
test eax, eax
je 0x44de81
push eax
call fcn.004058c0
add esp, 4
lea eax, [ebp - 0x150]
push eax
call fcn.00406af0
add esp, 4
cmp edi, 0xffffffff
je 0x44de9c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [ebp - 0x3d8], 0
jne 0x44d37e
push dword [ebp - 0x3cc]
jmp 0x44d376