Function at 0x40eae0
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539b38
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x58d984]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx + 0x20]
lea ebx, [ecx + 0x20]
mov dword [ebp - 0x50], ebx
cmp dword [eax - 0xc], 0
je 0x40ecea
mov eax, dword [ecx + 0x24]
add ecx, 0x24
mov dword [ebp - 0x28], ecx
cmp dword [eax - 0xc], 0
jne 0x40eb3c
push 3
push 0x545ec4
call fcn.00408420
mov dword [ebp - 4], 0
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40f2a6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 2
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40f2b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x94], 0
mov ecx, 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x98], 0x3c
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 3
jge 0x40ebff
push 0x104
lea ecx, [ebp - 0x38]
call fcn.00404ae0
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x88], esi
mov ecx, 1
mov dword [ebp - 0x84], 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x40ec33
push 0x400
lea ecx, [ebp - 0x3c]
call fcn.00404ae0
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x98]
mov dword [ebp - 0x6c], edi
push eax
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x68], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [ebp - 0x2c], eax
lea ebx, [esi - 0x10]
test esi, esi
jne 0x40ec5e
xor eax, eax
jmp 0x40ec72
push dword [ebx + 8]
push esi
call fcn.00513bd0
add esp, 8
test eax, eax
js 0x40f2ce
cmp eax, dword [ebx + 8]
jg 0x40f2ce
xor ecx, ecx
mov dword [ebx + 4], eax
mov word [esi + eax*2], cx
lea edx, [edi - 0x10]
mov eax, dword [edx + 8]
mov dword [ebp - 0x10], edx
test edi, edi
jne 0x40ec95
xor eax, eax
jmp 0x40ecaa
push eax
push edi
call fcn.00513bd0
add esp, 8
test eax, eax
js 0x40f2ce
lea edx, [edi - 0x10]
cmp eax, dword [edx + 8]
jg 0x40f2ce
xor ecx, ecx
mov dword [edx + 4], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x2c], ecx
jne 0x40ed0e
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ecd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40ecea
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
push dword [eax + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x40ed35
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov eax, edi
jmp 0x40ecc6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40eda5
push 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
push 0x26
push ecx
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 3
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x40eda2
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40ed91
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
jmp 0x40ecea
mov ecx, dword [ebp - 0x24]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x80]
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
je 0x40ed65
mov eax, dword [ebp - 0x28]
push 1
push 0xe80000
push 0
push 0
push 0
push edi
push dword [eax]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40ee27
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40edfe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40ee10
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
jmp 0x40ecea
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x28]
call fcn.0040f640
mov edx, dword [esi + 0x34]
sub edx, dword [esi + 0x30]
mov eax, dword [ebp - 0x40]
mov ecx, edx
neg ecx
push edx
sbb ecx, ecx
and ecx, dword [esi + 0x30]
lea edi, [eax - 0x10]
push ecx
push dword [eax - 0xc]
mov dword [ebp - 0x18], edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
or edi, 0xffffffff
test eax, eax
je 0x40f154
cmp dword [esi + 0x3c], 0
je 0x40ef5d
mov byte [ebp - 4], 5
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40f2ba
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], 0x100
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov byte [ebp - 4], 6
jge 0x40eebf
push 0x100
lea ecx, [ebp - 0x28]
call fcn.00404ae0
mov esi, dword [ebp - 0x28]
push 0
lea eax, [ebp - 0x44]
push eax
push esi
push 0x13
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [esi - 8]
lea edx, [esi - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edx
test esi, esi
jne 0x40eee5
xor eax, eax
jmp 0x40eefa
push ecx
push esi
call fcn.00513bd0
add esp, 8
test eax, eax
js 0x40f2ce
lea edx, [esi - 0x10]
cmp eax, dword [edx + 8]
jg 0x40f2ce
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x20], ecx
jne 0x40ef19
or edi, 0xffffffff
jmp 0x40f140
push esi
call fcn.00517432
add esp, 4
cmp eax, 0x12d
je 0x40efc5
cmp eax, 0x12e
je 0x40efc5
cmp eax, 0x12f
je 0x40efc5
mov eax, edi
lea edx, [esi - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ef8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40efa4
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x59a134
push 4
call fcn.004eda8b
add esp, 8
test eax, eax
je 0x40f1b0
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x40f1b2
mov byte [ebp - 4], 7
call fcn.004048c0
mov ecx, eax
test ecx, ecx
je 0x40f2c4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], 0x400
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov byte [ebp - 4], 8
jge 0x40f012
push 0x400
lea ecx, [ebp - 0x20]
call fcn.00404ae0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x48]
push 0
push eax
push esi
push 0x21
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [esi - 8]
lea edx, [esi - 0x10]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x30], edx
test esi, esi
jne 0x40f039
xor eax, eax
jmp 0x40f04e
push ecx
push esi
call fcn.00513bd0
add esp, 8
test eax, eax
js 0x40f2ce
lea edx, [esi - 0x10]
cmp eax, dword [edx + 8]
jg 0x40f2ce
xor ecx, ecx
mov dword [edx + 4], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x4c], ecx
je 0x40f126
cmp dword [edx + 4], ecx
je 0x40f126
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x20]
push eax
call fcn.00407c80
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [ebp - 0x34]
push ecx
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.0040eae0
mov edx, dword [ebp - 0x30]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f0b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f0d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f0e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f0fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40f110
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f13d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f154
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f16b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f182
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x40f194
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x34]
push ecx
call esi
mov ecx, dword [ebp - 0x24]
push ecx
call esi
jmp 0x40ecea
xor eax, eax
push dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0040dfa0
push 0x59a134
push 4
call fcn.004eda8b
add esp, 8
test eax, eax
je 0x40f1d7
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
jmp 0x40f1d9
xor eax, eax
push dword [ebp + 8]
lea ecx, [esi + 8]
push eax
call fcn.0040dfa0
push 0x59a134
push 4
call fcn.004eda8b
add esp, 8
test eax, eax
je 0x40f1ff
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x40f201
xor eax, eax
push dword [ebp + 8]
lea ecx, [esi + 0x10]
push eax
call fcn.0040dfa0
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f22a
lock inc dword [eax + 4]
mov eax, dword [esi + 0x10]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40f252
lock inc dword [eax + 4]
mov eax, dword [esi + 8]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 4], eax
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40f27a
lock inc dword [eax + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 8]
push esi
mov dword [ecx + 4], eax
call fcn.0040e460
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
push 0x80004005
call fcn.00404520
push 0x80070057
call fcn.00404520
int3