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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545c18
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x580124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x20]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x49dd21
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
cmp dword [eax - 0xc], 0
jne 0x49dbc1
push 3
push 0x5653d4
call fcn.004078f0
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x49dbd6
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dbeb
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49dbed
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x49dc0f
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dc24
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49dc26
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x3c
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.004e8ae0
mov dword [ebp - 0x88], 0x3c
mov ecx, 1
mov eax, dword [edi - 8]
add esp, 0xc
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x49dc71
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00407610
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x78], edi
mov ecx, 1
mov dword [ebp - 0x74], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x49dc9f
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00407610
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x5c], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x58], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x30], eax
push edi
call fcn.005053f1
add esp, 8
test eax, eax
js 0x49e11f
cmp eax, dword [edi - 8]
jg 0x49e11f
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.005053f1
add esp, 8
test eax, eax
js 0x49e11f
cmp eax, dword [esi - 8]
jg 0x49e11f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x30], ecx
jne 0x49dd45
lea ecx, [ebp - 0x10]
call fcn.00407b80
lea ecx, [ebp - 0x14]
call fcn.00407b80
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
push 0
push 0
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x49dd11
mov eax, dword [ebx + 0x1c]
cmp dword [eax - 0xc], 0
je 0x49ddb0
push 0xc
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0x26
push edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 3
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x49ddad
lea ecx, [ebp - 0x10]
call fcn.00407b80
lea ecx, [ebp - 0x14]
call fcn.00407b80
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
jmp 0x49dd21
mov edx, dword [ebp - 0x2c]
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x70]
push edi
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x49dd8c
push 1
push 0x680000
push 0
push 0
push 0
push esi
push dword [ebx + 0x24]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x49de12
lea ecx, [ebp - 0x10]
call fcn.00407b80
lea ecx, [ebp - 0x14]
call fcn.00407b80
mov ecx, dword [ebp - 0x30]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
jmp 0x49dd21
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 0x28]
call fcn.0049d030
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x30]
je 0x49de2f
mov edx, dword [ebx + 0x30]
jmp 0x49de31
xor edx, edx
mov ecx, dword [ebx + 0x34]
sub ecx, dword [ebx + 0x30]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push dword [eax - 0xc]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x49e0eb
cmp dword [ebx + 0x3c], 0
je 0x49df6a
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x49de70
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49de85
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49de87
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x34], 0x100
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x100
or eax, ecx
jge 0x49debc
push 0x100
lea ecx, [ebp - 0x24]
call fcn.00407610
mov ebx, dword [ebp - 0x24]
push 0
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x13
push dword [ebp - 0x28]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [ebx - 8]
mov dword [ebp - 0x20], eax
push ebx
call fcn.005053f1
add esp, 8
test eax, eax
js 0x49e11f
cmp eax, dword [ebx - 8]
jg 0x49e11f
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x20], ecx
je 0x49e0e3
push ebx
call fcn.00514129
add esp, 4
cmp eax, 0x12d
je 0x49dfcb
cmp eax, 0x12e
je 0x49dfcb
cmp eax, 0x12f
je 0x49dfcb
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x49df67
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dfc7
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49dfc7
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49e135
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x18]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e130
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x18]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49e129
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x49e135
call edx
jmp 0x49df67
call fcn.00408090
mov ecx, eax
test ecx, ecx
jne 0x49dfe0
push 0x80004005
call fcn.00407be0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49dff5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x49dff7
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 4
mov ecx, 1
mov dword [ebp - 0x38], 0x400
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x49e02c
push 0x400
lea ecx, [ebp - 0x20]
call fcn.00407610
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x38]
push 0
push eax
push esi
push 0x21
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.005053f1
add esp, 8
test eax, eax
js 0x49e11f
cmp eax, dword [esi - 8]
jg 0x49e11f
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x49e0db
cmp dword [esi - 0xc], ecx
je 0x49e0db
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x20]
push eax
call fcn.00402690
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x30]
push ecx
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0049db60
lea ecx, [ebp - 0x20]
call fcn.00407b80
lea ecx, [ebp - 0x24]
call fcn.00407b80
lea ecx, [ebp - 0x1c]
call fcn.00407b80
lea ecx, [ebp - 0x10]
call fcn.00407b80
lea ecx, [ebp - 0x14]
call fcn.00407b80
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
lea ecx, [ebp - 0x20]
call fcn.00407b80
lea ecx, [ebp - 0x24]
call fcn.00407b80
lea ecx, [ebp - 0x1c]
call fcn.00407b80
lea ecx, [ebp - 0x10]
call fcn.00407b80
lea ecx, [ebp - 0x14]
call fcn.00407b80
push dword [ebp - 0x28]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x30]
push ecx
call esi
mov ecx, dword [ebp - 0x2c]
push ecx
call esi
jmp 0x49dd21
push 0x80070057
call fcn.00407be0
mov ecx, edx
call dword [ebp - 0x3c]
jmp 0x49e135
mov ecx, edx
call dword [ebp - 0x3c]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e178
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e176
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49e176
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x49e17e
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x49e1be
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x49e1bc
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x49e1bc
push 0
push dword [ecx + 4]
call esi
jmp 0x49e1be
call edx
push 4
call fcn.004e4542
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov dword [eax], ecx
mov ecx, ebx
push dword [ebp + 8]
push eax
call fcn.0049eb70
push 4
call fcn.004e4542
mov ecx, dword [ebp - 0x30]
lea edi, [ebx + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp + 8]
push eax
call fcn.0049eb70
push 4
call fcn.004e4542
mov ecx, dword [ebp - 0x28]
lea esi, [ebx + 0x10]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.0049eb70
sub esp, 8
mov ecx, esp
push esi
call fcn.0049e850
sub esp, 8
mov ecx, esp
push edi
call fcn.0049e850
sub esp, 8
mov ecx, esp
push ebx
call fcn.0049e850
mov ecx, dword [ebp + 8]
call fcn.0049c4e0
mov eax, dword [ebp + 8]
add esp, 0x18
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