Function at 0x4e6050
Capabilities:
Check http status code
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548998
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x570400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00401bd0
cmp dword [ebx + 0x64], 0xf
lea ecx, [ebx + 0x50]
mov edx, eax
jbe 0x4e6093
mov ecx, dword [ebx + 0x50]
cmp dword [ebx + 0x30], 0xf
lea eax, [ebx + 0x1c]
jbe 0x4e609e
mov eax, dword [eax]
push ecx
push eax
push str.perform_req_id:__s__stage:__s
push str.UploadAWSStage
push edx
call fcn.00412dc0
add esp, 0x14
lea eax, [ebp - 0x1f8]
mov ecx, ebx
push eax
call fcn.004e53c0
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x1f8]
call fcn.004e4c20
lea ecx, [ebx + 0xa0]
mov byte [ebp - 4], 1
push str.aws_api_url
call fcn.00403750
lea ecx, [ebp - 0x74]
push ecx
mov ecx, eax
call fcn.004038e0
mov byte [ebp - 4], 2
call fcn.00401bd0
cmp dword [ebp - 0x60], 0xf
lea ecx, [ebp - 0x74]
cmova ecx, dword [ebp - 0x74]
push ecx
push str.Upload_url:__s
push str.UploadAWSStage
push eax
call fcn.00412dc0
call fcn.00401bd0
cmp dword [ebp - 0x78], 0xf
lea ecx, [ebp - 0x8c]
cmova ecx, dword [ebp - 0x8c]
push ecx
push str.Upload_body:__s
push str.UploadAWSStage
push eax
call fcn.00412dc0
add esp, 0x20
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4e6195
call fcn.00401bd0
push str.No_network_connection__skip___
push str.UploadAWSStage
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [ebx + 0x80]
push 0xa
push str.no_network
call fcn.00403070
mov byte [ebx + 0x98], 0
jmp 0x4e6678
mov esi, 3
nop word [eax + eax]
sub esp, 0x18
lea eax, [ebp - 0x8c]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004029c0
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.004029c0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.004e49e0
add esp, 0x30
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 0xc8
je 0x4e632d
call fcn.00401bd0
sub esp, 0x10
lea ecx, [ebp - 0x54]
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e00a0
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 0xf
jbe 0x4e6208
mov eax, dword [eax]
push eax
push dword [ebp - 0x5c]
push str.Upload_fail_with_status:__d___s
push str.UploadAWSStage
push edi
call fcn.00412dc0
mov byte [ebp - 4], 4
add esp, 0x14
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4e6257
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e624d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e639d
push ecx
push edx
call fcn.005453ef
add esp, 8
sub esp, 0x10
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x54]
push eax
call fcn.004e00a0
push eax
mov edx, str.upload_to_aws_error:
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.004e4010
add esp, 4
lea ecx, [ebx + 0x80]
push eax
call fcn.00411560
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x4e62bb
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e62b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e639d
push ecx
push edx
call fcn.005453ef
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x4e6305
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e62fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e639d
push ecx
push edx
call fcn.005453ef
add esp, 8
mov byte [ebx + 0x98], 0
dec esi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x54]
call fcn.00402ad0
mov byte [ebp - 4], 2
test esi, esi
jg 0x4e61a0
jmp 0x4e663c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 5
call fcn.00401bd0
sub esp, 0x10
lea ecx, [ebp - 0x24]
mov esi, eax
lea eax, [ebp - 0x44]
push eax
call fcn.004e00a0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x4e635f
mov eax, dword [eax]
push eax
push str.Resp:__s
push str.UploadAWSStage
push esi
call fcn.00412dc0
mov byte [ebp - 4], 5
add esp, 0x10
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x4e63ad
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e63a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e63a3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005453ef
add esp, 8
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00402e60
sub esp, 0x10
mov byte [ebp - 4], 8
lea eax, [ebp - 0x224]
lea ecx, [ebp - 0x54]
push eax
call fcn.004e00a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x208]
xorps xmm0, xmm0
mov byte [ebp - 0x208], 0
mov edx, eax
movq qword [ebp - 0x200], xmm0
call fcn.004e45a0
push str.message
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.00403750
mov cl, byte [ebp - 0x208]
mov edi, eax
mov eax, dword [ebp - 0x200]
mov dl, byte [edi]
mov byte [edi], cl
mov esi, dword [edi + 0xc]
mov ecx, dword [ebp - 0x1fc]
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x208], dl
mov edx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x200], edx
mov dword [ebp - 0x1fc], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x200]
push dword [ebp - 0x14]
call fcn.00402ad0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xf
jbe 0x4e6490
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6486
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e6486
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005453ef
add esp, 8
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x208]
call fcn.00402470
mov byte [ebp - 4], 0xc
lea ecx, [ebx + 0x50]
cmp dword [ebx + 0x64], 0xf
mov edx, dword [ebx + 0x60]
jbe 0x4e64b2
mov ecx, dword [ebx + 0x50]
push 5
push str.aws_2
call fcn.00403b60
add esp, 8
mov edx, str.aws_1
test eax, eax
mov ecx, str.aws_2
cmovne ecx, edx
push ecx
lea ecx, [ebx + 0xb0]
call fcn.00403750
mov cl, byte [ebp - 0x208]
mov edi, eax
mov dl, byte [edi]
mov byte [edi], cl
mov eax, dword [ebp - 0x200]
mov ecx, dword [ebp - 0x1fc]
mov byte [ebp - 0x208], dl
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [ebp - 0x200], edx
mov dword [ebp - 0x1fc], esi
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x200]
push dword [ebp - 0x208]
call fcn.00402ad0
sub esp, 0x10
mov byte [ebp - 4], 8
lea eax, [ebp - 0x224]
lea ecx, [ebx + 0xb0]
push eax
call fcn.004e00a0
push eax
lea ecx, [ebx + 0x68]
call fcn.00411560
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xf
jbe 0x4e6585
mov edx, dword [ebp - 0x224]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e657b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e657b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005453ef
add esp, 8
push 0
push 0x5590e3
lea ecx, [ebx + 0x80]
call fcn.00403070
cmp dword [ebx + 0x64], 0xf
lea eax, [ebx + 0x50]
mov edx, dword [eax + 0x10]
jbe 0x4e65a5
mov eax, dword [eax]
push 5
push str.aws_2
mov ecx, eax
call fcn.00403b60
add esp, 8
test eax, eax
je 0x4e65da
lea ecx, [ebx + 0xa0]
push str.upload_twice
call fcn.00403750
mov ecx, eax
call fcn.004e6860
mov esi, str.fb_upload_2
test al, al
jne 0x4e65df
mov esi, 0x5590e3
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4e65e4
sub edx, ecx
lea ecx, [ebx + 0x50]
push edx
push esi
call fcn.00403070
cmp dword [ebx + 0x60], 0
jne 0x4e6604
mov dword [ebx + 0x4c], 1
mov byte [ebx + 0x98], 1
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x34]
push dword [ebp - 0x3c]
call fcn.00402ad0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00402ad0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x54]
call fcn.00402ad0
mov byte [ebp - 4], 2
cmp byte [ebx + 0x98], 0
jne 0x4e664c
mov dword [ebx + 0x4c], 1
call fcn.00401bd0
cmp dword [ebx + 0x30], 0xf
lea ecx, [ebx + 0x1c]
movzx edx, byte [ebx + 0x98]
jbe 0x4e6663
mov ecx, dword [ecx]
push edx
push ecx
push str.perform_req_id:__s_DONE__status:__d
push str.UploadAWSStage
push eax
call fcn.00412dc0
add esp, 0x14
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x573024]
cmp eax, dword [ecx + 4]
jle 0x4e66d8
push 0x573024
call fcn.00545105
add esp, 4
cmp dword [0x573024], 0xffffffff
jne 0x4e66d8
push 0x6c
push 0
push 0x573028
mov byte [ebp - 4], 0x16
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.0040f7e0
push 0x5493b0
call fcn.005453d5
push 0x573024
mov byte [ebp - 4], 2
call fcn.005450b4
add esp, 8
sub esp, 0x7c
lea eax, [ebx + 0x1c]
mov ecx, esp
push eax
call fcn.00412030
mov ecx, 0x573028
call fcn.0040ffd0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x4e6720
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6716
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e675b
push ecx
push edx
call fcn.005453ef
add esp, 8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0xf
jbe 0x4e676b
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6761
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e6761
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.005453ef
add esp, 8
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
call fcn.004e5ba0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret