Function at 0x4cee90
Capabilities:
Check if file exists
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567f27
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5a6124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x244], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24c], eax
lea eax, [esi + 0x20]
mov dword [ebp - 0x248], eax
mov eax, dword [eax]
mov dword [ebp - 0x250], 0
cmp dword [eax - 0xc], 0
je 0x4cf096
mov eax, dword [esi + 0x24]
lea ecx, [esi + 0x24]
mov dword [ebp - 0x234], ecx
cmp dword [eax - 0xc], 0
jne 0x4cef0c
push 3
push 0x586d04
call fcn.00407990
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x4cef21
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cef36
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4cef38
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], 0
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x4cef5d
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cef72
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4cef74
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
push 0x3c
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00506b00
mov dword [ebp - 0x2a4], 0x3c
mov ecx, 1
mov eax, dword [ebx - 8]
add esp, 0xc
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4cefc8
push 0x104
lea ecx, [ebp - 0x220]
call fcn.004076b0
mov ebx, dword [ebp - 0x220]
mov dword [ebp - 0x294], ebx
mov ecx, 1
mov dword [ebp - 0x290], 0x104
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4cf002
push 0x400
lea ecx, [ebp - 0x224]
call fcn.004076b0
mov edi, dword [ebp - 0x224]
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x278], edi
push eax
push 0
push 0
push dword [esi + 0x20]
mov dword [ebp - 0x274], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [ebx - 8]
mov dword [ebp - 0x23c], eax
push ebx
call fcn.0052340e
add esp, 8
test eax, eax
js 0x4cf71b
cmp eax, dword [ebx - 8]
jg 0x4cf71b
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
push dword [edi - 8]
push edi
call fcn.0052340e
add esp, 8
test eax, eax
js 0x4cf71b
cmp eax, dword [edi - 8]
jg 0x4cf71b
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x23c], ecx
jne 0x4cf0c7
lea ecx, [ebp - 0x224]
call fcn.00407c20
lea ecx, [ebp - 0x220]
call fcn.00407c20
mov eax, dword [ebp - 0x24c]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00502bf3
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0
push dword [esi + 0x18]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edx, eax
mov dword [ebp - 0x240], edx
test edx, edx
je 0x4cf080
mov eax, dword [esi + 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x260], xmm0
mov dword [ebp - 0x258], 0
cmp dword [eax - 0xc], 0
jne 0x4cf18b
mov ecx, dword [0x5a6d1c]
cmp ecx, 0xffffffff
jne 0x4cf17b
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00506b00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.full.data
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x240]
mov ecx, eax
neg ecx
sbb ecx, ecx
neg ecx
mov dword [0x5a6d1c], ecx
xor eax, eax
cmp ecx, 1
setne al
mov dword [ebp - 0x260], eax
jmp 0x4cf19b
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], 3
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x260]
push 0xc
push eax
push 0x26
push edx
call esi
test eax, eax
jne 0x4cf1dc
lea ecx, [ebp - 0x224]
call fcn.00407c20
lea ecx, [ebp - 0x220]
call fcn.00407c20
push dword [ebp - 0x240]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4cf096
push 8
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x264], 0
call esi
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x28c]
push ebx
push dword [ebp - 0x240]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x4cf1b3
mov ecx, dword [ebp - 0x248]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x4cf291
push 5
lea eax, [ebp - 0x22c]
push eax
call fcn.0041ea80
mov dword [ebp - 0x250], 1
mov ecx, 0x588bfc
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cf279
test dx, dx
je 0x4cf275
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cf279
add eax, 4
add ecx, 4
test dx, dx
jne 0x4cf253
xor eax, eax
jmp 0x4cf27e
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 0x238], 1
sete al
test al, al
jne 0x4cf29b
mov dword [ebp - 0x238], 0
or esi, 0xffffffff
test byte [ebp - 0x250], 1
je 0x4cf311
mov ecx, dword [ebp - 0x22c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4cf311
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x228], ebx
mov ebx, dword [ebp - 0x220]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf309
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x228], ebx
mov ebx, dword [ebp - 0x220]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cf2ff
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cf311
mov ecx, edx
call dword [ebp - 0x228]
jmp 0x4cf311
mov ecx, edx
call dword [ebp - 0x228]
cmp dword [ebp - 0x238], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x234]
push 0
push 0
push 0
push edi
push dword [eax]
push dword [ebp - 0x23c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x4cf37e
lea ecx, [ebp - 0x224]
call fcn.00407c20
lea ecx, [ebp - 0x220]
call fcn.00407c20
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x4cf096
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ecx + 0x28]
call fcn.004ce360
mov edx, dword [ebp - 0x244]
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
je 0x4cf3b0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x22c], eax
jmp 0x4cf3ba
mov dword [ebp - 0x22c], 0
mov ecx, dword [edx + 0x34]
sub ecx, dword [edx + 0x30]
mov eax, dword [ebp - 0x234]
push ecx
push dword [ebp - 0x22c]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4cf6d7
mov eax, dword [ebp - 0x244]
cmp dword [eax + 0x3c], 0
je 0x4cf520
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x4cf40a
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf41f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4cf421
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x254], 0x100
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x4cf462
push 0x100
lea ecx, [ebp - 0x22c]
call fcn.004076b0
mov esi, dword [ebp - 0x22c]
push 0
lea eax, [ebp - 0x254]
push eax
push esi
push 0x13
push dword [ebp - 0x238]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [esi - 8]
mov dword [ebp - 0x228], eax
push esi
call fcn.0052340e
add esp, 8
test eax, eax
js 0x4cf71b
cmp eax, dword [esi - 8]
jg 0x4cf71b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x228], ecx
je 0x4cf6cc
push esi
call fcn.00532149
add esp, 4
cmp eax, 0x12d
je 0x4cf58b
cmp eax, 0x12e
je 0x4cf58b
cmp eax, 0x12f
je 0x4cf58b
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4cf51d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf587
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cf587
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4cf737
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x230], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf72f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x230], ebx
mov ebx, dword [ebp - 0x220]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cf725
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4cf737
call edx
jmp 0x4cf51d
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x4cf5a0
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf5b5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4cf5b7
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov byte [ebp - 4], 4
mov ecx, 1
mov dword [ebp - 0x230], 0x400
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4cf5f8
push 0x400
lea ecx, [ebp - 0x228]
call fcn.004076b0
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x238]
lea eax, [ebp - 0x230]
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.0052340e
add esp, 8
test eax, eax
js 0x4cf71b
cmp eax, dword [esi - 8]
jg 0x4cf71b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x4cf6c1
cmp dword [esi - 0xc], ecx
je 0x4cf6c1
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x228]
push eax
call fcn.00402730
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x23c]
call esi
push dword [ebp - 0x240]
call esi
mov esi, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x244]
push esi
call fcn.004cee90
lea ecx, [ebp - 0x228]
call fcn.00407c20
lea ecx, [ebp - 0x22c]
call fcn.00407c20
lea ecx, [ebp - 0x234]
call fcn.00407c20
lea ecx, [ebp - 0x224]
call fcn.00407c20
lea ecx, [ebp - 0x220]
call fcn.00407c20
mov eax, esi
jmp 0x4cf0a9
lea ecx, [ebp - 0x228]
call fcn.00407c20
lea ecx, [ebp - 0x22c]
call fcn.00407c20
lea ecx, [ebp - 0x234]
call fcn.00407c20
lea ecx, [ebp - 0x224]
call fcn.00407c20
lea ecx, [ebp - 0x220]
call fcn.00407c20
push dword [ebp - 0x238]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x23c]
call esi
push dword [ebp - 0x240]
call esi
jmp 0x4cf096
push 0x80070057
call fcn.00407c80
mov ecx, edx
call dword [ebp - 0x230]
jmp 0x4cf737
mov ecx, edx
call dword [ebp - 0x230]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4cf779
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf777
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cf777
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x4cf77f
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], esi
dec esi
test esi, esi
jg 0x4cf7bc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4cf7ba
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4cf7ba
push 0
push dword [ecx + 4]
call edi
jmp 0x4cf7bc
call edx
push 4
call fcn.00502524
mov ecx, dword [ebp - 0x240]
add esp, 4
mov ebx, dword [ebp - 0x244]
mov dword [eax], ecx
mov ecx, ebx
push dword [ebp - 0x230]
push eax
call fcn.004d0180
push 4
call fcn.00502524
mov ecx, dword [ebp - 0x23c]
lea edi, [ebx + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp - 0x230]
push eax
call fcn.004d0180
push 4
call fcn.00502524
mov ecx, dword [ebp - 0x238]
lea esi, [ebx + 0x10]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
push dword [ebp - 0x230]
push eax
call fcn.004d0180
sub esp, 8
mov ecx, esp
push esi
call fcn.004cfe60
sub esp, 8
mov ecx, esp
push edi
call fcn.004cfe60
sub esp, 8
mov ecx, esp
push ebx
call fcn.004cfe60
mov ecx, dword [ebp - 0x24c]
call fcn.004cd810
mov eax, dword [ebp - 0x24c]
add esp, 0x18
jmp 0x4cf0a9