Function at 0x4a1380
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 0x57d1e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5cc128]
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 0x4a1585
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x228], ecx
cmp dword [eax - 0xc], 0
jne 0x4a13fc
push 3
push 0x5a7810
call fcn.00407740
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a1411
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 0x4a143b
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.0051d210
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 0x4a1494
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 0x4a14ce
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.0053a24e
add esp, 8
test eax, eax
js 0x4a1d45
cmp eax, dword [edi - 8]
jg 0x4a1d45
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.0053a24e
add esp, 8
test eax, eax
js 0x4a1d45
cmp eax, dword [esi - 8]
jg 0x4a1d45
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x4a15b6
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 0x4a1569
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 0x4a1585
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.004f88bd
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 0x4a15db
mov byte [ebp - 4], al
jmp 0x4a154f
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x264], xmm0
mov dword [ebp - 0x25c], 0
cmp dword [eax - 0xc], 0
jne 0x4a1682
mov ecx, dword [0x5ccdbc]
cmp ecx, 0xffffffff
jne 0x4a1672
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0051d210
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 [0x5ccdbc], ecx
xor eax, eax
cmp ecx, 1
setne al
mov dword [ebp - 0x264], eax
jmp 0x4a1692
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 0x4a1cf8
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 0x4a1cf8
mov ecx, dword [ebp - 0x250]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x4a176e
push 5
lea eax, [ebp - 0x230]
push eax
call fcn.00415580
mov dword [ebp - 0x24c], 1
mov ecx, 0x5a781c
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a1756
test dx, dx
je 0x4a1752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a1756
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a1730
xor eax, eax
jmp 0x4a175b
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 0x224], 1
sete al
test al, al
jne 0x4a1778
mov dword [ebp - 0x224], 0
or ebx, 0xffffffff
test byte [ebp - 0x24c], 1
je 0x4a17a1
mov edx, dword [ebp - 0x230]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a17a1
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 0x4a182e
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a17f7
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 0x4a1813
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 0x4a1585
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ecx + 0x28]
call fcn.004a09b0
mov edx, dword [ebp - 0x238]
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
je 0x4a1860
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x220], eax
jmp 0x4a186a
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 0x4a1c7d
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x3c], 0
je 0x4a1998
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a18ba
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 0x4a1900
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.0053a24e
add esp, 8
test eax, eax
js 0x4a1d45
cmp eax, dword [ebx - 8]
jg 0x4a1d45
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x4a1c5f
push ebx
call fcn.00548f89
add esp, 4
cmp eax, 0x12d
je 0x4a1a96
cmp eax, 0x12e
je 0x4a1a96
cmp eax, 0x12f
je 0x4a1a96
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 0x4a1998
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 0x4a19b9
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 0x4a19d4
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 0x4a19f0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.004f81ee
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.004a26b0
push 4
call fcn.004f81ee
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.004a26b0
push 4
call fcn.004f81ee
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.004a26b0
sub esp, 8
mov ecx, esp
push esi
call fcn.004a2320
sub esp, 8
mov ecx, esp
push edi
call fcn.004a2320
sub esp, 8
mov ecx, esp
push ebx
call fcn.004a2320
mov ecx, dword [ebp - 0x240]
call fcn.0049fde0
mov eax, dword [ebp - 0x240]
add esp, 0x18
jmp 0x4a1598
call fcn.00407e20
mov ecx, eax
test ecx, ecx
jne 0x4a1aab
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 0x4a1af2
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.0053a24e
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4a1d45
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x4a1d45
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x22c], edx
je 0x4a1c43
cmp dword [eax - 0xc], edx
je 0x4a1c43
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.004a1380
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 0x4a1bc2
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 0x4a1be0
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 0x4a1c01
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 0x4a1c1c
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 0x4a1c38
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
jmp 0x4a1598
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a1c5f
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 0x4a1c7d
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 0x4a1c9e
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 0x4a1cb9
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 0x4a1cd5
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 0x4a1585
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 0x4a1d16
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 0x4a1d32
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 0x4a1585
push 0x80070057
call fcn.004079f0
int3