Function at 0x4a1220
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 0x57a567
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5c8128]
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 ebx, ecx
mov dword [ebp - 0x238], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
lea eax, [ebx + 0x20]
mov dword [ebp - 0x250], eax
mov eax, dword [eax]
mov dword [ebp - 0x24c], 0
cmp dword [eax - 0xc], 0
je 0x4a1425
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x228], ecx
cmp dword [eax - 0xc], 0
jne 0x4a129c
push 3
push 0x5a4788
call fcn.00407740
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a12b1
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
mov dword [ebp - 4], 0
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a12db
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x248], esi
push 0x3c
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0051a560
mov dword [ebp - 0x2a8], 0x3c
mov ecx, 1
mov eax, dword [edi - 8]
add esp, 0xc
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4a1334
push 0x104
lea ecx, [ebp - 0x244]
call fcn.00407460
mov edi, dword [ebp - 0x244]
mov dword [ebp - 0x298], edi
mov ecx, 1
mov dword [ebp - 0x294], 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4a136e
push 0x400
lea ecx, [ebp - 0x248]
call fcn.00407460
mov esi, dword [ebp - 0x248]
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x27c], esi
push eax
push 0
push 0
push dword [ebx + 0x20]
mov dword [ebp - 0x278], 0x400
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
push dword [edi - 8]
mov dword [ebp - 0x230], eax
push edi
call fcn.00537622
add esp, 8
test eax, eax
js 0x4a1be5
cmp eax, dword [edi - 8]
jg 0x4a1be5
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.00537622
add esp, 8
test eax, eax
js 0x4a1be5
cmp eax, dword [esi - 8]
jg 0x4a1be5
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x4a1456
mov byte [ebp - 4], cl
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1409
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a1425
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x240]
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.004f5c19
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 - 0x234], edx
test edx, edx
jne 0x4a147b
mov byte [ebp - 4], al
jmp 0x4a13ef
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x264], xmm0
mov dword [ebp - 0x25c], 0
cmp dword [eax - 0xc], 0
jne 0x4a1522
mov ecx, dword [0x5c8dbc]
cmp ecx, 0xffffffff
jne 0x4a1512
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0051a560
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 - 0x234]
mov ecx, eax
neg ecx
sbb ecx, ecx
neg ecx
mov dword [0x5c8dbc], ecx
xor eax, eax
cmp ecx, 1
setne al
mov dword [ebp - 0x264], eax
jmp 0x4a1532
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], 3
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x264]
push 0xc
push eax
push 0x26
push edx
call ebx
test eax, eax
je 0x4a1b98
push 8
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 1
push eax
push 0x32
push 0
mov dword [ebp - 0x268], 0
call ebx
push 1
push 0
push 3
push 0
push 0
push dword [ebp - 0x290]
push edi
push dword [ebp - 0x234]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x23c], eax
test eax, eax
je 0x4a1b98
mov ecx, dword [ebp - 0x250]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x4a160e
push 5
lea eax, [ebp - 0x230]
push eax
call fcn.00415580
mov dword [ebp - 0x24c], 1
mov ecx, 0x5a4794
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a15f6
test dx, dx
je 0x4a15f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a15f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a15d0
xor eax, eax
jmp 0x4a15fb
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 0x224], 1
sete al
test al, al
jne 0x4a1618
mov dword [ebp - 0x224], 0
or ebx, 0xffffffff
test byte [ebp - 0x24c], 1
je 0x4a1641
mov edx, dword [ebp - 0x230]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1641
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x224], 0
mov ecx, 0xc81000
push 1
mov eax, 0x680000
cmovne eax, ecx
push eax
mov eax, dword [ebp - 0x228]
push 0
push 0
push 0
push esi
push dword [eax]
push dword [ebp - 0x23c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x4a16ce
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1697
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a16b3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x23c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x234]
call esi
jmp 0x4a1425
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ecx + 0x28]
call fcn.004a0850
mov edx, dword [ebp - 0x238]
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
je 0x4a1700
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x220], eax
jmp 0x4a170a
mov dword [ebp - 0x220], 0
mov ecx, dword [edx + 0x34]
sub ecx, dword [edx + 0x30]
mov eax, dword [ebp - 0x228]
push ecx
push dword [ebp - 0x220]
push dword [eax - 0xc]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4a1b1d
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x3c], 0
je 0x4a1838
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a175a
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x230], ebx
mov byte [ebp - 4], 3
mov ecx, 1
mov dword [ebp - 0x254], 0x100
mov eax, dword [ebx - 8]
sub ecx, dword [ebx - 4]
sub eax, 0x100
or eax, ecx
jge 0x4a17a0
push 0x100
lea ecx, [ebp - 0x230]
call fcn.00407460
mov ebx, dword [ebp - 0x230]
push 0
lea eax, [ebp - 0x254]
push eax
push ebx
push 0x13
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [ebx - 8]
mov dword [ebp - 0x220], eax
push ebx
call fcn.00537622
add esp, 8
test eax, eax
js 0x4a1be5
cmp eax, dword [ebx - 8]
jg 0x4a1be5
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x4a1aff
push ebx
call fcn.00546359
add esp, 4
cmp eax, 0x12d
je 0x4a1936
cmp eax, 0x12e
je 0x4a1936
cmp eax, 0x12f
je 0x4a1936
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1838
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1859
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1874
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a1890
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.004f554a
mov ecx, dword [ebp - 0x234]
add esp, 4
mov ebx, dword [ebp - 0x238]
mov dword [eax], ecx
mov ecx, ebx
push dword [ebp - 0x22c]
push eax
call fcn.004a2550
push 4
call fcn.004f554a
mov ecx, dword [ebp - 0x23c]
lea edi, [ebx + 8]
add esp, 4
mov dword [eax], ecx
mov ecx, edi
push dword [ebp - 0x22c]
push eax
call fcn.004a2550
push 4
call fcn.004f554a
mov ecx, dword [ebp - 0x224]
lea esi, [ebx + 0x10]
add esp, 4
mov dword [eax], ecx
mov ecx, esi
push dword [ebp - 0x22c]
push eax
call fcn.004a2550
sub esp, 8
mov ecx, esp
push esi
call fcn.004a21c0
sub esp, 8
mov ecx, esp
push edi
call fcn.004a21c0
sub esp, 8
mov ecx, esp
push ebx
call fcn.004a21c0
mov ecx, dword [ebp - 0x240]
call fcn.0049fc80
mov eax, dword [ebp - 0x240]
add esp, 0x18
jmp 0x4a1438
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a194b
push 0x80004005
call fcn.004079f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
mov edx, 1
mov dword [ebp - 0x258], 0x400
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x400
or ecx, edx
jge 0x4a1992
push 0x400
lea ecx, [ebp - 0x220]
call fcn.00407460
mov eax, dword [ebp - 0x220]
push 0
lea ecx, [ebp - 0x258]
push ecx
push eax
push 0x21
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x220]
push dword [eax - 8]
push eax
call fcn.00537622
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a1be5
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x4a1be5
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x22c], edx
je 0x4a1ae3
cmp dword [eax - 0xc], edx
je 0x4a1ae3
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x220]
push eax
call fcn.00402ed0
push dword [ebp - 0x224]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x23c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x234]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x240]
mov ecx, dword [ebp - 0x238]
call fcn.004a1220
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1a62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1a80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1aa1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1abc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a1ad8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
jmp 0x4a1438
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1aff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1b1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1b3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1b59
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a1b75
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x224]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x23c]
call esi
push dword [ebp - 0x234]
call esi
jmp 0x4a1425
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a1bb6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a1bd2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x234]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x4a1425
push 0x80070057
call fcn.004079f0
int3