Function at 0x50af10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x150
mov eax, dword [0x57906c]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
mov ebx, 0x1b
push 0xc
push str.Content_Type
push ebp
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0
mov eax, dword [eax + 0x64]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], eax
call fcn.004e2510
mov dword [esp + 0x58], eax
mov edx, 0x55faaf
mov eax, dword [ebp + 0x180]
mov ecx, edx
test eax, eax
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
cmovne ecx, eax
mov dword [esp + 0x3c], 0
mov eax, dword [ebp + 0xd24]
test eax, eax
mov dword [esp + 0x54], ecx
mov ecx, edx
cmovne ecx, eax
mov dword [esp + 0x40], 0
mov eax, dword [ebp + 0xd28]
test eax, eax
mov dword [esp + 0x68], ecx
mov ecx, edx
push 0xd
cmovne ecx, eax
mov dword [esp + 0x3c], 0
push str.Authorization
push ebp
mov dword [esp + 0x50], 0
mov dword [esp + 0x70], ecx
mov dword [esp + 0x54], 0
movups xmmword [esp + 0xc8], xmm0
movups xmmword [esp + 0xd8], xmm0
movups xmmword [esp + 0xe8], xmm0
movups xmmword [esp + 0xf8], xmm0
call fcn.004e2510
add esp, 0x18
test eax, eax
je 0x50b045
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.004c61ad
add esp, 0x150
ret
mov eax, dword [ebp + 0x674]
test eax, eax
push esi
push edi
mov edi, str.aws:amz
cmovne edi, eax
push 0x3a
push edi
call fcn.00515d30
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x50b070
mov esi, eax
sub esi, edi
jmp 0x50b07e
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50b075
sub esi, ecx
cmp esi, 1
jae 0x50b098
push str.first_provider_cant_be_empty
push ebp
call fcn.004db360
mov ebx, 0x2b
jmp 0x50b7c4
lea ebp, [esi + 1]
push ebp
call dword [0x5790a0]
push ebp
mov dword [esp + 0x24], eax
call dword [0x5790a0]
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x50b7c7
test eax, eax
je 0x50b7c7
push esi
push edi
push ecx
call fcn.004e0fb0
mov eax, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x3c]
push edi
mov byte [esi + eax], 0
call fcn.004e1000
mov eax, dword [esp + 0x60]
add esp, 0x18
mov byte [esi + edi], 0
test eax, eax
je 0x50b25f
lea ebp, [eax + 1]
push 0x3a
push ebp
call fcn.00515d30
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x50b113
mov edi, eax
sub edi, ebp
jmp 0x50b121
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x50b118
sub edi, ecx
cmp edi, 1
jae 0x50b13f
mov ebp, dword [esp + 0x18]
push str.second_provider_cant_be_empty
push ebp
call fcn.004db360
mov ebx, 0x2b
jmp 0x50b7c4
lea esi, [edi + 1]
push esi
call dword [0x5790a0]
push esi
mov dword [esp + 0x1c], eax
call dword [0x5790a0]
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x50b7c7
test eax, eax
je 0x50b7c7
push edi
push ebp
push ecx
call fcn.004e0fb0
mov eax, dword [esp + 0x20]
push edi
push ebp
mov ebp, dword [esp + 0x34]
push ebp
mov byte [edi + eax], 0
call fcn.004e0fb0
movzx eax, byte [ebp]
push eax
call fcn.004e0db0
mov byte [ebp], al
add esp, 0x1c
mov byte [edi + ebp], 0
mov edi, dword [esp + 0x48]
test edi, edi
je 0x50b2a1
inc edi
push 0x3a
push edi
call fcn.00515d30
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x50b1c3
mov esi, ebp
sub esi, edi
jmp 0x50b1d1
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x50b1c8
sub esi, ecx
cmp esi, 1
jae 0x50b1ef
mov ebp, dword [esp + 0x18]
push str.region_cant_be_empty
push ebp
call fcn.004db360
mov ebx, 0x2b
jmp 0x50b7c4
lea eax, [esi + 1]
push eax
push edi
call fcn.004cbc40
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
test edi, edi
je 0x50b7c7
mov byte [esi + edi], 0
test ebp, ebp
je 0x50b2a1
lea eax, [ebp + 1]
push eax
call dword [0x5790ac]
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50b7c7
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b234
sub ecx, edx
cmp ecx, 1
jae 0x50b32f
mov ebp, dword [esp + 0x18]
push str.service_cant_be_empty
push ebp
call fcn.004db360
mov ebx, 0x2b
jmp 0x50b7c4
mov esi, dword [esp + 0x1c]
push ebp
push esi
call fcn.004cbc40
push ebp
push esi
mov dword [esp + 0x24], eax
call fcn.004cbc40
add esp, 0x10
mov dword [esp + 0x20], eax
cmp dword [esp + 0x14], 0
je 0x50b7c7
test eax, eax
je 0x50b7c7
movzx eax, byte [eax]
push eax
call fcn.004e0db0
mov ecx, dword [esp + 0x24]
add esp, 4
mov byte [ecx], al
mov ebp, dword [esp + 0x4c]
push 0x2e
push ebp
call fcn.00515d30
mov edi, eax
add esp, 8
mov esi, edi
sub esi, ebp
test edi, edi
je 0x50b7b0
cmp esi, 1
jb 0x50b7b0
lea eax, [esi + 1]
push eax
push ebp
call fcn.004cbc40
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
je 0x50b7c7
cmp dword [esp + 0x24], 0
mov byte [esi + eax], 0
jne 0x50b333
inc edi
push 0x2e
push edi
call fcn.00515d30
mov esi, eax
add esp, 8
sub esi, edi
test eax, eax
je 0x50b325
cmp esi, 1
jb 0x50b325
lea eax, [esi + 1]
push eax
push edi
call fcn.004cbc40
mov edi, eax
add esp, 8
mov dword [esp + 0x24], edi
test edi, edi
je 0x50b7c7
mov byte [esi + edi], 0
jmp 0x50b333
push str.region_missing_in_parameters_or_hostname
jmp 0x50b7b5
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x68]
push eax
call fcn.00526cac
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.004ee130
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x50b7c7
lea eax, [esp + 0x74]
push eax
push str._Y_m_dT_H_M_SZ
lea eax, [esp + 0xac]
push 0x11
push eax
call fcn.00528aae
add esp, 0x10
test eax, eax
je 0x50b7c7
movq xmm0, qword [esp + 0xa4]
mov eax, dword [esp + 0x54]
movq qword [esp + 0x98], xmm0
mov byte [esp + 0xa0], bl
test eax, eax
je 0x50b3e8
push 0x3a
push eax
call fcn.00515d30
add esp, 8
test eax, eax
jne 0x50b3b8
lea ebx, [eax + 2]
jmp 0x50b7c7
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x50b3b8
cmp cl, 9
je 0x50b3b8
lea ecx, [esp + 0xa4]
push ecx
push dword [esp + 0x18]
push ebp
push eax
push str.content_type:_s_nhost:_s_nx__s_date:_s_n
call fcn.004df980
add esp, 0x14
mov ecx, str.content_type_host_x__s_date
jmp 0x50b407
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x18]
push ebp
push str.host:_s_nx__s_date:_s_n
call fcn.004df980
add esp, 0x10
mov ecx, str.host_x__s_date
push dword [esp + 0x14]
mov dword [esp + 0x34], eax
push ecx
call fcn.004df980
add esp, 8
mov esi, eax
cmp dword [esp + 0x30], 0
je 0x50b7aa
test esi, esi
je 0x50b7aa
mov ebp, dword [esp + 0x18]
cmp dword [ebp + 0x18c], 0
mov ecx, dword [ebp + 0x188]
jg 0x50b45b
jl 0x50b446
test ecx, ecx
jae 0x50b45b
mov edi, dword [esp + 0x50]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b450
sub ecx, edx
jmp 0x50b45f
mov edi, dword [esp + 0x50]
push ecx
lea eax, [esp + 0xfc]
mov dword [esp + 0x14], esi
push edi
push eax
call fcn.005136a0
add esp, 0xc
test eax, eax
jne 0x50b7c7
push 0x41
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0050b870
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x6c]
push ebp
call fcn.004e9760
mov eax, dword [ebp + 0xca4]
mov ecx, 0x55faaf
test eax, eax
cmovne ecx, eax
lea eax, [esp + 0x134]
push eax
push esi
push dword [esp + 0x54]
push ecx
push dword [ebp + 0xca0]
push dword [esp + 0x8c]
push str._s_n_s_n_s_n_s_n_s_n_s
call fcn.004df980
add esp, 0x38
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x50b7c7
push dword [esp + 0x1c]
push str._s4_request
call fcn.004df980
add esp, 8
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x50b7c7
push eax
push dword [esp + 0x30]
lea eax, [esp + 0xa0]
push dword [esp + 0x2c]
push eax
push str._s__s__s__s
call fcn.004df980
add esp, 0x14
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x50b7c7
mov edi, dword [esp + 0x38]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b548
sub ecx, edx
mov dword [esp + 0x10], esi
push ecx
lea eax, [esp + 0xfc]
push edi
push eax
call fcn.005136a0
add esp, 0xc
test eax, eax
jne 0x50b7c7
push 0x41
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0050b870
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x124]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0xb8]
push eax
push edi
push str._s4_HMAC_SHA256_n_s_n_s_n_s
call fcn.004df980
add esp, 0x20
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x50b7c7
push dword [esp + 0x60]
push edi
push str._s4_s
call fcn.004df980
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x50b7c7
lea ecx, [esp + 0x98]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b5e8
mov ebx, dword [esp + 0x44]
sub ecx, edx
mov edx, ebx
lea edi, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x50b600
lea eax, [esp + 0xb8]
sub edx, edi
push eax
push ecx
lea eax, [esp + 0xa0]
push eax
push edx
push ebx
push 0x555abc
call fcn.00513480
mov ebx, eax
mov dword [esp + 0x28], esi
add esp, 0x18
test ebx, ebx
jne 0x50b7c7
mov ebx, dword [esp + 0x24]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b640
lea eax, [esp + 0xd8]
sub ecx, edx
push eax
push ecx
push ebx
push 0x20
lea eax, [esp + 0xc8]
push eax
push 0x555abc
call fcn.00513480
mov ebx, eax
mov dword [esp + 0x28], esi
add esp, 0x18
test ebx, ebx
jne 0x50b7c7
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b681
lea eax, [esp + 0xb8]
sub ecx, edx
push eax
push ecx
push ebx
push 0x20
lea eax, [esp + 0xe8]
push eax
push 0x555abc
call fcn.00513480
mov ebx, eax
mov dword [esp + 0x28], esi
add esp, 0x18
test ebx, ebx
jne 0x50b7c7
mov ebx, dword [esp + 0x3c]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b6c2
lea eax, [esp + 0xd8]
sub ecx, edx
push eax
push ecx
push ebx
push 0x20
lea eax, [esp + 0xc8]
push eax
push 0x555abc
call fcn.00513480
mov ebx, eax
mov dword [esp + 0x28], esi
add esp, 0x18
test ebx, ebx
jne 0x50b7c7
mov ebx, dword [esp + 0x40]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b703
lea eax, [esp + 0xb8]
sub ecx, edx
push eax
push ecx
push ebx
push 0x20
lea eax, [esp + 0xe8]
push eax
push 0x555abc
call fcn.00513480
mov ebx, eax
mov dword [esp + 0x28], esi
add esp, 0x18
test ebx, ebx
jne 0x50b7c7
push 0x41
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.0050b870
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xb0]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x12c]
push eax
push esi
push dword [esp + 0x50]
push dword [esp + 0x84]
push edi
push str.Authorization:__s4_HMAC_SHA256_Credential_s__s__SignedHeaders_s__Signature_s_r_nX__s_Date:__s_r_n
call fcn.004df980
mov edi, eax
mov dword [esp + 0x3c], esi
add esp, 0x2c
test edi, edi
je 0x50b7c7
push dword [ebp + 0xd08]
call dword [0x5790a4]
add esp, 4
mov dword [ebp + 0xd08], edi
mov byte [ebp + 0x9bc], 1
mov dword [esp + 0x10], esi
jmp 0x50b7c7
push str.service_missing_in_parameters_or_hostname
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004db360
mov ebx, 3
add esp, 8
push dword [esp + 0x1c]
call dword [0x5790a4]
push dword [esp + 0x2c]
call dword [0x5790a4]
push dword [esp + 0x1c]
call dword [0x5790a4]
push dword [esp + 0x2c]
call dword [0x5790a4]
push dword [esp + 0x34]
call dword [0x5790a4]
push dword [esp + 0x40]
call dword [0x5790a4]
push dword [esp + 0x48]
call dword [0x5790a4]
push dword [esp + 0x2c]
call dword [0x5790a4]
push dword [esp + 0x58]
call dword [0x5790a4]
push dword [esp + 0x60]
call dword [0x5790a4]
push dword [esp + 0x5c]
call dword [0x5790a4]
push dword [esp + 0x6c]
call dword [0x5790a4]
push dword [esp + 0x74]
call dword [0x5790a4]
mov ecx, dword [esp + 0x190]
add esp, 0x34
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c61ad
add esp, 0x150
ret