Function at 0x404be0
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x42dddb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [0x43c294]
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 0x328], eax
mov ebp, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
inc edx
mov dword [esp + 0x334], ebx
mov dword [ebp + 0x20], edx
call fcn.00402390
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x404c4e
lea ecx, [esp + 8]
mov dword [esp + 0x334], eax
call fcn.004048c0
xor eax, eax
jmp 0x405070
mov eax, dword [esp + 0x340]
push eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x33c]
push 0x10
lea edx, [esp + 0x1c]
mov word [esp + 0x1e], ax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x405057
mov eax, dword [esp + 0x344]
lea edx, [esp + 0x28]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404ca0
mov edx, dword [str.GET__s_HTTP_1.1_r_n]
mov eax, dword [ebp + 0x128]
push esi
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00411f0d
mov ecx, dword [ebp + 0x128]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404cd1
sub eax, esi
add ecx, eax
push edi
push ecx
mov ecx, 0x100000
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x358]
call fcn.00406640
mov edi, dword [ebp + 0x128]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404d00
mov dx, word [0x42fcdc]
mov word [edi], dx
mov al, byte [0x42fcde]
mov byte [edi + 2], al
mov ecx, dword [ebp + 0x128]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404d25
push ebx
sub eax, esi
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x405055
mov edx, dword [ebp + 0x128]
mov eax, dword [ebp + 0x10]
push ebx
push 0x100000
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x405055
add dword [ebp + 0x24], eax
mov ecx, dword [ebp + 0x128]
lea edx, [ebp + 0x28]
mov byte [eax + ecx], 0
mov eax, dword [ebp + 0x128]
push edx
push eax
call fcn.004022f0
add esp, 8
cmp eax, 0xc8
je 0x405052
cmp eax, 0x12e
je 0x404d9f
cmp eax, 0x12f
jne 0x405055
mov eax, dword [ebp + 0x128]
push 0x42fcdc
push eax
call fcn.00412462
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x405055
mov eax, dword [ebp + 0x128]
push str._r_n_r_n
push eax
add esi, 2
call fcn.00412462
add esp, 8
cmp eax, ebx
je 0x404ddb
mov byte [eax], 0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404de0
sub eax, edx
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.004069d0
push str.Location
lea ecx, [esp + 0x14]
call fcn.004065b0
cmp eax, ebx
je 0x405055
mov ecx, dword [eax + 0x104]
cmp ecx, ebx
jbe 0x405055
cmp ecx, ebx
jbe 0x404e24
mov ecx, dword [eax + 0x108]
jmp 0x404e26
xor ecx, ecx
lea edx, [esp + 0x30]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404e30
push str.Set_Cookie
lea ecx, [esp + 0x14]
call fcn.004065b0
mov esi, eax
cmp esi, ebx
je 0x404fbb
mov eax, dword [esi + 0x104]
test eax, eax
jbe 0x404fbb
mov ecx, dword [esp + 0x350]
push str.Cookie
call fcn.00406920
mov ebx, eax
mov eax, dword [esi + 0x104]
test eax, eax
jbe 0x404e85
mov ecx, dword [esi + 0x108]
jmp 0x404e87
xor ecx, ecx
lea edx, [esp + 0x130]
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x404e90
push 0x3b
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x138]
push str.path
push edx
call fcn.004062d0
add esp, 0x10
test eax, eax
je 0x404f17
lea eax, [esp + 0x30]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ec3
lea edi, [esp + 0x230]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ed4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x230]
mov byte [esp + eax + 0x30], cl
inc eax
test cl, cl
jne 0x404ef0
push 0x3b
lea eax, [esp + 0x134]
push str.path
push eax
call fcn.00406410
add esp, 0xc
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f21
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x404fac
mov eax, dword [ebx + 0x104]
test eax, eax
jbe 0x404fac
test eax, eax
jbe 0x404f46
mov edi, dword [ebx + 0x108]
jmp 0x404f48
xor edi, edi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404f50
mov cx, word [0x42fca8]
mov word [edi], cx
mov dl, byte [0x42fcaa]
mov byte [edi + 2], dl
mov eax, dword [ebx + 0x104]
test eax, eax
jbe 0x404f7d
mov edi, dword [ebx + 0x108]
jmp 0x404f7f
xor edi, edi
lea eax, [esp + 0x130]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f88
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404f92
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404fbb
lea eax, [esp + 0x130]
push eax
mov ecx, ebx
call fcn.00406840
mov edx, dword [str.GET__s_HTTP_1.1_r_n]
mov eax, dword [ebp + 0x128]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00411f0d
mov ecx, dword [ebp + 0x128]
mov eax, ecx
add esp, 0xc
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404fe1
sub eax, esi
add ecx, eax
push ecx
mov ecx, 0x100000
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x358]
call fcn.00406640
mov edi, dword [ebp + 0x128]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405008
mov dx, word [0x42fcdc]
mov word [edi], dx
mov al, byte [0x42fcde]
mov byte [edi + 2], al
mov ecx, dword [ebp + 0x128]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405030
push 0
sub eax, esi
push eax
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x405055
xor ebx, ebx
jmp 0x404d43
inc dword [ebp + 0x1c]
pop edi
pop esi
lea ecx, [esp + 8]
mov dword [esp + 0x334], 0xffffffff
call fcn.004048c0
mov eax, 1
mov ecx, dword [esp + 0x32c]
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x324]
pop ebx
call fcn.00411a09
add esp, 0x330
ret 0x10