Function at 0x10036750
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100369ef
test ebx, ebx
je 0x100369ef
push 0x103
lea eax, [esp + 0x1a5]
push 0
push eax
mov byte [esp + 0x1ac], 0
call fcn.1007dcf0
push 0x103
lea ecx, [esp + 0x2b9]
push 0
push ecx
mov byte [esp + 0x2c0], 0
call fcn.1007dcf0
push esi
lea edx, [esp + 0x1bc]
push 0x104
push edx
mov dword [esp + 0x30], 0
call fcn.1007b5fd
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c8]
push 0x100a0e28
push ecx
call fcn.1007b710
add esp, 0x30
cmp dword [esp + 0xc], 0
jne 0x10036821
mov eax, esi
sub ebx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10036800
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10036825
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10036832
mov dx, word [0x100a0e28]
mov word [eax], dx
mov cl, byte [0x100a0e2a]
lea edx, [esp + 0xc]
push edx
push 0x100a0e2c
push 0
mov byte [eax + 2], cl
call fcn.1007b710
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100369e1
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [esp + 0x10]
cmp al, 2
jne 0x100369b7
shr eax, 8
cmp al, 2
jne 0x100369b7
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100368c8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
sub ebx, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x100368a7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x10036992
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x2a8]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x100368e6
lea eax, [esp + 0x2a8]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10036900
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10036910
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10036978
mov edi, ebx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10036937
mov cx, word [0x100a0e2c]
mov word [edi], cx
mov esi, eax
jmp 0x10036950
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10036950
sub eax, esi
dec ebx
lea ebx, [ebx]
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x10036960
mov ecx, eax
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov eax, esi
sub ebx, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x10036996
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov eax, esi
sub ebx, esi
jmp 0x100369c0
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x100369c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov eax, esi
sub ebx, esi
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x100369e5
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10079a05
mov esp, ebp
pop ebp
ret