Function at 0x40c280
Capabilities:
Make an http request with a cookie
Receive data
Receive data on socket
Reference http user-agent string
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x296c
call fcn.00439190
mov eax, dword [0x453348]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x2954], eax
call fcn.00409ee0
add esp, 4
push 8
lea ecx, [ebp - 0x2968]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 0x295c], eax
mov dword [ebp - 0x2968], 0x3c
mov dword [ebp - 0x2964], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x18]
push 0x44e868
push edx
call fcn.0041d551
add esp, 0xc
cmp dword [0x455e84], 0xa
mov edi, 0xf
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28e4], edi
mov dword [ebp - 0x28e8], ebx
mov byte [ebp - 0x28f8], bl
lea edx, [eax + 1]
jae 0x40c593
mov dword [ebp - 0x2890], edi
mov dword [ebp - 0x2894], ebx
mov byte [ebp - 0x28a4], bl
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c335
sub eax, edx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28a4]
call fcn.00401bb0
push 0x455e74
mov ebx, 0x44e86c
lea eax, [ebp - 0x286c]
call fcn.00417230
mov ecx, dword [ebp - 0x2894]
mov esi, eax
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
sub edx, eax
add esp, 4
cmp ecx, edx
jbe 0x40c3ba
mov edx, dword [ebp - 0x2890]
sub edx, ecx
cmp edx, eax
jb 0x40c3ba
xor ebx, ebx
push ebx
push esi
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x28a4]
call fcn.00414590
mov dword [ebp - 0x283c], edi
mov edi, eax
lea esi, [ebp - 0x2850]
mov dword [ebp - 0x2840], ebx
mov byte [ebp - 0x2850], bl
call fcn.00401900
jmp 0x40c3eb
xor ebx, ebx
push ebx
lea eax, [ebp - 0x28a4]
push eax
or eax, 0xffffffff
call fcn.00414380
mov dword [ebp - 0x283c], edi
mov edi, eax
lea esi, [ebp - 0x2850]
mov dword [ebp - 0x2840], ebx
mov byte [ebp - 0x2850], bl
call fcn.00401900
lea ecx, [ebp - 0x2834]
push ecx
mov edi, 0xf
call fcn.00404c20
mov edx, dword [ebp - 0x283c]
mov ecx, dword [ebp - 0x2840]
mov esi, eax
mov eax, dword [esi + 0x10]
sub edx, ecx
add esp, 4
cmp eax, edx
jbe 0x40c432
mov edx, dword [esi + 0x14]
sub edx, eax
cmp edx, ecx
jb 0x40c432
push ebx
lea eax, [ebp - 0x2850]
push eax
push ebx
or eax, 0xffffffff
call fcn.00414590
jmp 0x40c442
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2850]
call fcn.00414380
mov dword [ebp - 0x2874], edi
mov edi, eax
lea esi, [ebp - 0x2888]
mov dword [ebp - 0x2878], ebx
mov byte [ebp - 0x2888], bl
call fcn.00401900
mov edi, esi
lea esi, [ebp - 0x28f8]
call fcn.00401900
mov esi, 0x10
cmp dword [ebp - 0x2874], esi
jb 0x40c48a
mov ecx, dword [ebp - 0x2888]
push ecx
call fcn.0041d1cc
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x2874], edi
mov dword [ebp - 0x2878], ebx
mov byte [ebp - 0x2888], bl
cmp dword [ebp - 0x283c], esi
jb 0x40c4b8
mov edx, dword [ebp - 0x2850]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x283c], edi
mov dword [ebp - 0x2840], ebx
mov byte [ebp - 0x2850], bl
cmp dword [ebp - 0x2858], esi
jb 0x40c4e1
mov eax, dword [ebp - 0x286c]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x2858], edi
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
cmp dword [ebp - 0x2890], esi
jb 0x40c50a
mov ecx, dword [ebp - 0x28a4]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x2890], edi
mov dword [ebp - 0x2894], ebx
mov byte [ebp - 0x28a4], bl
cmp dword [ebp - 0x2820], esi
jb 0x40c533
mov edx, dword [ebp - 0x2834]
push edx
call fcn.0041d1cc
add esp, 4
xor ebx, ebx
mov eax, 0xf
push 0x60
push str.username77da9155ac3f78787fe60cfdc784845dpasswordc81088058303ee1599203127e53ee0fcbuttonLogin
lea ecx, [ebp - 0x28dc]
mov dword [ebp - 0x28ac], eax
mov dword [ebp - 0x28b0], ebx
mov byte [ebp - 0x28c0], bl
mov dword [ebp - 0x28c8], eax
mov dword [ebp - 0x28cc], ebx
mov byte [ebp - 0x28dc], bl
call fcn.00401bb0
mov ecx, dword [ebp - 0x28cc]
mov dword [ebp - 0x2960], ecx
cmp dword [ebp + 0x20], esi
jb 0x40c804
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2958], edx
jmp 0x40c80d
mov dword [ebp - 0x2820], edi
mov dword [ebp - 0x2824], ebx
mov byte [ebp - 0x2834], bl
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c5a5
sub eax, edx
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2834]
call fcn.00401bb0
push 0xa
push ebx
push 0x455e74
lea ecx, [ebp - 0x286c]
mov dword [ebp - 0x2858], edi
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
call fcn.00401e30
push 1
mov eax, 0x44e86c
lea ecx, [ebp - 0x286c]
call fcn.00414470
mov dword [ebp - 0x2890], edi
mov edi, eax
lea esi, [ebp - 0x28a4]
mov dword [ebp - 0x2894], ebx
mov byte [ebp - 0x28a4], bl
call fcn.00401900
mov edx, dword [ebp - 0x2890]
mov eax, dword [ebp - 0x2894]
mov ecx, dword [ebp - 0x2824]
sub edx, eax
cmp ecx, edx
jbe 0x40c64d
mov edx, dword [ebp - 0x2820]
sub edx, ecx
cmp edx, eax
jb 0x40c64d
push ebx
mov eax, esi
push eax
push ebx
or eax, 0xffffffff
lea esi, [ebp - 0x2834]
call fcn.00414590
jmp 0x40c663
push ebx
lea ecx, [ebp - 0x2834]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x28a4]
call fcn.00414380
mov edi, eax
lea esi, [ebp - 0x2850]
mov dword [ebp - 0x283c], 0xf
mov dword [ebp - 0x2840], ebx
mov byte [ebp - 0x2850], bl
call fcn.00401900
lea edx, [ebp - 0x294c]
push edx
mov edi, 0xa
call fcn.00404c20
mov edx, dword [ebp - 0x283c]
mov ecx, dword [ebp - 0x2840]
mov esi, eax
mov eax, dword [esi + 0x10]
sub edx, ecx
add esp, 4
cmp eax, edx
jbe 0x40c6cd
mov edx, dword [esi + 0x14]
sub edx, eax
cmp edx, ecx
jb 0x40c6cd
push ebx
lea eax, [ebp - 0x2850]
push eax
push ebx
or eax, 0xffffffff
call fcn.00414590
jmp 0x40c6dd
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2850]
call fcn.00414380
mov edi, eax
lea esi, [ebp - 0x2888]
mov dword [ebp - 0x2874], 0xf
mov dword [ebp - 0x2878], ebx
mov byte [ebp - 0x2888], bl
call fcn.00401900
mov edi, esi
lea esi, [ebp - 0x28f8]
call fcn.00401900
mov esi, 0x10
cmp dword [ebp - 0x2874], esi
jb 0x40c729
mov ecx, dword [ebp - 0x2888]
push ecx
call fcn.0041d1cc
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x2874], edi
mov dword [ebp - 0x2878], ebx
mov byte [ebp - 0x2888], bl
cmp dword [ebp - 0x283c], esi
jb 0x40c757
mov edx, dword [ebp - 0x2850]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x283c], edi
mov dword [ebp - 0x2840], ebx
mov byte [ebp - 0x2850], bl
cmp dword [ebp - 0x2890], esi
jb 0x40c780
mov eax, dword [ebp - 0x28a4]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x2890], edi
mov dword [ebp - 0x2894], ebx
mov byte [ebp - 0x28a4], bl
cmp dword [ebp - 0x2858], esi
jb 0x40c7a9
mov ecx, dword [ebp - 0x286c]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x2858], edi
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
cmp dword [ebp - 0x2820], esi
jb 0x40c7d2
mov edx, dword [ebp - 0x2834]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x2820], edi
mov dword [ebp - 0x2824], ebx
mov byte [ebp - 0x2834], bl
cmp dword [ebp - 0x2938], esi
jb 0x40c535
mov eax, dword [ebp - 0x294c]
push eax
call fcn.0041d1cc
add esp, 4
jmp 0x40c535
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2958], eax
cmp dword [0x45602c], esi
jb 0x40c823
mov ecx, dword [0x456018]
mov dword [ebp - 0x2950], ecx
jmp 0x40c82d
mov dword [ebp - 0x2950], 0x456018
push str.POST
mov ebx, 0x455ffc
lea eax, [ebp - 0x294c]
call fcn.004176a0
add esp, 4
mov ecx, eax
push 0x156
mov eax, str._HTTP_1.1_r_nHost:__s_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__rv:23.0__Gecko_20100101_Firefox_23.0_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9___q0.8_r_nAccept_Language:_en_US_en_q0.5_r_nAccept_Encoding:_gzip__deflate_r_nReferer:__s__r_nConnection:_close_r_nContent_Type:_application_x_www_form_urlencoded_r_nContent_Length:__d_r_n_r_n
call fcn.00414470
xor ebx, ebx
mov edi, eax
lea esi, [ebp - 0x2834]
mov dword [ebp - 0x2820], 0xf
mov dword [ebp - 0x2824], ebx
mov byte [ebp - 0x2834], bl
call fcn.00401900
cmp dword [ebp - 0x2820], 0x10
mov eax, dword [ebp - 0x2834]
jae 0x40c88c
mov eax, esi
mov edx, dword [ebp - 0x2960]
mov ecx, dword [ebp - 0x2958]
push edx
mov edx, dword [ebp - 0x2950]
push ecx
push edx
push eax
lea eax, [ebp - 0x2818]
push eax
call fcn.0041d551
mov edi, 0x10
add esp, 0x14
cmp dword [ebp - 0x2820], edi
jb 0x40c8cd
mov ecx, dword [ebp - 0x2834]
push ecx
call fcn.0041d1cc
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x2820], esi
mov dword [ebp - 0x2824], ebx
mov byte [ebp - 0x2834], bl
cmp dword [ebp - 0x2938], edi
jb 0x40c8fb
mov edx, dword [ebp - 0x294c]
push edx
call fcn.0041d1cc
add esp, 4
lea eax, [ebp - 0x2818]
mov dword [ebp - 0x2820], esi
mov dword [ebp - 0x2824], ebx
mov byte [ebp - 0x2834], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c916
sub eax, edx
push eax
lea eax, [ebp - 0x2818]
push eax
lea ecx, [ebp - 0x2834]
call fcn.00401bb0
push ebx
lea ecx, [ebp - 0x28dc]
push ecx
or eax, 0xffffffff
lea esi, [ebp - 0x2834]
call fcn.00414380
mov edi, eax
lea esi, [ebp - 0x286c]
mov dword [ebp - 0x2858], 0xf
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
call fcn.00401900
mov edi, esi
lea esi, [ebp - 0x28c0]
call fcn.00401900
cmp dword [ebp - 0x2858], 0x10
jb 0x40c990
mov edx, dword [ebp - 0x286c]
push edx
call fcn.0041d1cc
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [ebp - 0x2858], esi
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
cmp dword [ebp - 0x2820], edi
jb 0x40c9c3
mov eax, dword [ebp - 0x2834]
push eax
call fcn.0041d1cc
add esp, 4
mov eax, dword [ebp - 0x28c0]
cmp dword [ebp - 0x28ac], edi
jae 0x40c9d7
lea eax, [ebp - 0x28c0]
mov ecx, dword [ebp - 0x28b0]
mov edi, dword [ebp - 0x295c]
push ebx
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40cab4
mov esi, dword [ebp - 0x2954]
push 0xf
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push str.Error_HTTP_Send
mov ecx, esi
mov byte [esi], bl
call fcn.00401bb0
mov edi, 0x10
cmp dword [ebp - 0x28c8], edi
jb 0x40ca32
mov edx, dword [ebp - 0x28dc]
push edx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x28c8], 0xf
mov dword [ebp - 0x28cc], ebx
mov byte [ebp - 0x28dc], bl
cmp dword [ebp - 0x28ac], edi
jb 0x40ca5f
mov eax, dword [ebp - 0x28c0]
push eax
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x28ac], 0xf
mov dword [ebp - 0x28b0], ebx
mov byte [ebp - 0x28c0], bl
cmp dword [ebp - 0x28e4], edi
jb 0x40ca8c
mov ecx, dword [ebp - 0x28f8]
push ecx
call fcn.0041d1cc
add esp, 4
mov dword [ebp - 0x28e4], 0xf
mov dword [ebp - 0x28e8], ebx
mov byte [ebp - 0x28f8], bl
cmp dword [ebp + 0x20], edi
jb 0x40cc62
mov edx, dword [ebp + 0xc]
push edx
jmp 0x40cc5a
mov dword [ebp - 0x2900], esi
mov dword [ebp - 0x2904], ebx
mov byte [ebp - 0x2914], bl
mov dword [ebp - 0x2950], ebx
push ebx
push 0x2800
lea eax, [ebp - 0x2818]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jge 0x40cc75
mov eax, dword [ebp - 0x2950]
inc eax
mov dword [ebp - 0x2950], eax
cmp eax, 0x32
jl 0x40cacc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xc
push str.Set_Cookie:
lea ecx, [ebp - 0x2914]
push ecx
xor eax, eax
call fcn.00401a50
push 8
push str.__path_
lea edx, [ebp - 0x2914]
mov esi, eax
push edx
xor eax, eax
call fcn.00401a50
sub eax, esi
sub eax, 0xc
push eax
add esi, 0xc
push esi
lea eax, [ebp - 0x2914]
mov edi, 0xf
push eax
lea ecx, [ebp - 0x2930]
mov dword [ebp - 0x291c], edi
mov dword [ebp - 0x2920], ebx
mov byte [ebp - 0x2930], bl
call fcn.00401e30
mov esi, dword [ebp - 0x2954]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2930]
mov byte [esi], bl
call fcn.00401900
cmp dword [ebp - 0x291c], 0x10
jb 0x40cb91
mov ecx, dword [ebp - 0x2930]
push ecx
call fcn.0041d1cc
add esp, 4
cmp dword [ebp - 0x2900], 0x10
mov edi, 0xf
mov dword [ebp - 0x291c], edi
mov dword [ebp - 0x2920], ebx
mov byte [ebp - 0x2930], bl
jb 0x40cbc0
mov edx, dword [ebp - 0x2914]
push edx
call fcn.0041d1cc
add esp, 4
cmp dword [ebp - 0x28c8], 0x10
mov dword [ebp - 0x2900], edi
mov dword [ebp - 0x2904], ebx
mov byte [ebp - 0x2914], bl
jb 0x40cbea
mov eax, dword [ebp - 0x28dc]
push eax
call fcn.0041d1cc
add esp, 4
cmp dword [ebp - 0x28ac], 0x10
mov dword [ebp - 0x28c8], edi
mov dword [ebp - 0x28cc], ebx
mov byte [ebp - 0x28dc], bl
jb 0x40cc14
mov ecx, dword [ebp - 0x28c0]
push ecx
call fcn.0041d1cc
add esp, 4
cmp dword [ebp - 0x28e4], 0x10
mov dword [ebp - 0x28ac], edi
mov dword [ebp - 0x28b0], ebx
mov byte [ebp - 0x28c0], bl
jb 0x40cc3e
mov edx, dword [ebp - 0x28f8]
push edx
call fcn.0041d1cc
add esp, 4
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x28e4], edi
mov dword [ebp - 0x28e8], ebx
mov byte [ebp - 0x28f8], bl
jb 0x40cc62
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041d1cc
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c2f8
mov esp, ebp
pop ebp
ret
je 0x40cafa
push eax
lea ecx, [ebp - 0x2818]
push ecx
lea ecx, [ebp - 0x286c]
mov dword [ebp - 0x2858], 0xf
mov dword [ebp - 0x285c], ebx
mov byte [ebp - 0x286c], bl
call fcn.00401bb0
push ebx
lea edx, [ebp - 0x286c]
push edx
or eax, 0xffffffff
lea esi, [ebp - 0x2914]
call fcn.00414380
cmp dword [ebp - 0x2858], 0x10
jb 0x40cacc
mov eax, dword [ebp - 0x286c]
push eax
call fcn.0041d1cc
add esp, 4
jmp 0x40cacc