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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0a46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x50], esi
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp byte [eax + 0x172], bl
jne 0x51ec86
mov ecx, dword [esi + 0x3174]
cmp ecx, ebx
je 0x51ec61
cmp dword [esi + 0x3178], ebx
je 0x51ec86
lea edx, [esi + 0x3170]
push ebx
push edx
lea edx, [esi + 0x3178]
push edx
mov edx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0xc]
push edx
add eax, 0x19c
push ecx
push eax
mov ecx, esi
call fcn.00524d00
mov eax, dword [ebp + 8]
push 1
cmp eax, ebx
je 0x51ec97
mov eax, dword [0x67af70]
push eax
jmp 0x51ec9e
mov ecx, dword [0x67af6c]
push ecx
mov ecx, esi
call fcn.00508cb0
mov ecx, esi
call fcn.00523800
mov ecx, esi
call fcn.00523e70
cmp eax, ebx
jne 0x51f330
mov al, byte [esi + 0x30d3]
mov dword [ebp - 0x20], ebx
cmp al, bl
je 0x51ece1
lea edx, [ebp - 0x9c]
push 0x66b014
push edx
call fcn.0057f2ea
add esp, 8
jmp 0x51eded
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
cmp eax, ebx
jg 0x51ed10
jl 0x51ecf1
cmp ecx, ebx
ja 0x51ed10
lea eax, [ebp - 0x9c]
push 0x679a28
push eax
call fcn.0057f2ea
add esp, 8
mov byte [esi + 0x30d0], bl
jmp 0x51eded
mov edx, dword [esi + 0x30cc]
cmp edx, ebx
je 0x51ed1f
mov edx, dword [edx + 0x68]
jmp 0x51ed21
xor edx, edx
mov edi, dword [esi + 0x18]
or edi, dword [esi + 0x1c]
je 0x51edaf
cmp edx, ebx
je 0x51edaf
mov edx, dword [esi + 0x80]
cmp dword [edx + 0x2a0], ebx
je 0x51edaf
mov ecx, esi
call fcn.00523de0
mov edi, eax
mov eax, dword [esi + 0x30cc]
cmp eax, ebx
je 0x51ed74
cmp byte [eax + 0x1c8], bl
jne 0x51ed6f
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
sub ecx, 1
sbb eax, ebx
cmp eax, edx
jl 0x51ed74
jg 0x51ed6f
cmp ecx, edi
jbe 0x51ed74
add edi, 1
adc edx, ebx
mov al, byte [esi + 0x90]
cmp al, bl
mov eax, dword [esi + 0x20]
je 0x51ed8b
mov ecx, dword [esi + 0x24]
add eax, 0x30
adc ecx, ebx
jmp 0x51ed8e
mov ecx, dword [esi + 0x24]
push edx
push edi
push ecx
push eax
lea eax, [ebp - 0x9c]
push 0x66aff8
push eax
call fcn.0057f2ea
add esp, 0x18
mov byte [esi + 0x3125], 1
jmp 0x51eded
mov edx, dword [esi + 0x80]
cmp dword [edx + 0x2a0], ebx
jne 0x51edc4
mov dword [ebp - 0x20], 1
cmp byte [esi + 0x90], bl
je 0x51edd1
add ecx, 0x30
adc eax, ebx
push eax
push ecx
lea eax, [ebp - 0x9c]
push 0x66afe0
push eax
call fcn.0057f2ea
add esp, 0x10
mov byte [esi + 0x3125], bl
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x51edfc
mov ecx, dword [eax + 0xc]
jmp 0x51ee05
mov ecx, dword [esi + 0x80]
mov ecx, dword [ecx + 0x14]
cmp eax, ebx
je 0x51ee0e
mov eax, dword [eax + 0x10]
jmp 0x51ee17
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x24]
cmp ecx, 0x50
mov dword [ebp - 0x48], eax
jne 0x51ee74
cmp eax, 1
je 0x51ee81
push ecx
lea ecx, [ebp - 0x5c]
push 0x66941c
push ecx
call fcn.0057f2ea
add esp, 0xc
mov edx, dword [0x6754d4]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 1
cmp byte [eax + 0x2bc], bl
je 0x51ee59
cmp byte [eax + 0x2be], bl
jne 0x51ee94
mov eax, dword [eax + 0x18]
cmp eax, ebx
je 0x51ee94
push eax
lea eax, [ebp - 0x1c]
push 0x66afd0
push eax
call fcn.00593b08
add esp, 0xc
jmp 0x51eea1
cmp ecx, 0x1bb
jne 0x51ee24
cmp eax, 2
jne 0x51ee24
lea eax, [ebp - 0x5c]
push 0x679a28
push eax
call fcn.0057f2ea
add esp, 8
jmp 0x51ee36
push 0x679a28
lea ecx, [ebp - 0x1c]
call fcn.0059aec6
push 0x679a28
lea ecx, [ebp - 0x30]
call fcn.0059adab
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 2
cmp byte [eax + 0x2c1], bl
je 0x51ef15
mov edi, dword [eax + 0x20]
cmp edi, ebx
je 0x51ef15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jle 0x51ef15
mov edx, dword [esi + 0x80]
mov eax, dword [edx + 0x20]
mov dl, byte [eax + ecx - 1]
cmp dl, 0xa
lea eax, [eax + ecx - 1]
je 0x51eef1
cmp dl, 0xd
jne 0x51eef5
mov byte [eax], bl
jmp 0x51eed0
cmp ecx, 1
jle 0x51ef15
mov ecx, dword [esi + 0x80]
lea eax, [ebp - 0x30]
mov edx, dword [ecx + 0x20]
push edx
push 0x66afb8
push eax
call fcn.00593b08
add esp, 0xc
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x18], ecx
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 3
mov edi, dword [edx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51ef54
mov edx, dword [edx + 0xd0]
lea eax, [ebp - 0x18]
push edx
push 0x64efb0
push eax
call fcn.00593b08
add esp, 0xc
jmp 0x51ef65
lea ecx, [ebp - 0x18]
push 0x66af94
push ecx
call fcn.00593b08
add esp, 8
mov edx, dword [0x6754d4]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x80]
mov byte [ebp - 4], 4
cmp byte [eax + 0x15b], bl
je 0x51ef9f
mov eax, dword [eax + 0x15c]
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x24]
mov eax, dword [eax - 8]
push eax
push ecx
push 0x66af6c
push edx
call fcn.00593b08
add esp, 0x10
mov eax, dword [esi + 0x80]
cmp byte [eax + 0x16c], bl
je 0x51efc9
mov eax, dword [eax + 0x168]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x66af6c
push edx
call fcn.00593b08
add esp, 0x10
mov eax, dword [0x6754d4]
mov dword [ebp - 0x2c], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 5
mov edi, dword [edx + 0x2cc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51f005
mov ecx, dword [edx + 0x2cc]
lea edx, [ebp - 0x2c]
push ecx
push 0x66af5c
push edx
call fcn.00593b08
add esp, 0xc
mov eax, dword [0x6754d4]
mov dword [ebp - 0x34], eax
mov edx, dword [esi + 0x80]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 4], 6
mov edi, dword [edx + 0x2d0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51f041
mov ecx, dword [edx + 0x2d0]
lea edx, [ebp - 0x34]
push ecx
push 0x66af44
push edx
call fcn.00593b08
add esp, 0xc
mov eax, dword [0x6754d4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x51f062
mov dword [ebp - 0x20], 0x66af18
mov ecx, 0x679a28
jmp 0x51f06a
mov ecx, 0x679a28
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 0x30e0]
mov dword [ebp - 0x38], 0x64fb50
cmp eax, ebx
jne 0x51f07e
mov dword [ebp - 0x38], ecx
cmp eax, ebx
mov dword [ebp - 0x44], eax
jne 0x51f088
mov dword [ebp - 0x44], ecx
cmp eax, ebx
mov dword [ebp - 0x3c], 0x66af0c
jne 0x51f096
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x80]
cmp byte [ecx + 0x172], bl
je 0x51f0bf
mov edx, dword [esi + 0x30ec]
lea ecx, [ebp - 0x54]
push edx
call fcn.0059adab
or dword [ebp - 0x14], 1
mov edi, dword [eax]
mov byte [ebp - 4], 8
jmp 0x51f0c5
mov edi, dword [esi + 0x3170]
mov eax, dword [esi + 0x3170]
cmp dword [eax - 8], ebx
je 0x51f0f9
mov ecx, dword [esi + 0x80]
cmp byte [ecx + 0x172], bl
sete al
cmp al, bl
je 0x51f0f9
mov edx, dword [esi + 0x3174]
mov dword [ebp - 0x40], 0x66aef0
cmp edx, ebx
sete al
cmp al, bl
jne 0x51f100
mov dword [ebp - 0x40], 0x679a28
mov eax, dword [esi + 0x84]
cmp eax, ebx
jne 0x51f126
mov edx, dword [esi + 0x80]
lea ecx, [ebp - 0x4c]
mov eax, dword [edx]
push eax
call fcn.0059adab
or dword [ebp - 0x14], 2
mov dword [ebp - 4], 9
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [esi + 0x80]
cmp edx, ebx
je 0x51f13c
mov edx, 0x66aee8
jmp 0x51f158
cmp byte [eax + 0x15b], bl
jne 0x51f153
mov dl, byte [eax + 0x16c]
cmp dl, bl
mov edx, 0x66aee4
je 0x51f158
mov edx, 0x66aedc
mov ebx, dword [eax + 0x15c]
push ebx
mov ebx, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 0x24]
push ebx
mov ebx, dword [ebp - 0x2c]
push ebx
mov ebx, dword [ebp - 0x38]
push ebx
mov ebx, dword [ebp - 0x44]
push ebx
mov ebx, dword [ebp - 0x3c]
push ebx
push edi
mov edi, dword [ebp - 0x1c]
push edi
lea edi, [ebp - 0x9c]
push edi
mov edi, dword [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x40]
push edi
mov edi, dword [ebp - 0x34]
push edi
lea edi, [ebp - 0x5c]
push edi
push ecx
mov ecx, dword [eax + 0x160]
mov eax, dword [esi + 0x30dc]
push ecx
push 0x679a28
push eax
push edx
lea ecx, [ebp - 0x28]
push 0x66ae84
push ecx
call fcn.00593b08
mov ebx, dword [ebp - 0x14]
add esp, 0x54
test bl, 2
mov dword [ebp - 4], 8
je 0x51f1d6
and ebx, 0xfffffffd
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], ebx
call fcn.0059ad3d
test bl, 1
mov dword [ebp - 4], 7
je 0x51f1ea
lea ecx, [ebp - 0x54]
call fcn.0059ad3d
mov ecx, esi
mov dword [esi + 0x30c8], 1
call fcn.00509a70
mov eax, dword [ebp - 0x48]
mov ebx, 4
cmp eax, 2
mov dword [esi + 0x5c], ebx
jne 0x51f250
mov edx, dword [ebp - 0x28]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00564ec0
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x16c]
test cl, cl
je 0x51f2b2
mov ecx, dword [eax + 0x164]
test ecx, ecx
je 0x51f2b2
mov edx, dword [eax + 0x168]
push edx
push ecx
mov ecx, esi
call fcn.00564ec0
jmp 0x51f2b2
mov eax, dword [ebp + 8]
mov edx, 0x66ae78
test eax, eax
jne 0x51f261
mov edx, 0x66ae6c
mov eax, dword [ebp - 0x28]
push edx
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0x30c4]
push eax
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.00508e20
mov edi, eax
mov eax, dword [esi + 0x80]
mov cl, byte [eax + 0x16c]
test cl, cl
je 0x51f2b2
mov ecx, dword [eax + 0x164]
test ecx, ecx
je 0x51f2b2
mov edx, dword [eax + 0x168]
mov eax, dword [esi + 0x30c4]
push 0
push edx
push ecx
push eax
call sub.WSOCK32.dll_send
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0059ad3d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0059ad3d
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0059ad3d
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0059ad3d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0059ad3d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0059ad3d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4