Function at 0x41d488
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, 0x400b
push 0
push 0
dec ecx
jne 0x41d491
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.00403dbc
mov eax, dword [ebp + 0x14]
call fcn.00403dbc
mov eax, dword [ebp + 0xc]
call fcn.00403dbc
xor eax, eax
push ebp
push 0x41de38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x406
mov eax, dword [0x42a9ec]
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.00403930
lea eax, [ebx + 0x7c]
call fcn.00403f90
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.0041cb4c
test esi, esi
je 0x41d52e
mov eax, esi
call fcn.0040a034
mov edi, eax
jmp 0x41d530
xor edi, edi
cmp byte [ebp - 1], 0
je 0x41d55a
push 0x41de54
push dword [ebx + 0x10]
push 0x41de64
push dword [ebx + 0x44]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403c8c
jmp 0x41d57c
push 0x41de80
push dword [ebx + 0x10]
push 0x41de64
push dword [ebx + 0x44]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403c8c
push dword [ebp - 0x14]
push 0x41de90
push 0x41de74
push 0x41dea4
push 0x41de74
push 0x41dec4
push dword [ebx + 0x64]
push 0x41de74
push dword [ebx + 0x50]
lea eax, [ebp - 0x14]
mov edx, 9
call fcn.00403c8c
cmp dword [ebx + 0x68], 0
je 0x41d5d3
push dword [ebp - 0x14]
push 0x41dedc
push dword [ebx + 0x68]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403c8c
cmp dword [ebx + 0x14], 0x50
je 0x41d611
push dword [ebp - 0x14]
push 0x41def0
push dword [ebx + 0xc]
push 0x41df00
lea edx, [ebp - 0x20028]
mov eax, dword [ebx + 0x14]
call fcn.00409c94
push dword [ebp - 0x20028]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00403c8c
jmp 0x41d62e
push dword [ebp - 0x14]
push 0x41def0
push dword [ebx + 0xc]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403c8c
cmp dword [ebx + 0x54], 0
je 0x41d678
push dword [ebp - 0x14]
push 0x41df0c
push dword [ebx + 0x54]
push 0x41de74
push 0x41df28
push dword [ebx + 0x54]
push 0x41de74
push 0x41df3c
push dword [ebx + 0x54]
push 0x41de74
push 0x41df4c
push dword [ebx + 0x54]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 0xd
call fcn.00403c8c
lea edx, [ebp - 0x2002c]
mov eax, dword [ebx + 0x60]
call fcn.0040bdb0
cmp dword [ebp - 0x2002c], 0
je 0x41d6ef
lea eax, [ebp - 0x20038]
mov ecx, 0x41df64
mov edx, dword [ebp - 0x14]
call fcn.00403c18
mov edx, dword [ebp - 0x20038]
lea eax, [ebp - 0x20034]
call fcn.004040fc
push dword [ebp - 0x20034]
lea edx, [ebp - 0x2003c]
mov eax, ebx
call fcn.0041d094
push dword [ebp - 0x2003c]
push 0x41df74
lea eax, [ebp - 0x20030]
mov edx, 3
call fcn.004041ec
mov edx, dword [ebp - 0x20030]
lea eax, [ebp - 0x14]
call fcn.00403bb8
cmp byte [ebp - 1], 0
je 0x41d75c
cmp dword [ebp + 0xc], 0
je 0x41d715
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403c8c
jmp 0x41d72f
push dword [ebp - 0x14]
push 0x41df84
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403c8c
push dword [ebp - 0x14]
push 0x41dfbc
lea edx, [ebp - 0x20040]
mov eax, edi
call fcn.00409c94
push dword [ebp - 0x20040]
push 0x41de74
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403c8c
push dword [ebp - 0x14]
push 0x41dfd8
push 0x41dff8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403c8c
lea ecx, [ebp - 0x20]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.0041c728
push 0
push 0
push 0x406
mov eax, dword [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp dword [ebp - 0x20], 0
je 0x41d7b3
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.0041cc3c
test al, al
jne 0x41d7c6
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xffffffff
jmp 0x41ddbc
push 0
push 0
push 0x406
mov eax, dword [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
lea eax, [ebp - 0x20024]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402898
mov eax, dword [ebp - 0x14]
call fcn.00403dcc
mov edx, eax
lea eax, [ebp - 0x20024]
call fcn.0040668c
mov eax, dword [ebp - 0x14]
call fcn.00403bcc
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x20024]
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 [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x41d864
lea eax, [ebx + 4]
mov edx, 0x41e008
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x41ddbc
cmp byte [ebp - 1], 0
je 0x41d922
test esi, esi
je 0x41d922
mov eax, esi
call fcn.0040a034
test eax, eax
jbe 0x41d922
mov eax, esi
xor edx, edx
call fcn.0040785c
jmp 0x41d90a
lea eax, [ebp - 0x20024]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402898
lea edx, [ebp - 0x20024]
mov eax, esi
mov ecx, 0x10000
call fcn.0040a03c
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x20024]
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 [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x41d90a
lea eax, [ebx + 4]
mov edx, 0x41e028
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x41ddbc
mov eax, esi
call fcn.0040a034
mov edi, eax
mov eax, esi
call fcn.00407850
cmp edi, eax
ja 0x41d890
cmp byte [0x42a768], 0
jne 0x41d94b
lea eax, [ebx + 4]
mov edx, 0x41e044
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
xor edi, edi
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402898
cmp byte [0x42a768], 0
jne 0x41d988
lea eax, [ebx + 4]
mov edx, 0x41e044
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
push 0
push 0x10000
lea eax, [ebp - 0x10024]
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 [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x41db56
lea eax, [ebp - 0x20044]
lea edx, [ebp - 0x10024]
mov ecx, 0x10000
call fcn.00403ba0
mov edx, dword [ebp - 0x20044]
mov eax, 0x41dff8
call fcn.00403eb4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x41da7d
cmp byte [0x42a768], 0
jne 0x41da1e
lea eax, [ebx + 4]
mov edx, 0x41e044
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
push 0
mov eax, 0x10000
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10024]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.wsock32.dll_recv
add esi, eax
lea eax, [ebp - 0x20048]
lea edx, [ebp - 0x10024]
mov ecx, 0x10000
call fcn.00403ba0
mov edx, dword [ebp - 0x20048]
mov eax, 0x41dff8
call fcn.00403eb4
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x406
mov eax, dword [0x42a9ec]
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 0x41db36
add dword [ebp - 0x18], 3
lea eax, [ebx + 0x70]
push eax
lea eax, [ebp - 0x2004c]
lea edx, [ebp - 0x10024]
mov ecx, 0x10000
call fcn.00403ba0
mov eax, dword [ebp - 0x2004c]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call fcn.00403e2c
lea eax, [ebp - 0x20050]
push eax
mov ecx, 3
mov edx, 0xa
mov eax, dword [ebx + 0x70]
call fcn.00403e2c
mov eax, dword [ebp - 0x20050]
call fcn.00409cfc
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20054]
push eax
xor ecx, ecx
mov edx, 0x41e074
mov eax, ebx
call fcn.0041d1cc
mov edx, dword [ebp - 0x20054]
lea eax, [ebx + 0x78]
call fcn.00403984
lea eax, [ebp - 0x20058]
push eax
xor ecx, ecx
mov edx, 0x41e08c
mov eax, ebx
call fcn.0041d1cc
mov edx, dword [ebp - 0x20058]
lea eax, [ebx + 0x74]
call fcn.00403984
mov eax, ebx
call fcn.0041ce30
jmp 0x41db76
lea eax, [ebx + 4]
mov edx, 0x41e0a4
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
lea eax, [ebx + 4]
mov edx, 0x41e0c4
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x41ddbc
cmp dword [ebp + 8], 0
je 0x41db84
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jmp 0x41db8c
call fcn.00407a14
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.0040785c
cmp esi, dword [ebp - 0x18]
jle 0x41dbc2
call fcn.00407a14
mov edx, dword [ebp - 0x18]
lea edx, [ebp + edx - 0x10024]
mov dword [ebp - 0x10], edx
call fcn.004094ec
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0040a040
cmp dword [ebx + 0x78], 0
jne 0x41dd36
jmp 0x41dc7d
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x41dbe1
cmp eax, edi
jle 0x41dd4d
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402898
cmp byte [0x42a768], 0
jne 0x41dc1c
lea eax, [ebx + 4]
mov edx, 0x41e044
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
push 0
push 0x10000
lea eax, [ebp - 0x10024]
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 [0x42a9ec]
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 [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x41dc7d
add edi, esi
lea edx, [ebp - 0x10024]
mov eax, dword [ebp - 0x24]
mov ecx, esi
call fcn.0040a040
test esi, esi
jg 0x41dbd1
jmp 0x41dd4d
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x41dc9a
cmp eax, edi
jle 0x41dd4d
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.00402898
cmp byte [0x42a768], 0
jne 0x41dcd5
lea eax, [ebx + 4]
mov edx, 0x41e044
call fcn.00403984
mov eax, ebx
call fcn.0041ce14
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x41ddbc
push 0
push 0x10000
lea eax, [ebp - 0x10024]
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 [0x42a9ec]
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 [0x42a9ec]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x41dd36
add edi, esi
lea edx, [ebp - 0x10024]
mov eax, dword [ebp - 0x24]
mov ecx, esi
call fcn.0040a040
test esi, esi
jle 0x41dd4d
mov eax, dword [ebx + 0x78]
call fcn.00409cfc
add eax, dword [ebp - 0x18]
cmp edi, eax
jl 0x41dc8a
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.0040785c
mov eax, dword [ebp - 0x24]
call fcn.0040a034
mov edx, eax
lea ecx, [ebp - 0x2005c]
mov eax, dword [ebp - 0x24]
call fcn.004078d0
mov edx, dword [ebp - 0x2005c]
lea eax, [ebx + 0x7c]
call fcn.004040fc
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.0040785c
cmp dword [ebp + 8], 0
jne 0x41dd95
mov eax, dword [ebp - 0x24]
call fcn.004094ec
mov eax, ebx
call fcn.0041ce14
push 0
push 0
push 0x406
mov eax, dword [0x42a9ec]
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 0x41de3f
lea eax, [ebp - 0x2005c]
mov edx, 8
call fcn.00403954
lea eax, [ebp - 0x2003c]
call fcn.00403f90
lea eax, [ebp - 0x20038]
call fcn.00403930
lea eax, [ebp - 0x20034]
mov edx, 2
call fcn.00403fa8
lea eax, [ebp - 0x2002c]
mov edx, 2
call fcn.00403954
lea eax, [ebp - 0x20]
call fcn.00403930
lea eax, [ebp - 0x14]
call fcn.00403930
lea eax, [ebp - 8]
call fcn.00403930
lea eax, [ebp + 0xc]
call fcn.00403930
lea eax, [ebp + 0x14]
call fcn.00403930
ret