Function at 0x411bd0
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 0x411bd9
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.00403bc0
mov eax, dword [ebp + 0x14]
call fcn.00403bc0
mov eax, dword [ebp + 0xc]
call fcn.00403bc0
xor eax, eax
push ebp
push 0x412580
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0x406
mov eax, dword [0x41a83c]
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.00403740
lea eax, [ebx + 0x7c]
call fcn.00403d94
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.00411294
test esi, esi
je 0x411c76
mov eax, esi
call fcn.0040861c
mov edi, eax
jmp 0x411c78
xor edi, edi
cmp byte [ebp - 1], 0
je 0x411ca2
push 0x41259c
push dword [ebx + 0x10]
push 0x4125ac
push dword [ebx + 0x44]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403a90
jmp 0x411cc4
push 0x4125c8
push dword [ebx + 0x10]
push 0x4125ac
push dword [ebx + 0x44]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403a90
push dword [ebp - 0x14]
push 0x4125d8
push 0x4125bc
push 0x4125ec
push 0x4125bc
push 0x41260c
push dword [ebx + 0x64]
push 0x4125bc
push dword [ebx + 0x50]
lea eax, [ebp - 0x14]
mov edx, 9
call fcn.00403a90
cmp dword [ebx + 0x68], 0
je 0x411d1b
push dword [ebp - 0x14]
push 0x412624
push dword [ebx + 0x68]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403a90
cmp dword [ebx + 0x14], 0x50
je 0x411d59
push dword [ebp - 0x14]
push 0x412638
push dword [ebx + 0xc]
push 0x412648
lea edx, [ebp - 0x20028]
mov eax, dword [ebx + 0x14]
call fcn.004082e0
push dword [ebp - 0x20028]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.00403a90
jmp 0x411d76
push dword [ebp - 0x14]
push 0x412638
push dword [ebx + 0xc]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403a90
cmp dword [ebx + 0x54], 0
je 0x411dc0
push dword [ebp - 0x14]
push 0x412654
push dword [ebx + 0x54]
push 0x4125bc
push 0x412670
push dword [ebx + 0x54]
push 0x4125bc
push 0x412684
push dword [ebx + 0x54]
push 0x4125bc
push 0x412694
push dword [ebx + 0x54]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 0xd
call fcn.00403a90
lea edx, [ebp - 0x2002c]
mov eax, dword [ebx + 0x60]
call fcn.0040a364
cmp dword [ebp - 0x2002c], 0
je 0x411e37
lea eax, [ebp - 0x20038]
mov ecx, 0x4126ac
mov edx, dword [ebp - 0x14]
call fcn.00403a1c
mov edx, dword [ebp - 0x20038]
lea eax, [ebp - 0x20034]
call fcn.00403eac
push dword [ebp - 0x20034]
lea edx, [ebp - 0x2003c]
mov eax, ebx
call fcn.004117dc
push dword [ebp - 0x2003c]
push 0x4126bc
lea eax, [ebp - 0x20030]
mov edx, 3
call fcn.00403f28
mov edx, dword [ebp - 0x20030]
lea eax, [ebp - 0x14]
call fcn.004039bc
cmp byte [ebp - 1], 0
je 0x411ea4
cmp dword [ebp + 0xc], 0
je 0x411e5d
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403a90
jmp 0x411e77
push dword [ebp - 0x14]
push 0x4126cc
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403a90
push dword [ebp - 0x14]
push 0x412704
lea edx, [ebp - 0x20040]
mov eax, edi
call fcn.004082e0
push dword [ebp - 0x20040]
push 0x4125bc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403a90
push dword [ebp - 0x14]
push 0x412720
push 0x412740
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403a90
lea ecx, [ebp - 0x20]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.00410e70
push 0
push 0
push 0x406
mov eax, dword [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp dword [ebp - 0x20], 0
je 0x411efb
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.00411384
test al, al
jne 0x411f0e
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xffffffff
jmp 0x412504
push 0
push 0
push 0x406
mov eax, dword [0x41a83c]
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.004027b8
mov eax, dword [ebp - 0x14]
call fcn.00403bd0
mov edx, eax
lea eax, [ebp - 0x20024]
call fcn.004057cc
mov eax, dword [ebp - 0x14]
call fcn.004039d0
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 [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x411fac
lea eax, [ebx + 4]
mov edx, 0x412750
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x412504
cmp byte [ebp - 1], 0
je 0x41206a
test esi, esi
je 0x41206a
mov eax, esi
call fcn.0040861c
test eax, eax
jbe 0x41206a
mov eax, esi
xor edx, edx
call fcn.00406140
jmp 0x412052
lea eax, [ebp - 0x20024]
xor ecx, ecx
mov edx, 0x10000
call fcn.004027b8
lea edx, [ebp - 0x20024]
mov eax, esi
mov ecx, 0x10000
call fcn.00408624
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 [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
cmp edi, dword [ebp - 0x1c]
je 0x412052
lea eax, [ebx + 4]
mov edx, 0x412770
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x412504
mov eax, esi
call fcn.0040861c
mov edi, eax
mov eax, esi
call fcn.00406134
cmp edi, eax
ja 0x411fd8
cmp byte [0x41a5f0], 0
jne 0x412093
lea eax, [ebx + 4]
mov edx, 0x41278c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
xor edi, edi
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.004027b8
cmp byte [0x41a5f0], 0
jne 0x4120d0
lea eax, [ebx + 4]
mov edx, 0x41278c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
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 [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x41229e
lea eax, [ebp - 0x20044]
lea edx, [ebp - 0x10024]
mov ecx, 0x10000
call fcn.004039a4
mov edx, dword [ebp - 0x20044]
mov eax, 0x412740
call fcn.00403cb8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4121c5
cmp byte [0x41a5f0], 0
jne 0x412166
lea eax, [ebx + 4]
mov edx, 0x41278c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
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.004039a4
mov edx, dword [ebp - 0x20048]
mov eax, 0x412740
call fcn.00403cb8
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x406
mov eax, dword [0x41a83c]
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 0x41227e
add dword [ebp - 0x18], 3
lea eax, [ebx + 0x70]
push eax
lea eax, [ebp - 0x2004c]
lea edx, [ebp - 0x10024]
mov ecx, 0x10000
call fcn.004039a4
mov eax, dword [ebp - 0x2004c]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call fcn.00403c30
lea eax, [ebp - 0x20050]
push eax
mov ecx, 3
mov edx, 0xa
mov eax, dword [ebx + 0x70]
call fcn.00403c30
mov eax, dword [ebp - 0x20050]
call fcn.00408348
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, 0x4127bc
mov eax, ebx
call fcn.00411914
mov edx, dword [ebp - 0x20054]
lea eax, [ebx + 0x78]
call fcn.00403794
lea eax, [ebp - 0x20058]
push eax
xor ecx, ecx
mov edx, 0x4127d4
mov eax, ebx
call fcn.00411914
mov edx, dword [ebp - 0x20058]
lea eax, [ebx + 0x74]
call fcn.00403794
mov eax, ebx
call fcn.00411578
jmp 0x4122be
lea eax, [ebx + 4]
mov edx, 0x4127ec
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
lea eax, [ebx + 4]
mov edx, 0x41280c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x412504
cmp dword [ebp + 8], 0
je 0x4122cc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jmp 0x4122d4
call fcn.004062f8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00406140
cmp esi, dword [ebp - 0x18]
jle 0x41230a
call fcn.004062f8
mov edx, dword [ebp - 0x18]
lea edx, [ebp + edx - 0x10024]
mov dword [ebp - 0x10], edx
call fcn.00407b98
mov ecx, esi
sub ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.00408628
cmp dword [ebx + 0x78], 0
jne 0x41247e
jmp 0x4123c5
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x412329
cmp eax, edi
jle 0x412495
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.004027b8
cmp byte [0x41a5f0], 0
jne 0x412364
lea eax, [ebx + 4]
mov edx, 0x41278c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
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 [0x41a83c]
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 [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x4123c5
add edi, esi
lea edx, [ebp - 0x10024]
mov eax, dword [ebp - 0x24]
mov ecx, esi
call fcn.00408628
test esi, esi
jg 0x412319
jmp 0x412495
mov eax, dword [ebx + 0x48]
cmp eax, 0xffffffff
jle 0x4123e2
cmp eax, edi
jle 0x412495
lea eax, [ebp - 0x10024]
xor ecx, ecx
mov edx, 0x10000
call fcn.004027b8
cmp byte [0x41a5f0], 0
jne 0x41241d
lea eax, [ebx + 4]
mov edx, 0x41278c
call fcn.00403794
mov eax, ebx
call fcn.0041155c
mov dword [ebp - 0xc], 0xfffffffc
jmp 0x412504
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 [0x41a83c]
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 [0x41a83c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_SendMessageA_1
test esi, esi
jle 0x41247e
add edi, esi
lea edx, [ebp - 0x10024]
mov eax, dword [ebp - 0x24]
mov ecx, esi
call fcn.00408628
test esi, esi
jle 0x412495
mov eax, dword [ebx + 0x78]
call fcn.00408348
add eax, dword [ebp - 0x18]
cmp edi, eax
jl 0x4123d2
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00406140
mov eax, dword [ebp - 0x24]
call fcn.0040861c
mov edx, eax
lea ecx, [ebp - 0x2005c]
mov eax, dword [ebp - 0x24]
call fcn.004061b4
mov edx, dword [ebp - 0x2005c]
lea eax, [ebx + 0x7c]
call fcn.00403eac
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.00406140
cmp dword [ebp + 8], 0
jne 0x4124dd
mov eax, dword [ebp - 0x24]
call fcn.00407b98
mov eax, ebx
call fcn.0041155c
push 0
push 0
push 0x406
mov eax, dword [0x41a83c]
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 0x412587
lea eax, [ebp - 0x2005c]
mov edx, 8
call fcn.00403764
lea eax, [ebp - 0x2003c]
call fcn.00403d94
lea eax, [ebp - 0x20038]
call fcn.00403740
lea eax, [ebp - 0x20034]
mov edx, 2
call fcn.00403dac
lea eax, [ebp - 0x2002c]
mov edx, 2
call fcn.00403764
lea eax, [ebp - 0x20]
call fcn.00403740
lea eax, [ebp - 0x14]
call fcn.00403740
lea eax, [ebp - 8]
call fcn.00403740
lea eax, [ebp + 0xc]
call fcn.00403740
lea eax, [ebp + 0x14]
call fcn.00403740
ret