Function at 0x4023a0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x834
mov eax, dword [0x43f5c8]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x24]
push edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4023c8
mov ebx, dword [esi + 0x410]
lea eax, [esp + 0x28]
push eax
push str.SendLog
push 0x12c
push str._d__s:__s_n
mov dword [esp + 0x24], ebx
call fcn.0040c940
add esp, 0x10
lea ecx, [esp + 0x438]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402714
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
movzx eax, word [0x4404a8]
mov edx, 2
push eax
mov dword [esp + 0x14], esi
mov word [esp + 0x1c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.nkmk_fin_001_r.sib.evraz.com
mov word [esp + 0x1e], ax
call edi
push str.nkmk_fin_001_r.sib.evraz.com
cmp eax, 0xffffffff
je 0x40245c
call edi
jmp 0x402471
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4026e4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4024d4
test ebx, ebx
jle 0x402499
lea edx, [esp + 0x28]
push edx
call fcn.00401c90
add esp, 4
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
push str.2:_connect_function_failed_with_error:__ld_n
call fcn.0040c710
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40270e
call edi
push eax
push str.2:_closesocket_function_failed_with_error:__ld_n
call fcn.0040c710
add esp, 8
jmp 0x40270e
push 0x800
call fcn.0040b510
mov ebx, eax
mov eax, dword [str.GET]
mov dword [ebx], eax
mov cl, byte [0x43bf7c]
mov eax, str._cgi_bin_saveclicks
add esp, 4
mov byte [ebx + 4], cl
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402500
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402510
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]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402530
mov dx, word [0x43bf80]
lea eax, [esp + 0x28]
mov word [edi], dx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402548
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402554
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]
lea eax, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402570
mov ecx, dword [str._HTTP_1.0_nHost:]
mov dword [eax], ecx
mov edx, dword [0x43bf88]
mov dword [eax + 4], edx
mov ecx, dword [0x43bf8c]
mov dword [eax + 8], ecx
mov edx, dword [0x43bf90]
mov dword [eax + 0xc], edx
mov cl, byte [0x43bf94]
mov byte [eax + 0x10], cl
mov eax, str.nkmk_fin_001_r.sib.evraz.com
mov esi, eax
jmp 0x4025b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025b0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4025c0
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]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4025e0
mov ecx, 0x10
mov esi, str._nUser_agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1_
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4025f7
mov edx, dword [str._nAccept:___n_n]
mov dword [eax], edx
mov ecx, dword [0x43bfdc]
mov dword [eax + 4], ecx
mov edx, dword [0x43bfe0]
mov dword [eax + 8], edx
mov cx, word [0x43bfe4]
mov word [eax + 0xc], cx
mov dl, byte [0x43bfe6]
mov byte [eax + 0xe], dl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402632
mov esi, dword [esp + 0x10]
push 0
sub eax, edx
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40269b
cmp dword [esp + 0x14], 0
jle 0x402663
lea eax, [esp + 0x28]
push eax
call fcn.00401c90
add esp, 4
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
push str.3:_connect_function_failed_with_error:__ld_n
call fcn.0040c710
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x40270e
call edi
push eax
push str.3:_closesocket_function_failed_with_error:__ld_n
call fcn.0040c710
add esp, 8
jmp 0x40270e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x4026bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.4:_closesocket_function_failed_with_error:__ld_n
call fcn.0040c710
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call fcn.0040cd90
add esp, 4
call fcn.00401e30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00407b90
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x4026f5
lea ecx, [esp + 0x28]
push ecx
call fcn.00401c90
add esp, 4
push str.nkmk_fin_001_r.sib.evraz.com
push str.SendLog:_host__s_not_found_n
call fcn.0040c940
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407b90
mov esp, ebp
pop ebp
ret