Function at 0x1001a16
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x1004008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x330], edi
mov dword [ebp - 0x334], edi
cmp dword [0x100eb8c], edi
jne 0x1001a6d
push 0x2746
push 1
call fcn.01002ee9
pop ecx
pop ecx
mov eax, 0xc00000be
jmp 0x1001d10
push esi
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
jne 0x1001a87
mov eax, 0xc000009a
jmp 0x1001d0f
push 8
xor eax, eax
cmp dword [ebp + 0x10], 2
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
jne 0x1001ad7
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x1001ab6
test eax, eax
je 0x1001ab6
push eax
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
mov byte [esi + 0xe], 0x2a
jmp 0x1001b7f
push ebx
push 0x2748
push 1
call fcn.01002ee9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0xc0000001
jmp 0x1001d0f
lea ebx, [esi + 0xe]
mov eax, 0x20202020
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x100
stosd dword es:[edi], eax
lea eax, [ebp - 0x32c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x344]
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, 0xff
mov word [ebp - 0x33a], ax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x338], eax
push edi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeStringToOemString]
push 0x10
mov dword [ebp - 0x334], eax
pop eax
cmp word [ebp - 0x33c], ax
jae 0x1001b66
movzx eax, word [ebp - 0x33c]
movzx eax, ax
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov byte [esi + 0x1d], 0
push 0x12
pop eax
mov word [esi + 8], ax
push 0x11
pop eax
xor edi, edi
mov word [esi + 0xa], ax
xor eax, eax
inc edi
mov dword [esi + 4], edi
mov word [esi + 0xc], ax
cmp dword [ebp - 0x334], eax
jne 0x1001ce2
push 0x20
push esi
push 0x258
lea eax, [ebp - 0x330]
push eax
push 0x2100ae
push dword [ebp - 0x340]
call fcn.01001809
mov dword [ebp - 0x334], eax
test eax, eax
jne 0x1001ce2
mov eax, dword [ebp - 0x330]
movzx eax, word [eax + 0x3a]
test ax, ax
je 0x1001ce2
mov edi, dword [ebp - 0x330]
add edi, 0x3c
movzx ebx, ax
push 0x2749
jmp 0x1001c74
movzx eax, byte [edi + 0x11]
push eax
dec ebx
call fcn.010014df
push eax
movzx eax, byte [edi + 0xf]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.01001549
push eax
push 0x1001168
call fcn.0100176d
movzx eax, byte [edi + 0x11]
and eax, 0xf
add esp, 0x10
sub eax, 0
je 0x1001c5e
sub eax, 4
je 0x1001c57
dec eax
je 0x1001c50
dec eax
je 0x1001c49
dec eax
je 0x1001c42
push 0x273b
jmp 0x1001c63
push 0x2736
jmp 0x1001c63
push 0x2737
jmp 0x1001c63
push 0x273a
jmp 0x1001c63
push 0x2739
jmp 0x1001c63
push 0x2738
push 1
call fcn.01002ee9
pop ecx
pop ecx
add edi, 0x12
push 0x274a
push 1
call fcn.01002ee9
pop ecx
pop ecx
test ebx, ebx
jne 0x1001bf8
mov edi, dword [ebp - 0x330]
movzx eax, byte [edi + 5]
push eax
movzx eax, byte [edi + 4]
push eax
movzx eax, byte [edi + 3]
push eax
movzx eax, byte [edi + 2]
push eax
movzx eax, byte [edi + 1]
push eax
movzx eax, byte [edi]
push eax
push 0x1001184
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.01001732
add esp, 0x24
test eax, eax
jl 0x1001cd2
lea eax, [ebp - 0x18]
push eax
push 0x2747
push 1
call fcn.01002ee9
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push edi
call esi
xor eax, eax
jmp 0x1001d0f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
cmp dword [ebp - 0x330], 0
je 0x1001cfc
push dword [ebp - 0x330]
call esi
push 0x2746
push edi
call fcn.01002ee9
mov eax, dword [ebp - 0x334]
pop ecx
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01002a74
leave
ret 0xc