Function at 0x40b840
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov eax, 0x102c
push edi
push esi
push ebx
call fcn.00428920
sub esp, eax
mov eax, dword [0x64cb20]
lea ebp, [esp + 0x20]
mov dword [esp + 4], str._d:
mov edi, dword [esp + 0x1040]
add eax, 1
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
lea edx, [ebp + eax]
lea esi, [ebp + eax + 0xf]
mov dword [edx], 0x57636950
lea ebx, [eax + 0x11]
mov dword [edx + 4], 0x6f436265
mov dword [edx + 8], 0x63656e6e
mov dword [edx + 0xc], 0x292874
mov dword [esp], esi
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 esi, [eax + ebx]
cmp esi, 0x1ffff
jbe 0x40b8cf
mov eax, 0x1ffff
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x62cb20]
mov dword [esp + 4], 0x62cb20
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov edx, ebx
xor eax, eax
and edx, 0xfffffffc
mov ecx, dword [ebp + eax]
add eax, 4
mov dword [eax + 0x62cb1c], ecx
cmp eax, edx
jb 0x40b8f0
lea ecx, [eax + 0x62cb20]
xor edx, edx
add eax, ebp
test bl, 2
jne 0x40bb58
and ebx, 1
jne 0x40bb40
cmp esi, 0x20000
ja 0x40bb30
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], esi
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
mov eax, dword [0x62c974]
test eax, eax
jne 0x40bb70
mov dword [esp + 4], 0x62c7e0
mov dword [esp], 0x202
mov byte [0x61c720], 0
call sub.WS2_32.dll_WSAStartup
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x40bba8
movzx eax, word [0x62c7e0]
cmp al, 2
jne 0x40b9a5
shr ax, 8
cmp ax, 2
je 0x40bce8
mov dword [esp], edi
mov esi, 0xa0d
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Errore
mov dword [esp + 4], str.Non_posso_connettermi__WSAStartup_version_failed__
call sub.USER32.dll_MessageBoxA
mov eax, dword [0x64cb20]
mov dword [0x62c9f4], 1
sub esp, 0x10
add eax, 1
mov dword [esp + 4], str._d:
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov ecx, 0x6c6c
lea edx, [ebp + eax]
lea ebx, [ebp + 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], ebx
mov dword [esp + 0x1c], edi
call sub.msvcrt.dll_strlen
add ebx, eax
mov eax, dword [0x62cb00]
mov word [ebx], si
mov byte [ebx + 2], 0
lea ebx, [eax + edi]
cmp ebx, 0x1ffff
jbe 0x40ba88
mov eax, 0x1ffff
sub eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov esi, ebp
mov dword [esp + 4], 0x62cb20
lea eax, [edi + 0x62cb20]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, edi
mov eax, edi
xor edx, edx
shr ecx, 2
mov edi, 0x62cb20
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40bac7
movzx eax, word [esi]
mov edx, 2
mov word [edi], ax
test byte [esp + 0x1c], 1
je 0x40bad5
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
cmp ebx, 0x20000
jbe 0x40bae2
mov ebx, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], ebx
mov ebx, 1
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
call sub.WS2_32.dll_WSACleanup
add esp, 0x102c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x20000
jmp 0x40b929
movzx eax, byte [eax + edx]
mov byte [ecx + edx], al
cmp esi, 0x20000
jbe 0x40b929
jmp 0x40bb30
movzx edx, word [eax]
and ebx, 1
mov word [ecx], dx
mov edx, 2
je 0x40b91d
jmp 0x40bb40
mov dword [esp], edi
xor ebx, ebx
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Disconnettiti_
mov dword [esp + 4], str.Sei_gi
call sub.USER32.dll_MessageBoxA
mov eax, ebx
sub esp, 0x10
add esp, 0x102c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Errore
mov dword [esp + 4], str.Non_posso_connettermi__WSAStartup_failed__
call sub.USER32.dll_MessageBoxA
mov eax, dword [0x64cb20]
mov dword [0x62c9f4], 1
sub esp, 0x10
add eax, 1
mov dword [esp + 4], str._d:
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], ebx
mov esi, eax
lea eax, [ebp + eax]
mov dword [esp + 4], str.WSAStartup_failed_ERROR__d
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea ebx, [esi + eax]
lea edi, [esi + eax + 2]
add ebx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add ebx, eax
mov eax, 0xa0d
mov word [ebx], ax
mov eax, dword [0x62cb00]
mov byte [ebx + 2], 0
lea ebx, [eax + edi]
cmp ebx, 0x1ffff
jbe 0x40bc4a
mov eax, 0x1ffff
sub eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov esi, ebp
mov dword [esp + 4], 0x62cb20
lea eax, [edi + 0x62cb20]
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, edi
mov eax, edi
xor edx, edx
shr ecx, 2
mov edi, 0x62cb20
rep movsd dword es:[edi], dword [esi]
test al, 2
je 0x40bc89
movzx eax, word [esi]
mov edx, 2
mov word [edi], ax
test byte [esp + 0x1c], 1
je 0x40bc97
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
cmp ebx, 0x20000
jbe 0x40bca4
mov ebx, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], ebx
mov ebx, 1
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
add esp, 0x102c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov ecx, 0x62c740
mov dword [esp + 8], 0x404900
mov dword [esp + 4], 0x404910
mov dword [esp], 0x407880
call fcn.00402300
sub esp, 0x10
mov dword [esp + 4], str._Time_login.aspx
mov dword [esp], 0
call fcn.004082d0
cmp eax, 1
je 0x40bd68
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00407e90
mov dword [esp], edi
call fcn.00408c20
cmp eax, 1
je 0x40bb1a
nop
mov dword [esp], edi
mov ebx, 1
call fcn.0040b620
jmp 0x40bb1a
mov eax, dword [0x64cb20]
mov dword [esp + 4], str._d:
mov dword [esp], ebp
add eax, 1
mov dword [esp + 8], eax
mov dword [0x64cb20], eax
call sub.msvcrt.dll_sprintf
lea edx, [ebp + eax]
lea ebx, [ebp + eax + 0x14]
mov dword [edx], 0x6f727245
lea esi, [eax + 0x16]
mov dword [edx + 4], 0x6e692072
mov dword [edx + 8], 0x6c206f74
mov dword [edx + 0xc], 0x7461636f
mov dword [edx + 0x10], 0x216e6f69
mov byte [edx + 0x14], 0
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add ebx, eax
mov eax, 0xa0d
mov word [ebx], ax
mov eax, dword [0x62cb00]
mov byte [ebx + 2], 0
lea ebx, [eax + esi]
cmp ebx, 0x1ffff
jbe 0x40bde7
mov eax, 0x1ffff
sub eax, esi
mov dword [esp + 8], eax
lea eax, [esi + 0x62cb20]
mov dword [esp + 4], 0x62cb20
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov ecx, esi
xor eax, eax
and ecx, 0xfffffffc
mov edx, dword [ebp + eax]
add eax, 4
mov dword [eax + 0x62cb1c], edx
cmp eax, ecx
jb 0x40be08
lea edx, [eax + 0x62cb20]
xor ecx, ecx
add eax, ebp
test esi, 2
je 0x40be36
movzx ecx, word [eax]
mov word [edx], cx
mov ecx, 2
and esi, 1
je 0x40be42
movzx eax, byte [eax + ecx]
mov byte [edx + ecx], al
cmp ebx, 0x20000
jbe 0x40be4f
mov ebx, 0x20000
mov eax, dword [0x62c9e0]
mov dword [esp + 4], 0x62cb20
mov dword [0x62cb00], ebx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 4], ebp
mov dword [esp], 0x4c4b5d
call sub.msvcrt.dll_printf
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Riprova
mov dword [esp + 4], str.Impossibile_connettersi
mov dword [esp], edi
call sub.USER32.dll_MessageBoxA
mov dword [0x62c9f4], 1
sub esp, 0x10
jmp 0x40bd50