Function at 0x40beb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov eax, 0x128c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00428920
sub esp, eax
lea eax, [ebp - 0x11a8]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sub.WS2_32.dll_WSAStartup
sub esp, 8
test eax, eax
jne 0x40c098
mov eax, dword [0x64cb20]
movzx edx, word [ebp - 0x11a8]
lea ebx, [ebp - 0x1018]
mov dword [esp + 4], str._d:
mov dword [esp], ebx
add eax, 1
mov dword [0x64cb20], eax
mov dword [esp + 8], eax
cmp dl, 2
jne 0x40bf1f
shr dx, 8
cmp dx, 2
je 0x40c1b0
call sub.msvcrt.dll_sprintf
mov ecx, 0x6c6c
lea edx, [ebx + eax]
lea esi, [ebx + eax + 0x2e]
mov dword [edx], 0x6c756f43
lea edi, [eax + 0x30]
mov dword [edx + 4], 0x6f6e2064
mov dword [edx + 8], 0x69662074
mov dword [edx + 0xc], 0x6120646e
mov dword [edx + 0x10], 0x61737520
mov dword [edx + 0x14], 0x20656c62
mov dword [edx + 0x18], 0x73726576
mov dword [edx + 0x1c], 0x206e6f69
mov dword [edx + 0x20], 0x5720666f
mov dword [edx + 0x24], 0x6f736e69
mov dword [edx + 0x28], 0x642e6b63
mov word [edx + 0x2c], cx
mov byte [edx + 0x2e], 0
mov dword [esp], esi
mov dword [ebp - 0x126c], edi
call sub.msvcrt.dll_strlen
add esi, eax
mov eax, 0xa0d
mov word [esi], ax
mov eax, dword [0x62cb00]
mov byte [esi + 2], 0
lea edx, [eax + edi]
cmp edx, 0x1ffff
jbe 0x40bfba
mov eax, 0x1ffff
sub eax, edi
mov esi, dword [ebp - 0x126c]
mov dword [esp + 8], eax
mov edi, 0x62cb20
mov dword [esp + 4], 0x62cb20
lea eax, [esi + 0x62cb20]
mov dword [ebp - 0x1270], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, esi
mov ecx, esi
mov edx, dword [ebp - 0x1270]
shr ecx, 2
test al, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x40c078
test byte [ebp - 0x126c], 1
jne 0x40c060
cmp edx, 0x20000
ja 0x40c050
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
call sub.WS2_32.dll_WSACleanup
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x20000
jmp 0x40c00b
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
cmp edx, 0x20000
jbe 0x40c00b
jmp 0x40c050
movzx eax, word [esi]
mov ecx, 2
mov word [edi], ax
test byte [ebp - 0x126c], 1
je 0x40c003
jmp 0x40c060
mov esi, eax
mov eax, dword [0x64cb20]
lea ebx, [ebp - 0x1018]
mov dword [esp + 4], str._d:
mov dword [esp], ebx
add eax, 1
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], esi
mov edi, eax
lea eax, [ebx + eax]
mov dword [esp + 4], str.WSAStartup_failed_with_error:__d
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea esi, [edi + eax + 2]
mov dword [ebp - 0x126c], esi
lea esi, [edi + eax]
add esi, ebx
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov edi, dword [ebp - 0x126c]
add esi, eax
mov eax, 0xa0d
mov word [esi], ax
mov eax, dword [0x62cb00]
mov byte [esi + 2], 0
lea edx, [eax + edi]
cmp edx, 0x1ffff
jbe 0x40c11c
mov eax, 0x1ffff
sub eax, edi
mov esi, dword [ebp - 0x126c]
mov dword [esp + 8], eax
mov edi, 0x62cb20
mov dword [esp + 4], 0x62cb20
lea eax, [esi + 0x62cb20]
mov dword [ebp - 0x1270], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, esi
mov ecx, esi
mov edx, dword [ebp - 0x1270]
shr ecx, 2
test al, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
jne 0x40c530
test byte [ebp - 0x126c], 1
jne 0x40c518
cmp edx, 0x20000
ja 0x40c508
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll_sprintf
mov ecx, 0x7961
lea edx, [ebx + eax]
lea esi, [ebx + eax + 0x22]
mov dword [edx], 0x20656854
lea edi, [eax + 0x24]
mov dword [edx + 4], 0x736e6957
mov dword [edx + 8], 0x206b636f
mov dword [edx + 0xc], 0x20322e32
mov dword [edx + 0x10], 0x206c6c64
mov dword [edx + 0x14], 0x20736177
mov dword [edx + 0x18], 0x6e756f66
mov dword [edx + 0x1c], 0x6b6f2064
mov word [edx + 0x20], cx
mov byte [edx + 0x22], 0
mov dword [esp], esi
mov dword [ebp - 0x126c], edi
call sub.msvcrt.dll_strlen
add esi, eax
mov eax, 0xa0d
mov word [esi], ax
mov eax, dword [0x62cb00]
mov byte [esi + 2], 0
lea edx, [eax + edi]
cmp edx, 0x1ffff
jbe 0x40c236
mov eax, 0x1ffff
sub eax, edi
mov edi, dword [ebp - 0x126c]
mov dword [esp + 8], eax
mov esi, ebx
mov dword [esp + 4], 0x62cb20
lea eax, [edi + 0x62cb20]
mov dword [ebp - 0x1270], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov edx, edi
mov ecx, edi
mov eax, 0x62cb20
shr ecx, 2
and edx, 2
mov edi, eax
mov edx, dword [ebp - 0x1270]
rep movsd dword es:[edi], dword [esi]
je 0x40c284
movzx eax, word [esi]
mov ecx, 2
mov word [edi], ax
test byte [ebp - 0x126c], 1
je 0x40c294
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
cmp edx, 0x20000
jbe 0x40c2a1
mov edx, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
mov dword [esp + 4], 0x50
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1248]
mov dword [esp], str.www.dotnetfunda.com
mov dword [0x62c9ec], eax
call fcn.00402100
lea ecx, [ebp - 0x1248]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x404900
mov dword [esp + 4], 0x404910
mov dword [esp], 0x407880
call fcn.00402300
sub esp, 0x10
lea ecx, [ebp - 0x1248]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4c1100
mov dword [esp + 4], str._tutorials_controls_login.aspx
mov dword [esp], 0x4c4dba
call fcn.00403af0
lea esi, [ebp - 0x1258]
mov byte [ebp - 0x1258], 0
sub esp, 0x18
mov dword [ebp - 0x1260], esi
mov dword [ebp - 0x125c], 0
jmp 0x40c38e
mov eax, dword [ebp - 0x125c]
test eax, eax
je 0x40c550
lea ecx, [ebp - 0x1248]
call fcn.004046d0
test al, al
jne 0x40c380
lea ecx, [ebp - 0x1248]
call fcn.004031e0
mov eax, dword [0x64cb20]
mov dword [esp + 4], str._d:
mov dword [esp], ebx
add eax, 1
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov ecx, 0x6c
lea edx, [ebx + eax]
lea edi, [ebx + eax + 0x15]
mov word [edx + 0x14], cx
lea ecx, [eax + 0x17]
mov dword [edx], 0x736f6c43
mov dword [edx + 4], 0x69572065
mov dword [edx + 8], 0x636f736e
mov dword [edx + 0xc], 0x2e32206b
mov dword [edx + 0x10], 0x6c642032
mov dword [esp], edi
mov dword [ebp - 0x126c], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0x126c]
add edi, eax
mov eax, 0xa0d
mov word [edi], ax
mov eax, dword [0x62cb00]
mov byte [edi + 2], 0
lea edi, [eax + ecx]
cmp edi, 0x1ffff
jbe 0x40c437
mov eax, 0x1ffff
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x126c]
mov dword [esp + 4], 0x62cb20
add eax, 0x62cb20
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0x126c]
xor eax, eax
and ecx, 0xfffffffc
mov edx, dword [ebx + eax]
add eax, 4
mov dword [eax + 0x62cb1c], edx
cmp eax, ecx
jb 0x40c461
lea edx, [eax + 0x62cb20]
xor ecx, ecx
add eax, ebx
test byte [ebp - 0x126c], 2
je 0x40c48f
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
test byte [ebp - 0x126c], 1
je 0x40c49f
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
cmp edi, 0x20000
jbe 0x40c4ac
mov edi, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], edi
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
call sub.WS2_32.dll_WSACleanup
mov eax, dword [ebp - 0x1260]
cmp eax, esi
je 0x40c4f1
mov dword [esp], eax
call fcn.004b7460
lea ecx, [ebp - 0x1248]
call fcn.00403220
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x20000
jmp 0x40c179
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
cmp edx, 0x20000
jbe 0x40c179
jmp 0x40c508
movzx eax, word [esi]
mov ecx, 2
mov word [edi], ax
test byte [ebp - 0x126c], 1
je 0x40c16d
jmp 0x40c518
mov dword [esp], str.set_cookie
lea ecx, [ebp - 0x1248]
call fcn.004028e0
sub esp, 4
mov edi, eax
test eax, eax
je 0x40c38e
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 8], edi
lea ecx, [ebp - 0x1260]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x125c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004a36d0
sub esp, 0x10
jmp 0x40c38e