Function at 0x412610
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42f5cc]
and eax, 1
je 0x412655
push str.tcp_emu
push 0x426a80
mov ecx, dword [0x42f5c8]
push ecx
call fcn.00414be4
add esp, 0xc
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [0x42f5cc]
and eax, 1
je 0x4126a7
mov ecx, dword [0x42f5c8]
push ecx
push 0x20
call fcn.00415811
add esp, 8
mov edx, dword [ebp + 8]
push edx
push 0x426a88
mov eax, dword [0x42f5c8]
push eax
call fcn.00414be4
add esp, 0xc
mov ecx, dword [0x42f5c8]
push ecx
push 0xa
call fcn.00415811
add esp, 8
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [0x42f5cc]
and eax, 1
je 0x4126f9
mov ecx, dword [0x42f5c8]
push ecx
push 0x20
call fcn.00415811
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
push 0x426a94
mov eax, dword [0x42f5c8]
push eax
call fcn.00414be4
add esp, 0xc
mov ecx, dword [0x42f5c8]
push ecx
push 0xa
call fcn.00415811
add esp, 8
mov edx, dword [0x42f5c8]
push edx
call fcn.00414b88
add esp, 4
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x25]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
sub edx, 2
mov dword [ebp - 0x15c], edx
cmp dword [ebp - 0x15c], 5
ja case.0x412728.4
mov eax, dword [ebp - 0x15c]
jmp dword [eax*4 + 0x4134c4]
mov dword [ebp - 0x140], 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x3b
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 8]
push ecx
call fcn.0041e5d0
add esp, 0xc
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
mov edx, dword [ebp - 0x138]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x20]
mov eax, dword [ebp - 0x138]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov byte [edx + ecx], 0
push 0xd
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call fcn.004114f0
add esp, 8
test eax, eax
jne 0x4127d3
push 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004114f0
add esp, 8
test eax, eax
je 0x41293a
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str._d______d
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x10]
push eax
call fcn.00415d26
add esp, 0x10
cmp eax, 2
jne 0x4128e1
movzx ecx, word [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
mov dword [ebp - 0x110], edx
movzx eax, word [ebp - 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov dword [ebp - 0x12c], ecx
mov edx, dword [0x42f400]
mov dword [ebp - 0x13c], edx
jmp 0x41284b
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0x42f400
je 0x4128e1
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x1c]
cmp ecx, dword [eax + 0x1c]
jne 0x4128dc
mov edx, dword [ebp - 0x13c]
movzx eax, word [edx + 0x22]
cmp eax, dword [ebp - 0x12c]
jne 0x4128dc
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x18]
jne 0x4128dc
mov ecx, dword [ebp - 0x13c]
movzx edx, word [ecx + 0x20]
cmp edx, dword [ebp - 0x110]
jne 0x4128dc
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4128da
movzx ecx, word [ebp - 0x14e]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov dword [ebp - 0x12c], edx
jmp 0x4128e1
jmp 0x41283d
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push str._d__d_r_n
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x10]
push eax
call fcn.004151c4
add esp, 0x10
mov ecx, dword [ebp - 0x138]
mov dword [ecx], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x138]
add eax, dword [ecx]
mov edx, dword [ebp - 0x138]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00406de0
add esp, 4
xor eax, eax
jmp 0x4134b4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov byte [edx + ecx], 0
push 0x426ab0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00411510
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x412b9d
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str.ORT__d__d__d__d__d__d_r_n_256_
mov edx, dword [ebp - 0x128]
push edx
call fcn.00415d26
add esp, 0x24
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 6
jge 0x4129e2
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp - 0x110]
shl eax, 0x18
mov ecx, dword [ebp - 0x12c]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x11c]
shl edx, 8
or eax, edx
or eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10c]
shl eax, 8
or eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov dword [ebp - 0x120], ecx
push 0
push 0x200
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x412a65
mov eax, 1
jmp 0x4134b4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x124]
and edx, 0xff
mov dword [ebp - 0x124], edx
call fcn.004072a0
mov eax, dword [0x42f3e8]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
shr ecx, 0x18
and ecx, 0xff
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp - 0x118]
shr edx, 0x10
and edx, 0xff
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x118]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x118]
and ecx, 0xff
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x128]
sub eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
cmp dword [ebp - 0x130], 7
jne 0x412b33
lea edx, [ebp - 0x108]
mov dword [ebp - 0x160], edx
jmp 0x412b3d
mov dword [ebp - 0x160], 0x4266e5
mov eax, dword [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x110]
push eax
push str.ORT__d__d__d__d__d__d_r_n_s
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.004151c4
add esp, 0x24
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov eax, 1
jmp 0x4134b4
push str.27_Entering
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
push eax
call fcn.00411510
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x412dd4
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x110]
push ecx
push str.27_Entering_Passive_Mode___d__d__d__d__d__d__r_n_256_
mov edx, dword [ebp - 0x128]
push edx
call fcn.00415d26
add esp, 0x24
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 6
jge 0x412c22
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp - 0x110]
shl eax, 0x18
mov ecx, dword [ebp - 0x12c]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x11c]
shl edx, 8
or eax, edx
or eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x10c]
shl eax, 8
or eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov dword [ebp - 0x120], ecx
push 0
push 0x200
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x412ca5
mov eax, 1
jmp 0x4134b4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x124]
and edx, 0xff
mov dword [ebp - 0x124], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
shr edx, 0x18
and edx, 0xff
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x118]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x118]
shr ecx, 8
and ecx, 0xff
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x118]
and edx, 0xff
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x128]
sub ecx, dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], ecx
cmp dword [ebp - 0x130], 7
jne 0x412d6f
lea eax, [ebp - 0x108]
mov dword [ebp - 0x164], eax
jmp 0x412d79
mov dword [ebp - 0x164], 0x4266e6
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push str.27_Entering_Passive_Mode___d__d__d__d__d__d__r_n_s
mov edx, dword [ebp - 0x128]
push edx
call fcn.004151c4
add esp, 0x24
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov eax, 1
jmp 0x4134b4
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp + 8]
mov byte [eax + 0x25], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x134], 0
jmp 0x412e0a
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x20]
sub eax, 1
cmp dword [ebp - 0x134], eax
jge 0x412e83
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x134]
movsx ecx, byte [edx + eax]
cmp ecx, 0x30
jl 0x412e45
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x134]
movsx edx, byte [eax + ecx]
cmp edx, 0x39
jle 0x412e4f
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp - 0x120]
imul eax, eax, 0xa
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp - 0x134]
movsx ecx, byte [edx + eax]
mov edx, dword [ebp - 0x120]
lea eax, [edx + ecx - 0x30]
mov dword [ebp - 0x120], eax
jmp 0x412dfb
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
movsx edx, byte [ecx + edx - 1]
test edx, edx
jne 0x412f03
cmp dword [ebp - 0x120], 0
je 0x412f03
push 0
push 0x200
movzx eax, word [ebp - 0x120]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x412f03
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x20]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x426b68
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004151c4
add esp, 0xc
add eax, 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov eax, 1
jmp 0x4134b4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov byte [eax + edx], 0
push 0x426b6c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00411510
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jne 0x412f4a
mov eax, 1
jmp 0x4134b4
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str.DCC_CHAT__256s__u__u
mov edx, dword [ebp - 0x128]
push edx
call fcn.00415d26
add esp, 0x14
cmp eax, 3
jne 0x413019
push 0
push 0x200
movzx eax, word [ebp - 0x120]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x412fc0
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x128]
sub ecx, dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], ecx
push 1
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
push str.DCC_CHAT_chat__lu__u_c_n
mov edx, dword [ebp - 0x128]
push edx
call fcn.004151c4
add esp, 0x14
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
jmp 0x4131dc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x108]
push eax
push str.DCC_SEND__256s__u__u__u
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.00415d26
add esp, 0x18
cmp eax, 4
jne 0x4130fd
push 0
push 0x200
movzx edx, word [ebp - 0x120]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x413096
mov eax, 1
jmp 0x4134b4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x128]
sub eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
push 1
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea edx, [ebp - 0x108]
push edx
push str.DCC_SEND__s__lu__u__u_c_n
mov eax, dword [ebp - 0x128]
push eax
call fcn.004151c4
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
jmp 0x4131dc
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x108]
push eax
push str.DCC_MOVE__256s__u__u__u
mov ecx, dword [ebp - 0x128]
push ecx
call fcn.00415d26
add esp, 0x18
cmp eax, 4
jne 0x4131dc
push 0
push 0x200
movzx edx, word [ebp - 0x120]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
push eax
push 0
call fcn.0040dde0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x41317a
mov eax, 1
jmp 0x4134b4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x128]
sub eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
push 1
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
lea edx, [ebp - 0x108]
push edx
push str.DCC_MOVE__s__lu__u__u_c_n
mov eax, dword [ebp - 0x128]
push eax
call fcn.004151c4
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x20], eax
mov eax, 1
jmp 0x4134b4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x128], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x20]
cmp dword [ebp - 0x128], eax
jae 0x4134a1
mov byte [ebp - 0x158], 0x50
mov byte [ebp - 0x157], 0x4e
mov byte [ebp - 0x156], 0x41
mov byte [ebp - 0x155], 0
mov edx, dword [0x52fec0]
mov dword [ebp - 0x168], edx
cmp dword [ebp - 0x168], 6
ja case.default.0x413245
mov eax, dword [ebp - 0x168]
jmp dword [eax*4 + 0x4134dc]
mov ecx, dword [0x52fec0]
movsx edx, byte [ebp + ecx - 0x158]
mov eax, dword [ebp - 0x128]
movsx ecx, byte [eax]
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
cmp ecx, edx
je 0x413285
mov dword [0x52fec0], 0
jmp 0x4131f2
jmp 0x41348d
mov ecx, dword [ebp - 0x128]
movsx edx, byte [ecx]
cmp edx, 0x50
jne 0x4132b8
mov dword [0x52fec0], 1
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
jmp 0x4131f2
mov ecx, dword [0x52fec0]
movsx edx, byte [ebp + ecx - 0x158]
mov eax, dword [ebp - 0x128]
movsx ecx, byte [eax]
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
cmp ecx, edx
je 0x4132f1
mov dword [0x52fec0], 0
jmp 0x4131f2
jmp 0x41348d
mov ecx, dword [ebp - 0x128]
add ecx, 1
mov dword [ebp - 0x128], ecx
jmp 0x41348d
mov edx, dword [ebp - 0x128]
movsx eax, byte [edx + 1]
cmp eax, 2
jne 0x41332a
mov ecx, dword [ebp - 0x128]
add ecx, 8
mov dword [ebp - 0x128], ecx
jmp 0x413339
mov edx, dword [ebp - 0x128]
add edx, 4
mov dword [ebp - 0x128], edx
jmp 0x41348d
mov eax, dword [ebp - 0x128]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x128]
movzx eax, byte [edx + 1]
add ecx, eax
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0x1b3a
jae 0x41337a
mov ecx, dword [ebp - 0x120]
add ecx, 0x100
mov dword [ebp - 0x120], ecx
cmp dword [ebp - 0x120], 0x1b3a
jb 0x413392
cmp dword [ebp - 0x120], 0x1c02
jbe 0x41339c
mov eax, 1
jmp 0x4134b4
mov edx, 0x1b3a
mov word [ebp - 0x154], dx
jmp 0x4133bc
mov ax, word [ebp - 0x154]
add ax, 1
mov word [ebp - 0x154], ax
movzx ecx, word [ebp - 0x154]
cmp ecx, 0x1b9f
jge 0x41340d
push 0
push 0x200
movzx edx, word [ebp - 0x120]
push edx
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
movzx eax, word [ebp - 0x154]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
push ecx
call fcn.00414780
add esp, 0x14
test eax, eax
je 0x41340b
jmp 0x41340d
jmp 0x4133aa
movzx edx, word [ebp - 0x154]
cmp edx, 0x1b9f
jne 0x413425
xor eax, eax
mov word [ebp - 0x154], ax
movzx ecx, word [ebp - 0x154]
sar ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x128]
mov byte [edx], cl
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
movzx ecx, word [ebp - 0x154]
and ecx, 0xff
mov edx, dword [ebp - 0x128]
mov byte [edx], cl
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
mov dword [0x52fec0], 0
mov eax, 1
jmp 0x4134b4
mov dword [0x52fec0], 0
mov ecx, dword [0x52fec0]
add ecx, 1
mov dword [0x52fec0], ecx
jmp 0x4131f2
mov eax, 1
jmp 0x4134b4
mov edx, dword [ebp + 8]
mov byte [edx + 0x25], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret