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

Disassembly:
push 0x58
mov eax, 0x1013beca
call fcn.101018b2
mov edi, ecx
mov eax, dword [edi + 0x28]
xor ebx, ebx
cmp eax, ebx
je 0x1004e335
push dword [eax + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e335
push 0x1019e148
lea ecx, [ebp - 0x48]
call fcn.1000584b
mov eax, dword [0x1019a028]
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.1000584b
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push str.__s_upload
push eax
mov byte [ebp - 4], 2
call fcn.100020c6
mov esi, dword [edi + 0x54]
or dword [ebp - 0x40], 0xffffffff
add esp, 0xc
cmp esi, ebx
jl 0x1004e31d
mov ecx, dword [edi + 0x44]
call fcn.1001fd50
cmp esi, eax
jge 0x1004e31d
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.10002742
test eax, eax
jle 0x1004e284
mov ebx, 0x1015934c
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 0x1004e284
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x1004de2e
push dword [ebp - 0x28]
call fcn.1004d770
push dword [ebp - 0x28]
lea ecx, [edi + 0x34]
call fcn.10002755
push eax
lea ecx, [ebp - 0x18]
call fcn.1000584b
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], 0
mov byte [ebp - 4], 4
jne 0x1004de69
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x1004e21f
push 0
lea ecx, [eax + 0x24]
call fcn.10048938
jmp 0x1004e21f
mov eax, dword [0x1019a028]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push ebx
push 0x1015a1d0
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push 0x1015a1cc
push 0x10153be8
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push ebx
push 0x1015a1c4
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push ebx
push str.BrowserType
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push dword [edi + 0x54]
mov ecx, dword [edi + 0x44]
call fcn.1001fd63
push dword [eax]
lea eax, [ebp - 0x10]
push str.spAlbumName
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push ebx
push 0x1015a18c
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push str.1280
push str.spMaxSize
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
push 0x1015a164
push str.spQuality
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
push 0x5c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x4c], eax
call fcn.1001dab5
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.1000e753
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push str.spPhotoText0
push esi
push eax
mov byte [ebp - 4], 7
call fcn.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
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.100020c6
mov eax, dword [ebp - 0x10]
add esp, 0x10
push eax
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.1000bdcb
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.10001a82
push eax
push 0
call fcn.100e1421
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
je 0x1004e207
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 0x1004e082
push dword [ebp - 0x34]
call fcn.10100bb6
pop ecx
jmp 0x1004e207
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x2c], eax
call fcn.10100af4
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
je 0x1004e074
push dword [ebp - 0x2c]
push 0
push eax
call fcn.101027c0
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.10100af4
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
jne 0x1004e102
push dword [ebp - 0x30]
call fcn.10100bb6
push dword [ebp - 0x34]
call fcn.10100bb6
pop ecx
jmp 0x1004e07c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
lea ecx, [ecx + edx + 3]
push ecx
push 0
push eax
call fcn.101027c0
push dword [ebp - 0x20]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call fcn.10102a40
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.10102a40
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.10001a82
push eax
push 0x50
push 0
lea ecx, [ebp - 0x48]
call fcn.10001a82
push eax
mov ecx, edi
call fcn.1004ade3
test eax, eax
je 0x1004e1ca
push dword [edi + 0x54]
mov ecx, dword [edi + 0x44]
call fcn.1001fd63
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.1004d1b4
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 0x1004e1ec
push 0
lea ecx, [eax + 0x24]
call fcn.10048938
jmp 0x1004e1ec
push 0
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 7
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1004e241
push 0x4b0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x2c]
call fcn.10100bb6
push dword [ebp - 0x30]
call fcn.10100bb6
push dword [ebp - 0x34]
call fcn.10100bb6
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.100015d9
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100015d9
inc dword [ebp - 0x28]
lea ecx, [edi + 0x34]
call fcn.10002742
cmp dword [ebp - 0x28], eax
jl 0x1004de15
jmp 0x1004e284
push dword [ebp - 0x2c]
and dword [ebp - 0x40], 0
call fcn.10100bb6
push dword [ebp - 0x30]
call fcn.10100bb6
push dword [ebp - 0x34]
call fcn.10100bb6
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.100015d9
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x14]
call fcn.100015d9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100015d9
xor ebx, ebx
cmp dword [ebp - 0x60], ebx
jne 0x1004e28f
xor esi, esi
jmp 0x1004e2b8
mov esi, dword [ebp - 0x5c]
sub esi, dword [ebp - 0x60]
sar esi, 2
jmp 0x1004e2b8
push esi
lea ecx, [ebp - 0x64]
call fcn.1003bbfc
mov ecx, dword [eax]
mov eax, dword [edi + 0x28]
push 0
push ecx
lea ecx, [eax + 0x184]
call fcn.100ebcb4
add ebx, eax
dec esi
jns 0x1004e29a
mov eax, dword [edi + 0x48]
sub dword [eax], ebx
mov ecx, edi
call fcn.1004d8b2
cmp dword [edi + 0x50], 0
jne 0x1004e2f8
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.10002742
mov ecx, dword [edi + 0x30]
push eax
call fcn.1004abe6
lea ecx, [ebp - 0x64]
call fcn.1003bdc5
lea ecx, [ebp - 0x44]
call fcn.100015d9
lea ecx, [ebp - 0x38]
call fcn.100015d9
lea ecx, [ebp - 0x48]
call fcn.100015d9
mov eax, dword [ebp - 0x40]
jmp 0x1004e337
lea ecx, [ebp - 0x44]
call fcn.100015d9
lea ecx, [ebp - 0x38]
call fcn.100015d9
lea ecx, [ebp - 0x48]
call fcn.100015d9
xor eax, eax
call fcn.1010198a
ret