Function at 0x46697c
Capabilities:
Make an http request with a cookie
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x400a
push 0
push 0
dec ecx
jne 0x466985
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
call fcn.00404434
mov eax, dword [ebp + 0x14]
call fcn.00404434
mov eax, dword [ebp + 0xc]
call fcn.00404434
xor eax, eax
push ebp
push 0x46731c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
mov dword [ebx + 0x6c], 0x64
lea eax, [ebx + 0x70]
call fcn.00403f84
lea eax, [ebx + 0x7c]
call fcn.00404664
mov dword [ebx + 0x14], 0x50
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00466040
test esi, esi
je 0x466a23
mov eax, esi
call fcn.0045caa8
mov edi, eax
jmp 0x466a25
xor edi, edi
cmp byte [ebp - 1], 0
je 0x466a4f
push 0x467338
push dword [ebx + 0x10]
push 0x467348
push dword [ebx + 0x44]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404304
jmp 0x466a71
push 0x467364
push dword [ebx + 0x10]
push 0x467348
push dword [ebx + 0x44]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404304
push dword [ebp - 0x14]
push 0x467374
push 0x467358
push 0x467388
push 0x467358
push 0x4673a8
push dword [ebx + 0x64]
push 0x467358
push dword [ebx + 0x50]
lea eax, [ebp - 0x14]
mov edx, 9
call fcn.00404304
cmp dword [ebx + 0x68], 0
je 0x466ac8
push dword [ebp - 0x14]
push 0x4673c0
push dword [ebx + 0x68]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404304
cmp dword [ebx + 0x14], 0x50
je 0x466b06
push dword [ebp - 0x14]
push 0x4673d4
push dword [ebx + 0xc]
push 0x4673e4
lea edx, [ebp - 0x20024]
mov eax, dword [ebx + 0x14]
call fcn.0045bfc4
push dword [ebp - 0x20024]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00404304
jmp 0x466b23
push dword [ebp - 0x14]
push 0x4673d4
push dword [ebx + 0xc]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404304
cmp dword [ebx + 0x54], 0
je 0x466b6d
push dword [ebp - 0x14]
push 0x4673f0
push dword [ebx + 0x54]
push 0x467358
push 0x46740c
push dword [ebx + 0x54]
push 0x467358
push 0x467420
push dword [ebx + 0x54]
push 0x467358
push 0x467430
push dword [ebx + 0x54]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 0xd
call fcn.00404304
lea edx, [ebp - 0x20028]
mov eax, dword [ebx + 0x60]
call fcn.00460834
cmp dword [ebp - 0x20028], 0
je 0x466be4
lea eax, [ebp - 0x20034]
mov ecx, 0x467448
mov edx, dword [ebp - 0x14]
call fcn.00404290
mov edx, dword [ebp - 0x20034]
lea eax, [ebp - 0x20030]
call fcn.004047d0
push dword [ebp - 0x20030]
lea edx, [ebp - 0x20038]
mov eax, ebx
call fcn.00466588
push dword [ebp - 0x20038]
push 0x467458
lea eax, [ebp - 0x2002c]
mov edx, 3
call fcn.004048c0
mov edx, dword [ebp - 0x2002c]
lea eax, [ebp - 0x14]
call fcn.0040420c
cmp byte [ebp - 1], 0
je 0x466c51
cmp dword [ebp + 0xc], 0
je 0x466c0a
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404304
jmp 0x466c24
push dword [ebp - 0x14]
push 0x467468
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404304
push dword [ebp - 0x14]
push 0x4674a0
lea edx, [ebp - 0x2003c]
mov eax, edi
call fcn.0045bfc4
push dword [ebp - 0x2003c]
push 0x467358
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404304
push dword [ebp - 0x14]
push 0x4674bc
push 0x4674dc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404304
lea ecx, [ebp - 0x20]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00465c1c
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp dword [ebp - 0x20], 0
je 0x466ca8
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00466130
test al, al
jne 0x466cbb
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4672a0
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
lea eax, [ebp - 0x20020]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402bac
mov eax, dword [ebp - 0x14]
call fcn.00404444
mov edx, eax
lea eax, [ebp - 0x20020]
call fcn.0045c0a8
mov eax, dword [ebp - 0x14]
call fcn.00404244
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x20020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x466d59
lea eax, [ebx + 4]
mov edx, 0x4674ec
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x4672a0
cmp byte [ebp - 1], 0
je 0x466e17
test esi, esi
je 0x466e17
mov eax, esi
call fcn.0045caa8
test eax, eax
jbe 0x466e17
mov eax, esi
xor edx, edx
call fcn.0045caa0
jmp 0x466dff
lea eax, [ebp - 0x20020]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402bac
lea edx, [ebp - 0x20020]
mov eax, esi
mov ecx, 0x10000
call fcn.0045cabc
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x20020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x466dff
lea eax, [ebx + 4]
mov edx, 0x46750c
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x4672a0
mov eax, esi
call fcn.0045caa8
mov edi, eax
mov eax, esi
call fcn.0045ca94
cmp edi, eax
ja 0x466d85
cmp byte [0x4717ac], 0
jne 0x466e40
lea eax, [ebx + 4]
mov edx, 0x467528
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
xor edi, edi
lea eax, [ebp - 0x10020]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402bac
cmp byte [0x4717ac], 0
jne 0x466e7d
lea eax, [ebx + 4]
mov edx, 0x467528
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
push 0
push 0x10000
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_recv
mov esi, eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x46704b
lea eax, [ebp - 0x20040]
lea edx, [ebp - 0x10020]
mov ecx, 0x10000
call fcn.004041f4
mov edx, dword [ebp - 0x20040]
mov eax, 0x4674dc
call fcn.00404588
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x466f72
cmp byte [0x4717ac], 0
jne 0x466f13
lea eax, [ebx + 4]
mov edx, 0x467528
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
push 0
mov eax, 0x10000
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_recv
add esi, eax
lea eax, [ebp - 0x20044]
lea edx, [ebp - 0x10020]
mov ecx, 0x10000
call fcn.004041f4
mov edx, dword [ebp - 0x20044]
mov eax, 0x4674dc
call fcn.00404588
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
add edi, esi
cmp dword [ebp - 0x18], 0
jle 0x46702b
add dword [ebp - 0x18], 3
lea eax, [ebx + 0x70]
push eax
lea eax, [ebp - 0x20048]
lea edx, [ebp - 0x10020]
mov ecx, 0x10000
call fcn.004041f4
mov eax, dword [ebp - 0x20048]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call fcn.004044a4
lea eax, [ebp - 0x2004c]
push eax
mov ecx, 3
mov edx, 0xa
mov eax, dword [ebx + 0x70]
call fcn.004044a4
mov eax, dword [ebp - 0x2004c]
call fcn.0045c094
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20050]
push eax
xor ecx, ecx
mov edx, 0x467558
mov eax, ebx
call fcn.004666c0
mov edx, dword [ebp - 0x20050]
lea eax, [ebx + 0x78]
call fcn.00403fd8
lea eax, [ebp - 0x20054]
push eax
xor ecx, ecx
mov edx, 0x467570
mov eax, ebx
call fcn.004666c0
mov edx, dword [ebp - 0x20054]
lea eax, [ebx + 0x74]
call fcn.00403fd8
mov eax, ebx
call fcn.00466324
jmp 0x46706b
lea eax, [ebx + 4]
mov edx, 0x467588
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
lea eax, [ebx + 4]
mov edx, 0x4675a8
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x4672a0
cmp dword [ebp + 8], 0
jne 0x46707e
lea eax, [ebx + 0x7c]
call fcn.00404664
jmp 0x467279
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.0045caa0
cmp esi, dword [ebp - 0x18]
jle 0x4670b4
call fcn.0045ce38
mov edx, dword [ebp - 0x18]
lea edx, [ebp + edx - 0x10020]
mov dword [ebp - 0x10], edx
call fcn.0045b018
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.0045cac4
cmp dword [ebx + 0x78], 0
jne 0x467228
jmp 0x46716f
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x4670d3
cmp eax, edi
jle 0x46723f
lea eax, [ebp - 0x10020]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402bac
cmp byte [0x4717ac], 0
jne 0x46710e
lea eax, [ebx + 4]
mov edx, 0x467528
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
push 0
push 0x10000
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_recv
mov esi, eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x46716f
add edi, esi
lea edx, [ebp - 0x10020]
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0045cac4
test esi, esi
jg 0x4670c3
jmp 0x46723f
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x46718c
cmp eax, edi
jle 0x46723f
lea eax, [ebp - 0x10020]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402bac
cmp byte [0x4717ac], 0
jne 0x4671c7
lea eax, [ebx + 4]
mov edx, 0x467528
call fcn.00403fd8
mov eax, ebx
call fcn.00466308
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x4672a0
push 0
push 0x10000
lea eax, [ebp - 0x10020]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_recv
mov esi, eax
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x467228
add edi, esi
lea edx, [ebp - 0x10020]
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.0045cac4
test esi, esi
jle 0x46723f
mov eax, dword [ebx + 0x78]
call fcn.0045c094
add eax, dword [ebp - 0x18]
cmp edi, eax
jl 0x46717c
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.0045caa0
mov eax, dword [ebp + 8]
call fcn.0045caa8
mov edx, eax
lea ecx, [ebp - 0x20058]
mov eax, dword [ebp + 8]
call fcn.0045cb34
mov edx, dword [ebp - 0x20058]
lea eax, [ebx + 0x7c]
call fcn.004047d0
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.0045caa0
mov eax, ebx
call fcn.00466308
push 0
push 0
push 0x406
mov eax, dword [0x471b04]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
mov dword [ebx + 0x48], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467323
lea eax, [ebp - 0x20058]
mov edx, 8
call fcn.00403fa8
lea eax, [ebp - 0x20038]
call fcn.00404664
lea eax, [ebp - 0x20034]
call fcn.00403f84
lea eax, [ebp - 0x20030]
mov edx, 2
call fcn.0040467c
lea eax, [ebp - 0x20028]
mov edx, 2
call fcn.00403fa8
lea eax, [ebp - 0x20]
call fcn.00403f84
lea eax, [ebp - 0x14]
call fcn.00403f84
lea eax, [ebp - 8]
call fcn.00403f84
lea eax, [ebp + 0xc]
call fcn.00403f84
lea eax, [ebp + 0x14]
call fcn.00403f84
ret