Function at 0x61a580
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x3a8
push ebx
push ebp
mov ebp, dword [esp + 0x3b4]
push esi
lea esi, [ebp + 5]
xor ebx, ebx
push edi
mov eax, esi
mov byte [ebp + 4], bl
mov dword [ebp], 0x6dc394
call fcn.004078a0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
mov dword [ebp + 0x5e], ebx
lea eax, [ebp + 0x69]
and eax, 0xfffffffc
mov dword [ebp + 0x62], eax
push 1
mov dword [eax], ebx
push ebx
mov dword [ebp + 0x6e], 0x6dbc80
call edi
mov dword [ebp + 0x77], eax
lea eax, [ebp + 0x7b]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [0x736519], bl
mov dword [ebp + 0x72], ebx
mov dword [ebp + 0x93], ebx
mov byte [ebp + 0x76], bl
mov dword [ebp], 0x7227e4
mov dword [ebp + 0x6e], 0x722804
mov dword [ebp + 0x252b], ebx
mov dword [ebp + 0x252f], 0xffffffff
jne 0x61a622
lea eax, [esp + 0x228]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov byte [0x736519], 1
mov ecx, dword [esp + 0x3c0]
push ebx
push ebx
push 1
mov dword [ebp + 0x2533], ecx
push ebx
mov dword [ebp + 0x2537], ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp + 0x253b], eax
call edi
mov dword [ebp + 0x253f], eax
lea eax, [ebp + 0x2543]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4001
mov dword [ebp + 0x255b], 0x4001
call fcn.0069c0de
mov edx, dword [ebp + 0x255b]
add esp, 4
mov dword [ebp + 0x255f], eax
mov dword [ebp + 0x2563], ebx
mov dword [ebp + 0x2567], ebx
mov dword [ebp + 0x256b], edx
call fcn.004c1f10
mov dword [ebp + 0x256f], eax
lea ecx, [ebp + 0x2579]
mov byte [ebp + 0x2577], bl
mov byte [ebp + 0x2578], bl
call fcn.0066cdd0
push 0x59
push ebx
push esi
call fcn.006a1300
add esp, 0xc
mov dword [ebp + 9], ebx
mov dword [ebp + 0xd], ebx
mov dword [esi], ebx
call fcn.004d4200
fld qword [0x7237b8]
mov eax, str.Connecting...
fstp qword [ebp + 0x45]
lea ecx, [ebp + 0x9b]
mov dword [ebp + 0x97], ebx
sub ecx, eax
jmp 0x61a6f0
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, bx
jne 0x61a6f0
mov edx, dword [esp + 0x3c4]
movzx eax, word [edx]
xor ecx, ecx
add edx, 2
cmp ax, bx
je 0x61a731
cmp ecx, 0x103f
jae 0x61a731
mov word [ebp + ecx*2 + 0x4ab], ax
movzx eax, word [edx]
add ecx, 1
add edx, 2
cmp ax, bx
jne 0x61a713
mov eax, dword [esp + 0x3c8]
cmp eax, ebx
mov word [ebp + ecx*2 + 0x4ab], bx
mov byte [ebp + 0x3a7], bl
mov byte [ebp + 0x2a3], bl
je 0x61a821
cmp word [eax], bx
je 0x61a821
mov ecx, dword [esp + 0x3cc]
cmp ecx, ebx
je 0x61a787
cmp word [ecx], bx
je 0x61a787
push ecx
push eax
push str._s:_s
mov esi, 0x104
lea edi, [esp + 0x2c]
call fcn.004af0d0
add esp, 0xc
jmp 0x61a79e
push eax
push 0x70262c
mov esi, 0x104
lea edi, [esp + 0x28]
call fcn.004af0d0
add esp, 8
push ebx
push ebx
push 0x104
lea esi, [ebp + 0x2a3]
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, esi
mov byte [esi + 0x103], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x61a7d6
sub eax, edx
push eax
lea edi, [ebp + 0x2a3]
push edi
mov eax, 2
lea ecx, [esp + 0x18]
call fcn.005553d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x61a804
mov eax, 0x6bc0ce
push eax
push str.Authorization:_Basic__s_r_n
mov esi, 0x104
call fcn.004af0b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0069c8fa
add esp, 0xc
or edi, 0xffffffff
push ebx
lea esi, [ebp + 0x6e]
mov dword [ebp + 0x5e], SysReAllocStringLen
mov dword [ebp + 0x2573], edi
call fcn.004bf4c0
mov edx, dword [ebp + 0x253f]
push 0x2710
push ecx
mov ecx, dword [esp + 0x3c8]
mov eax, esp
mov dword [eax], edx
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x24]
push edx
call eax
cmp dword [eax], ebx
je 0x61a8c4
push str.Connection_Aborted
lea edx, [ebp + 0x9b]
mov dword [ebp + 0x97], 3
call fcn.00401000
fld qword [0x7237b8]
mov byte [ebp + 4], 2
fstp qword [ebp + 0x45]
add esp, 4
mov dword [ebp + 5], edi
mov dword [ebp + 9], ebx
mov dword [ebp + 0xd], ebx
mov dword [ebp + 0x21], ebx
mov dword [ebp + 0x19], ebx
mov dword [ebp + 0x1d], ebx
mov dword [ebp + 0x25], ebx
mov dword [ebp + 0x29], ebx
mov dword [ebp + 0x3d], ebx
mov dword [ebp + 0x2d], ebx
mov dword [ebp + 0x31], ebx
mov dword [ebp + 0x35], ebx
mov dword [ebp + 0x39], ebx
mov dword [ebp + 0x41], ebx
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3a8
ret 0x14
lea esi, [ebp + 5]
call fcn.004d4200
mov ecx, dword [ebp + 0x253f]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp + 0x97], 1
je 0x61a8fc
mov esi, dword [ebp + 0x2533]
lea eax, [ebp + 0x9b]
push eax
push 0x6ced18
call fcn.004b10e0
add esp, 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x3a8
ret 0x14