Function at 0x425aa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x5c
mov dword [ebp - 0x3c], eax
mov eax, 0x529430
mov dword [ebp - 0x40], ecx
call fcn.00423a40
test eax, eax
mov ebx, eax
je 0x425f93
mov eax, dword [0x5551ac]
test eax, eax
je 0x425c41
mov eax, 2
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
movzx eax, word [ebp - 0x3c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x40]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htonl]
sub esp, 4
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00423bd0
mov dword [esp + 4], esi
mov dword [esp], 2
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x425d29
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 1
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xfffffffb
mov dword [esp + 4], 0xffff
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
cmp eax, 0xffffffff
je 0x425db3
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x425ed8
cmp esi, 1
je 0x425c70
mov ecx, dword [ebx + 4]
mov edx, 0xffffffff
test ecx, ecx
je 0x425bd2
cmp ebx, 0x5551c0
jb 0x425bd2
cmp ebx, 0x56f1c0
jb 0x425c50
cmp esi, 1
mov eax, 0x528530
mov ecx, str.udp:
mov edi, 0x528541
cmove ecx, eax
mov eax, 0x52853e
cmp dword [ebp - 0x40], 0x7f000001
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
cmovne eax, edi
mov edi, dword [ebp - 0x3c]
add ebx, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._d__s_server:_s_d_
mov dword [esp + 4], 0x20
mov dword [esp + 0x18], edi
mov dword [esp], ebx
mov dword [ebp - 0x40], edx
call fcn.00423ba0
mov edx, dword [ebp - 0x40]
test byte [0x55503c], 0x80
jne 0x425fc9
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00424490
jmp 0x425ad2
mov edx, ebx
sub edx, 0x5551c0
sar edx, 2
imul edx, edx, 0xc4ec4ec5
add edx, 0x800
jmp 0x425bd2
mov dword [esp + 4], 4
mov dword [esp], edi
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 8
cmp eax, 0xffffffff
jne 0x425bb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea esi, [ebp - 0x30]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x40], eax
call fcn.0042ecc0
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.cannot_listen_on_socket:__s
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0042e9a0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004e25a0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x35]
push edi
mov dword [esp], eax
call fcn.004e2330
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [eax - 0xc]
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.004e2330
test byte [0x55503c], 0x80
push eax
jne 0x426249
mov edi, dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [ebp - 0x40]
call fcn.00423500
lea esi, [esi]
call edi
mov esi, dword [eax]
mov eax, ebx
call fcn.004239c0
call edi
mov edx, 0xffffffff
mov dword [eax], esi
jmp 0x425c37
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [ebp - 0x40], eax
call fcn.0042ecc0
lea eax, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 4], str.cannot_create_socket:__s
mov dword [esp + 8], eax
call fcn.0042e9a0
mov ecx, dword [ebp + 8]
mov dword [esp], edi
call fcn.004e25a0
mov edx, dword [ebp - 0x2c]
lea edi, [edx - 0xc]
sub esp, 4
cmp edi, 0x51ef30
jne 0x426392
mov edx, dword [ebp - 0x30]
lea edi, [edx - 0xc]
cmp edi, 0x51ef30
jne 0x426362
test byte [0x55503c], 0x80
jne 0x426306
mov edi, dword [sym.imp.msvcrt.dll__errno]
mov eax, esi
call fcn.00423500
jmp 0x425d10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [ebp - 0x40], eax
call fcn.0042ecc0
lea eax, [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
mov dword [esp + 4], str.cannot_set_socket_option_SO_EXCLUSIVEADDRUSE:__s
mov dword [esp + 8], eax
call fcn.0042e9a0
mov ecx, dword [ebp + 8]
mov dword [esp], edi
call fcn.004e25a0
mov edx, dword [ebp - 0x2c]
lea edi, [edx - 0xc]
sub esp, 4
cmp edi, 0x51ef30
jne 0x426192
mov edx, dword [ebp - 0x30]
lea edi, [edx - 0xc]
cmp edi, 0x51ef30
jne 0x426162
test byte [0x55503c], 0x80
je 0x425da1
call fcn.0042d960
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x425da7
call edi
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax]
mov dword [esp + 4], 0x52855e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.0042e9a0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3a3
mov ecx, dword [ebp - 0x40]
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, dword [ebp - 0x40]
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050d650
mov ecx, dword [ebp - 0x40]
call fcn.0042dc40
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
mov dword [esp], eax
sub ecx, 0xc
call fcn.004e2330
push eax
call edi
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
jmp 0x425da7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x40], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x48], eax
call fcn.0042ecc0
movzx eax, word [ebp - 0x26]
mov edi, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
sub esp, 4
mov dword [esp + 0x10], edi
movzx edi, word [ebp - 0x4c]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.cannot_bind_to__s:_u:__s
mov dword [esp + 0xc], edi
mov edi, ecx
call fcn.0042e9a0
mov ecx, dword [ebp + 8]
mov dword [esp], edi
call fcn.004e25a0
mov edx, dword [ebp - 0x2c]
lea edi, [edx - 0xc]
sub esp, 4
cmp edi, 0x51ef30
jne 0x426209
mov edx, dword [ebp - 0x30]
lea edi, [edx - 0xc]
cmp edi, 0x51ef30
jne 0x4261d7
test byte [0x55503c], 0x80
jne 0x426095
mov edi, dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [ebp - 0x48]
call fcn.00423500
jmp 0x425d10
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00425970
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004e2b90
mov edx, 0xffffffff
sub esp, 8
jmp 0x425c37
call fcn.0042d960
mov edx, dword [ebp - 0x40]
cmp eax, 2
jg 0x425c37
mov edi, dword [sym.imp.msvcrt.dll__errno]
lea ebx, [ebp - 0x30]
mov dword [ebp - 0x44], edx
call edi
sub esi, 1
mov edx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov ecx, 0x528535
mov eax, dword [eax]
mov dword [esp + 0x10], edx
mov dword [esp + 8], esi
mov dword [esp + 4], str.port__d_type__s___fd__d
mov dword [ebp - 0x40], eax
mov eax, 0x528531
cmove eax, ecx
lea ecx, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp], ecx
call fcn.0042e9a0
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3c1
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, ebx
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
call fcn.0050d650
mov ecx, ebx
call fcn.0042dc40
mov esi, dword [ebp - 0x2c]
mov dword [esp], ebx
lea ecx, [esi - 0xc]
call fcn.004e2330
push eax
call edi
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
mov dword [eax], ecx
jmp 0x425c37
call fcn.0042d960
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x425f86
call edi
sub esi, 1
mov ecx, 0x528535
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
mov eax, dword [eax]
mov dword [esp + 4], str.could_not_bind_to__s:_d:__s
mov edx, eax
mov eax, 0x528531
cmove eax, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.0042e9a0
mov esi, dword [ebp - 0x40]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov ecx, esi
mov dword [esp + 4], 0x3ae
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
mov dword [ebp - 0x40], esi
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], esi
call fcn.0050d650
mov esi, dword [ebp - 0x40]
mov ecx, esi
call fcn.0042dc40
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
lea ecx, [eax - 0xc]
call fcn.004e2330
push eax
call edi
mov edx, dword [ebp - 0x4c]
mov dword [eax], edx
jmp 0x425f86
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x4261c2
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x425e1e
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push edx
jmp 0x425e1e
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x4261c9
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x425e0c
lea eax, [ebp - 0x35]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push ecx
jmp 0x425e0c
call fcn.00516180
jmp 0x426177
lea esi, [esi]
call fcn.00516180
jmp 0x4261a7
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x42623b
mov ecx, dword [edx - 4]
lea eax, [ecx - 1]
mov dword [edx - 4], eax
mov eax, ecx
test eax, eax
jg 0x425f73
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x425f73
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x426242
mov ecx, dword [edx - 4]
lea eax, [ecx - 1]
mov dword [edx - 4], eax
mov eax, ecx
test eax, eax
jg 0x425f61
lea eax, [ebp - 0x35]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x425f61
call fcn.00516180
jmp 0x4261ee
call fcn.00516180
jmp 0x426220
lea esi, [esi]
call fcn.0042d960
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x425d05
call edi
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], edx
mov eax, dword [eax]
mov dword [esp + 8], 0x528535
mov dword [esp + 4], str.could_not_listen_on__s:_d:__s
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3b8
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050d650
mov ecx, esi
call fcn.0042dc40
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
lea ecx, [eax - 0xc]
call fcn.004e2330
push esi
call edi
mov edx, dword [ebp - 0x44]
mov dword [eax], edx
jmp 0x425d05
call fcn.0042d960
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x425da7
call edi
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], edx
mov eax, dword [eax]
mov dword [esp + 4], 0x52855e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.0042e9a0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x395
jmp 0x425e82
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x4263c2
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x425d94
mov eax, dword [ebp - 0x44]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push edi
jmp 0x425d94
cmp dword [0x5192a8], 0
lea eax, [edx - 4]
jne 0x4263c9
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x425d82
lea eax, [ebp - 0x34]
mov ecx, edi
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x425d82
call fcn.00516180
jmp 0x426377
lea esi, [esi]
call fcn.00516180
jmp 0x4263a7