Function at 0x401960
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x17f0
call fcn.004124c0
mov eax, dword [0x446154]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], 0
je 0x401f60
mov eax, dword [ebp + 0x10]
push 0
push 0
push 0x402
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
mov dword [ebx + 0x80c], 3
mov word [ebx + 0x808], 0x50
repne scasb al, byte es:[edi]
not ecx
lea esi, [ebp - 0x400]
sub edi, ecx
mov eax, ecx
mov dword [ebp + 8], esi
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor edx, edx
test ecx, ecx
jle 0x401a46
cmp byte [ebp + eax - 0x400], 0x2f
jne 0x401a3c
mov byte [ebp + eax - 0x400], 0x20
inc edx
cmp edx, 3
je 0x401a46
inc eax
cmp eax, ecx
jl 0x401a29
lea eax, [ebx + 0x608]
lea ecx, [ebx + 0x508]
push 0x50
push eax
push ecx
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x400]
push str._s__s__s__s__d
push edx
call fcn.00412843
add esp, 0x18
mov esi, str.http:__
lea edi, [ebp - 0x100]
mov cl, byte [edi]
mov dl, byte [esi]
mov al, cl
cmp cl, dl
jne 0x401aa4
test al, al
je 0x401aa0
mov dl, byte [edi + 1]
mov cl, byte [esi + 1]
mov al, dl
cmp dl, cl
jne 0x401aa4
add edi, 2
add esi, 2
test al, al
jne 0x401a7c
xor eax, eax
jmp 0x401aa9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401ab6
mov word [ebx + 0x808], 0x50
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov esi, str.guilds.txt
mov edi, ecx
mov dl, byte [edi]
mov al, dl
cmp dl, byte [esi]
jne 0x401aeb
test al, al
je 0x401ae7
mov dl, byte [edi + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x401aeb
add edi, 2
add esi, 2
test al, al
jne 0x401ac7
xor eax, eax
jmp 0x401af0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401b23
push eax
push 0x8000
push ecx
mov dword [ebp + 8], 0xffffffff
call fcn.0041b7dd
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401b23
push esi
call fcn.004214b2
push esi
mov dword [ebp + 8], eax
call fcn.00416c54
add esp, 8
call fcn.0042a2ab
mov eax, dword [eax + 0x10]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, eax
test edx, edx
mov dword [ebx + 0x810], edx
je 0x401e46
lea esi, [ebx + 0x304]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401b71
push ebx
push eax
mov eax, dword [ebx + 0x80c]
lea ecx, [ebx + 0x404]
push eax
push ecx
push esi
jmp 0x401b80
mov ecx, dword [ebx + 0x80c]
push 0
push 0
push ecx
push 0
push 0
mov ax, word [ebx + 0x808]
push eax
lea eax, [ebx + 0x508]
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebx + 0x814], eax
test ecx, ecx
jne 0x401bc4
mov ecx, dword [ebx + 0x810]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp word [ebx + 0x808], 0x1bb
mov dword [ebp - 0x30], 0x43a2ac
mov dword [ebp - 0x2c], 0
mov eax, 0x84400100
jne 0x401be7
mov eax, 0x84c03100
push 0
lea edx, [ebp - 0x30]
push eax
push edx
push 0
lea eax, [ebx + 0x608]
push str.HTTP_1.1
push eax
push 0
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [ebx + 0x818], eax
jne 0x401c3c
mov eax, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x810]
push ecx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x401e2e
mov eax, dword [ebx + 0x818]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
lea ecx, [ebp - 0x28]
push 0
lea edx, [ebp - 0x200]
push ecx
push edx
push 5
push eax
mov dword [ebp - 0x14], 0x100000
mov dword [ebp - 0x28], 0x20
call edi
test eax, eax
je 0x401c9b
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x200]
push ecx
push 0x43a29c
push edx
call fcn.00412843
add esp, 0xc
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x401f48
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x401cd0
test eax, eax
jle 0x401cb5
cmp ecx, eax
jne 0x401cd0
mov edx, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [ebx + 0x810]
push eax
jmp 0x401f5e
mov esi, dword [ebp + 0xc]
push 0x43a298
push esi
call fcn.0041259f
add esp, 8
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401d30
push esi
call fcn.00404440
push 0x43a298
push esi
call fcn.0041259f
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x401d30
mov ecx, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [ebx + 0x810]
push edx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x14]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov dword [ebp + 8], eax
jne 0x401d48
mov dword [ebp + 8], 1
mov edx, dword [ebx + 0x818]
lea eax, [ebp - 0x20]
push 0
lea ecx, [ebp - 0x80]
push eax
push ecx
push 0x13
push edx
mov dword [ebp - 0x20], 0x20
call edi
test eax, eax
je 0x401d90
lea edx, [ebp - 0x80]
push edx
call fcn.004127ad
add esp, 4
cmp eax, 0x197
je 0x401dbd
cmp eax, 0x191
je 0x401dbd
cmp eax, 0xc8
je 0x401de3
cmp eax, 0xce
je 0x401de3
mov eax, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x810]
push ecx
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [ebx + 0x818]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x800]
push 0x400
push eax
push ecx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x401dc3
xor esi, esi
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.WININET.dll_InternetReadFileExA]
lea edx, [ebp - 0x1800]
mov eax, 0x400
mov dword [ebp - 0x58], 0x28
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0x3ff
mov ecx, dword [ebx + 0x818]
push 0
lea eax, [ebp - 0x58]
push 8
push eax
push ecx
call edi
test eax, eax
jne 0x401e5b
mov edx, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
mov eax, dword [ebx + 0x810]
push eax
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401f3c
lea ecx, [ebp - 0x60]
call fcn.00425afc
mov eax, dword [0x446154]
test eax, eax
jne 0x401ed7
mov dword [ebp - 4], 0xffffffff
call fcn.00425b3a
jmp 0x401f60
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x40]
push eax
push 1
lea edx, [ebp - 0x1800]
push ecx
push edx
call fcn.00412674
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
add esi, edx
xor edx, edx
mov eax, esi
add esp, 0x10
div dword [ebp + 8]
cmp eax, ecx
je 0x401f25
mov ecx, dword [0x446154]
test ecx, ecx
je 0x401f25
push 0
mov dword [ebp - 0x18], eax
push eax
mov eax, dword [ebp + 0x10]
push 0x402
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], 0xffffffff
call fcn.00425b3a
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x401e19
mov edx, dword [ebp + 0xc]
push edx
call fcn.004125f7
add esp, 4
mov eax, dword [ebx + 0x814]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov ecx, dword [ebx + 0x810]
push ecx
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc