Function at 0x1006a691
Capabilities:
Check internet connectivity via wininet
Get file size
Hide graphical window
Read file on windows

Disassembly:
push 0x58
mov eax, 0x10183859
call fcn.10145d80
mov edi, ecx
mov eax, dword [edi + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x1006ac66
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006ac66
push 0x101f7f14
lea ecx, [ebp - 0x48]
call fcn.10007ade
mov eax, dword [0x101f3028]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.10007ade
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push str.__s_upload
push eax
mov byte [ebp - 4], 2
call fcn.10004662
mov esi, dword [edi + 0x54]
or dword [ebp - 0x40], 0xffffffff
add esp, 0xc
cmp esi, ebx
jl 0x1006ac4e
mov ecx, dword [edi + 0x44]
call fcn.10031235
cmp esi, eax
jge 0x1006ac4e
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ebx
call fcn.10004cde
test eax, eax
jle 0x1006abb5
mov ebx, 0x101a2f0c
mov esi, str.____MULTI_PARTS_FORM_DATA_BOUNDARY_r_nContent_Disposition:_form_data___name__s__r_n_r_n_s_r_n
cmp dword [edi + 0x50], 0
jne 0x1006abb5
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x1006a75f
push dword [ebp - 0x28]
call fcn.1006a0a1
push dword [ebp - 0x28]
lea ecx, [edi + 0x34]
call fcn.10004cf1
push eax
lea ecx, [ebp - 0x18]
call fcn.10007ade
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
mov byte [ebp - 4], 4
jne 0x1006a79a
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1006ab50
push 0
lea ecx, [eax + 0x24]
call fcn.1006553c
jmp 0x1006ab50
mov eax, dword [0x101f3028]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push ebx
push 0x101a8078
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push 0x101a8074
push 0x101a04c8
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push ebx
push 0x101a806c
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push ebx
push str.BrowserType
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push dword [edi + 0x54]
mov ecx, dword [edi + 0x44]
call fcn.10031248
push dword [eax]
lea eax, [ebp - 0x10]
push str.spAlbumName
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push ebx
push 0x101a8034
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push str.1280
push str.spMaxSize
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push 0x101a800c
push str.spQuality
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
push 0x5c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
call fcn.1002a041
mov ecx, eax
mov eax, dword [ebp - 0x4c]
sub eax, ecx
dec eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10011776
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push str.spPhotoText0
push esi
push eax
mov byte [ebp - 4], 7
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push str.spPhotoFile0
push str.____MULTI_PARTS_FORM_DATA_BOUNDARY_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_image_pjpeg_r_n_r_n
push eax
call fcn.10004662
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000e791
mov eax, dword [ebp - 0x14]
xor ecx, ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [eax - 8]
lea edx, [ebp - 0x3c]
push edx
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000401e
push eax
push 0
call fcn.10120fe4
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
je 0x1006ab38
mov dword [ebp - 0x34], eax
push ecx
push ecx
push 3
push ecx
push 1
push SysReAllocString
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x4c], eax
jne 0x1006a9b3
push dword [ebp - 0x34]
call fcn.10145084
pop ecx
jmp 0x1006ab38
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x2c], eax
call fcn.10144fc2
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
je 0x1006a9a5
push dword [ebp - 0x2c]
push 0
push eax
call fcn.10146c80
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x24], 0
add esp, 0xc
mov dword [ebp - 0x50], eax
push 0
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax + 3]
push eax
call fcn.10144fc2
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
jne 0x1006aa33
push dword [ebp - 0x30]
call fcn.10145084
push dword [ebp - 0x34]
call fcn.10145084
pop ecx
jmp 0x1006a9ad
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea ecx, [ecx + edx + 3]
push ecx
push 0
push eax
call fcn.10146c80
push dword [ebp - 0x20]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.10147010
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x30]
add ecx, eax
push ecx
call fcn.10147010
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
add ecx, eax
add esp, 0x24
mov word [ecx + edx], 0xa0d
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea ecx, [ecx + edx + 3]
push ecx
push eax
push 0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xa
call fcn.1000401e
push eax
push 0x50
push 0
lea ecx, [ebp - 0x48]
call fcn.1000401e
push eax
mov ecx, edi
call fcn.10067730
test eax, eax
je 0x1006aafb
push dword [edi + 0x54]
mov ecx, dword [edi + 0x44]
call fcn.10031248
add eax, 4
inc dword [eax]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.10069ae5
xor eax, eax
inc eax
push 0x4b0
mov dword [edi + 0x4c], eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1006ab1d
push 0
lea ecx, [eax + 0x24]
call fcn.1006553c
jmp 0x1006ab1d
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 7
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1006ab72
push 0x4b0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x2c]
call fcn.10145084
push dword [ebp - 0x30]
call fcn.10145084
push dword [ebp - 0x34]
call fcn.10145084
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.10003b75
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10003b75
inc dword [ebp - 0x28]
lea ecx, [edi + 0x34]
call fcn.10004cde
cmp dword [ebp - 0x28], eax
jl 0x1006a746
jmp 0x1006abb5
push dword [ebp - 0x2c]
and dword [ebp - 0x40], 0
call fcn.10145084
push dword [ebp - 0x30]
call fcn.10145084
push dword [ebp - 0x34]
call fcn.10145084
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.10003b75
lea ecx, [ebp - 0x10]
call fcn.10003b75
lea ecx, [ebp - 0x14]
call fcn.10003b75
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.10003b75
xor ebx, ebx
cmp dword [ebp - 0x60], ebx
jne 0x1006abc0
xor esi, esi
jmp 0x1006abe9
mov esi, dword [ebp - 0x5c]
sub esi, dword [ebp - 0x60]
sar esi, 2
jmp 0x1006abe9
push esi
lea ecx, [ebp - 0x64]
call fcn.10056c20
mov ecx, dword [eax]
mov eax, dword [edi + 0x28]
push 0
push ecx
lea ecx, [eax + 0x184]
call fcn.1012d43e
add ebx, eax
dec esi
jns 0x1006abcb
mov eax, dword [edi + 0x48]
sub dword [eax], ebx
mov ecx, edi
call fcn.1006a1e3
cmp dword [edi + 0x50], 0
jne 0x1006ac29
mov eax, dword [edi + 0x2c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 4]
call esi
mov eax, dword [edi + 0x30]
push 5
push dword [eax + 4]
call esi
lea ecx, [edi + 0x34]
call fcn.10004cde
mov ecx, dword [edi + 0x30]
push eax
call fcn.10067533
lea ecx, [ebp - 0x64]
call fcn.10057090
lea ecx, [ebp - 0x44]
call fcn.10003b75
lea ecx, [ebp - 0x38]
call fcn.10003b75
lea ecx, [ebp - 0x48]
call fcn.10003b75
mov eax, dword [ebp - 0x40]
jmp 0x1006ac68
lea ecx, [ebp - 0x44]
call fcn.10003b75
lea ecx, [ebp - 0x38]
call fcn.10003b75
lea ecx, [ebp - 0x48]
call fcn.10003b75
xor eax, eax
call fcn.10145e58
ret