Function at 0x412080
Capabilities:
Check if file exists
Check internet connectivity via wininet
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c63
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x52f8b0]
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 dword [ebp - 0x1b0], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1d8], eax
push 0xc
xor eax, eax
push str.Gifsicle.dll
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1e4], 7
mov dword [ebp - 0x1e8], 0
mov word [ebp - 0x1f8], ax
call fcn.00402530
lea eax, [ebp - 0x1f8]
push eax
lea ecx, [ebp - 0x1e0]
mov dword [ebp - 4], 0
call fcn.0040d1f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1e4], 8
jb 0x412120
push dword [ebp - 0x1f8]
call fcn.0041a777
add esp, 4
xor eax, eax
push 0xf
push str.ImageMagick.dll
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1e4], 7
mov dword [ebp - 0x1e8], 0
mov word [ebp - 0x1f8], ax
mov dword [ebp - 0x1b8], 7
mov dword [ebp - 0x1bc], eax
mov word [ebp - 0x1cc], ax
call fcn.00402530
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 3
call fcn.0040d1f0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1b8], 8
jb 0x412197
push dword [ebp - 0x1cc]
call fcn.0041a777
add esp, 4
mov esi, dword [ebp - 0x1dc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.resizefile
xor eax, eax
push esi
mov dword [ebp - 0x1b8], 7
mov dword [ebp - 0x1bc], 0
mov word [ebp - 0x1cc], ax
call edi
mov ebx, dword [ebp - 0x1e0]
push str.resizefile
push ebx
mov dword [ebp - 0x1a8], eax
call edi
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0x1ac], eax
cmp dword [edi + 0x30], 0x10
lea eax, [edi + 0x1c]
jb 0x4121f3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1ec]
call fcn.004052e0
mov byte [ebp - 4], 6
mov edx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp word [edx], ax
jne 0x412223
xor ecx, ecx
jmp 0x412240
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
jmp 0x412230
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412230
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00402530
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - method.CodeConvertForCpp::Utf8ToUnicode.virtual_0], vtable.CodeConvertForCpp::Utf8ToUnicode.0
test eax, eax
je 0x412275
push eax
call fcn.0041c5aa
add esp, 4
mov dword [ebp - 0x1e8], 0
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
mov dword [ebp - method.fund::noncopyable.virtual_0], vtable.fund::noncopyable.0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4122ab
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [edi + 0x34]
push dword [edi]
test ecx, ecx
cmovg eax, ecx
push str.TASK_SEARCH_EMOJI_begin_with_hwnd___x_n
mov dword [ebp - 0x1c], eax
call fcn.0040fa60
add esp, 8
push dword [ebp - 0x1c]
push 1
push 0xbde
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x412326
cmp dword [edi + 0x38], 1
jne 0x41230c
push dword [ebp - 0x1c]
push 4
push 0xbde
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0x1c]
push 0x10003
push 0xbde
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4127e0
push 0xa
push str.UploadBase
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 0x1cc], 0
call fcn.00401600
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 9
call fcn.00411390
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1b8], 0x10
jb 0x412398
push dword [ebp - 0x1cc]
call fcn.0041a777
add esp, 4
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 0x1cc], 0
call fcn.00411d40
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 0xc
call fcn.004116e0
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xd
call fcn.00445b90
add esp, 8
mov dword [ebp - 0x4c], 0
push 0
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00413da0
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xe
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x20], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x54], 0x10
lea ecx, [ebp - 0x68]
cmovae ecx, dword [ebp - 0x68]
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x412462
mov eax, dword [eax]
push ecx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push eax
lea eax, [ebp - 0x20]
push str.http:__config.android.qqpy.sogou.com_QQinput_android_search__keyword_spage_dsize_dpc1q_s
push eax
call fcn.00413de0
push dword [ebp - 0x20]
push str.Request_url___s_n
call fcn.00411260
mov eax, dword [ebp - 0x20]
add esp, 0x20
mov dword [ebp - 0x1b8], 0xf
mov dword [ebp - 0x1bc], 0
mov byte [ebp - 0x1cc], 0
cmp byte [eax], 0
jne 0x4124af
xor edx, edx
jmp 0x4124c1
mov edx, eax
lea ecx, [edx + 1]
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4124b7
sub edx, dword [ebp - 0x18]
push edx
push eax
lea ecx, [ebp - 0x1cc]
call fcn.00401600
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1cc]
push eax
mov byte [ebp - 4], 0x10
call fcn.00444dd0
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x1b8], 0x10
jb 0x4124ff
push dword [ebp - 0x1cc]
call fcn.0041a777
add esp, 4
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x20]
sub esp, 0x18
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x1d0]
mov ecx, esp
push eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x1cc], edi
call fcn.00413e00
mov ecx, dword [ebp - 0x1b0]
call fcn.004445f0
cmp dword [edi + 0x38], 1
jne 0x412582
movzx eax, word [ebp - 0x30]
push dword [ebp - 0x1c]
shl eax, 0x10
or eax, 4
push eax
push 0xbde
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x28], 0
je 0x412706
mov eax, dword [edi + 0x38]
dec eax
imul eax, dword [edi + 0x3c]
mov edi, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x24], eax
mov esi, dword [edi]
cmp esi, edi
je 0x4126fa
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x18], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x4125da
push str.zero_index__n
call fcn.0040fa60
mov ecx, dword [ebp - 0x24]
add esp, 4
cmp dword [ebp - 0x34], 8
push ecx
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x18]
push str._s_u
push eax
call fcn.00401d50
mov ecx, dword [ebp - 0x1b0]
add esp, 0x10
lea eax, [esi + 0x54]
push eax
call fcn.00444dd0
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x1d4], eax
lea eax, [esi + 8]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1cc], eax
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1c]
sub esp, 0x18
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], esp
push 0x28
mov byte [ebp - 4], 0x12
call fcn.0041b301
add esp, 4
test eax, eax
je 0x412837
movq xmm0, qword [ebp - 0x1d4]
mov ecx, dword [ebp - 0x1b4]
mov dword [eax], 0x527d70
movq qword [eax + 4], xmm0
movq xmm0, qword [ebp - 0x1cc]
movq qword [eax + 0xc], xmm0
movq xmm0, qword [ebp - 0x1c4]
movq qword [eax + 0x14], xmm0
movq xmm0, qword [ebp - 0x1bc]
movq qword [eax + 0x1c], xmm0
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x1b0]
mov byte [ebp - 4], 0x11
call fcn.004445f0
inc dword [ebp - 0x24]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4126f0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esi]
cmp esi, edi
jne 0x4125a5
mov edi, dword [ebp - 0x1d8]
mov esi, dword [ebp - 0x1dc]
movzx eax, word [ebp - 0x4c]
push dword [ebp - 0x1c]
shl eax, 0x10
or eax, 3
push eax
push 0xbde
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412742
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
cmp ecx, eax
je 0x412782
mov ebx, ecx
nop
mov edi, dword [ebx]
lea ecx, [ebx + 8]
call fcn.00413640
push ebx
call fcn.0041a777
mov eax, dword [ebp - 0x2c]
add esp, 4
mov ebx, edi
cmp edi, eax
jne 0x412760
mov ebx, dword [ebp - 0x1e0]
push eax
call fcn.0041a777
add esp, 4
cmp dword [ebp - 0x54], 0x10
jb 0x41279c
push dword [ebp - 0x68]
call fcn.0041a777
add esp, 4
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
jb 0x4127bf
push dword [ebp - 0x80]
call fcn.0041a777
add esp, 4
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 8
call fcn.00413460
cmp dword [ebp - 0x34], 8
jb 0x4127f1
push dword [ebp - 0x48]
call fcn.0041a777
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test esi, esi
je 0x412812
push esi
call edi
test ebx, ebx
je 0x412819
push ebx
call edi
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.0041a77c
mov esp, ebp
pop ebp
ret 4
call fcn.004149e1
int3