Function at 0x478640
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 0x5c6917
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x64b9b0]
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 0x478845
mov eax, dword [ebx + 0x24]
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x228], ecx
cmp dword [eax - 0xc], 0
jne 0x4786bc
push 3
push 0x622b5c
call fcn.00403a30
call fcn.00402810
mov ecx, eax
test ecx, ecx
jne 0x4786d1
push 0x80004005
call fcn.004022b0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
mov dword [ebp - 4], 0
call fcn.00402810
mov ecx, eax
test ecx, ecx
jne 0x4786fb
push 0x80004005
call fcn.004022b0
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.005949a0
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 0x478754
push 0x104
lea ecx, [ebp - 0x244]
call fcn.004039d0
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 0x47878e
push 0x400
lea ecx, [ebp - 0x248]
call fcn.004039d0
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.005a485d
add esp, 8
test eax, eax
js 0x479005
cmp eax, dword [edi - 8]
jg 0x479005
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
push dword [esi - 8]
push esi
call fcn.005a485d
add esp, 8
test eax, eax
js 0x479005
cmp eax, dword [esi - 8]
jg 0x479005
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp - 0x230], ecx
jne 0x478876
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 0x478829
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 0x478845
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.0057b967
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 0x47889b
mov byte [ebp - 4], al
jmp 0x47880f
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x264], xmm0
mov dword [ebp - 0x25c], 0
cmp dword [eax - 0xc], 0
jne 0x478942
mov ecx, dword [0x64cad8]
cmp ecx, 0xffffffff
jne 0x478932
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005949a0
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 [0x64cad8], ecx
xor eax, eax
cmp ecx, 1
setne al
mov dword [ebp - 0x264], eax
jmp 0x478952
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 0x478fb8
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 0x478fb8
mov ecx, dword [ebp - 0x250]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 5
jle 0x478a2e
push 5
lea eax, [ebp - 0x230]
push eax
call fcn.00440240
mov dword [ebp - 0x24c], 1
mov ecx, str.https
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x478a16
test dx, dx
je 0x478a12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x478a16
add eax, 4
add ecx, 4
test dx, dx
jne 0x4789f0
xor eax, eax
jmp 0x478a1b
sbb eax, eax
or eax, 1
test eax, eax
mov dword [ebp - 0x224], 1
sete al
test al, al
jne 0x478a38
mov dword [ebp - 0x224], 0
or ebx, 0xffffffff
test byte [ebp - 0x24c], 1
je 0x478a61
mov edx, dword [ebp - 0x230]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478a61
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 0x478aee
mov byte [ebp - 4], al
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x478ab7
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 0x478ad3
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 0x478845
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ecx + 0x28]
call fcn.004782b0
mov edx, dword [ebp - 0x238]
mov byte [ebp - 4], 2
mov eax, dword [edx + 0x34]
sub eax, dword [edx + 0x30]
je 0x478b20
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x220], eax
jmp 0x478b2a
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 0x478f3d
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0x3c], 0
je 0x478c58
call fcn.00402810
mov ecx, eax
test ecx, ecx
jne 0x478b7a
push 0x80004005
call fcn.004022b0
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 0x478bc0
push 0x100
lea ecx, [ebp - 0x230]
call fcn.004039d0
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.005a485d
add esp, 8
test eax, eax
js 0x479005
cmp eax, dword [ebx - 8]
jg 0x479005
xor ecx, ecx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], cx
cmp dword [ebp - 0x220], ecx
je 0x478f1f
push ebx
call fcn.0059cd99
add esp, 4
cmp eax, 0x12d
je 0x478d56
cmp eax, 0x12e
je 0x478d56
cmp eax, 0x12f
je 0x478d56
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 0x478c58
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 0x478c79
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 0x478c94
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 0x478cb0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 4
call fcn.0057bbbe
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.004790a0
push 4
call fcn.0057bbbe
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.004790a0
push 4
call fcn.0057bbbe
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.004790a0
sub esp, 8
mov ecx, esp
push esi
call fcn.00479010
sub esp, 8
mov ecx, esp
push edi
call fcn.00479010
sub esp, 8
mov ecx, esp
push ebx
call fcn.00479010
mov ecx, dword [ebp - 0x240]
call fcn.00477c20
mov eax, dword [ebp - 0x240]
add esp, 0x18
jmp 0x478858
call fcn.00402810
mov ecx, eax
test ecx, ecx
jne 0x478d6b
push 0x80004005
call fcn.004022b0
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 0x478db2
push 0x400
lea ecx, [ebp - 0x220]
call fcn.004039d0
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.005a485d
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x479005
mov eax, dword [ebp - 0x220]
cmp ecx, dword [eax - 8]
jg 0x479005
xor edx, edx
mov dword [eax - 0xc], ecx
mov word [eax + ecx*2], dx
cmp dword [ebp - 0x22c], edx
je 0x478f03
cmp dword [eax - 0xc], edx
je 0x478f03
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x220]
push eax
call fcn.00404320
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.00478640
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 0x478e82
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 0x478ea0
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 0x478ec1
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 0x478edc
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 0x478ef8
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
jmp 0x478858
lea edx, [eax - 0x10]
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x478f1f
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 0x478f3d
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 0x478f5e
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 0x478f79
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 0x478f95
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 0x478845
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 0x478fd6
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 0x478ff2
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 0x478845
push 0x80070057
call fcn.004022b0
int3