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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x748
mov esi, dword [ebp + 8]
mov ebx, edx
mov edx, dword [ebp + 0xc]
lea edi, [esp + 0x80]
mov dword [esp + 4], ecx
mov ecx, edi
push dword [ebp + 0x10]
call fcn.004ed99e
pop eax
cmp dword [edi], 2
jne 0x51b2b6
mov eax, dword [esp + 0x84]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004b0f89
mov dword [esp], 0
push 3
pop esi
jmp 0x51b33b
lea edi, [esp + 0x270]
mov ecx, edi
call fcn.0043ae72
mov eax, dword [esi + 0x10]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
mov dword [edi + 0xbc], eax
movsd qword [edi + 0xb4], xmm1
movsd qword [edi + 0xac], xmm0
lea eax, [esp + 0x2b0]
push 0x12
pop ecx
lea esi, [esp + 0x80]
mov edi, eax
lea edx, [esp + 0x688]
rep movsd dword es:[edi], dword [esi]
and dword [eax + 0x58], 0
mov dword [eax + 0x50], 0x3b9aca00
mov byte [eax + 0x80], 2
mov ecx, dword [eax - 0x3c]
mov esi, dword [eax - 0x40]
mov eax, dword [eax - 0x38]
mov dword [esp], ecx
mov ecx, 0xbc
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x27c]
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lock inc dword [edx]
jle 0x51b7f9
lea ebx, [esp + 0x184]
mov dword [ebx + 0xd8], edi
mov dword [ebx + 0xd4], eax
mov edi, dword [esp]
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xdc], ecx
mov dword [ebx + 0xe4], edx
mov dword [ebx - 0xc], esi
mov dword [ebx - 8], edi
mov dword [ebx - 4], eax
lea eax, [esp + 0x688]
push 0xbc
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
and dword [ebx + 0xc0], 0
xor esi, 3
mov dword [ebx + 0xbc], 3
or esi, edi
je 0x51b534
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1d0]
push dword [esp + 0x1d8]
call fcn.004b21dd
pop ecx
mov ecx, eax
push 3
push 0x650199
call fcn.004f775d
pop ecx
pop edx
test al, al
je 0x51b534
lea esi, [esp + 0x1b8]
mov ecx, esi
call fcn.005191c1
mov ebx, edx
lea edi, [esp + 0x270]
mov edx, eax
add ebx, eax
mov ecx, edi
push ebx
call fcn.0045005a
pop eax
mov eax, dword [edi]
cmp eax, 0x80000001
je 0x51b534
mov ecx, dword [esp + 0x274]
mov edi, dword [esp + 0x278]
lea edx, [esp + 0x30]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea ecx, [esp + 8]
mov dword [edx + 8], edi
call fcn.004168f0
mov ecx, esi
call fcn.005191f8
mov ebx, edx
mov dl, 1
mov ecx, 0x80000000
test eax, eax
je 0x51b49f
add ebx, eax
lea edi, [esp + 0x270]
mov edx, eax
mov ecx, edi
push ebx
call fcn.0045005a
pop eax
mov eax, dword [edi]
cmp eax, 0x80000001
jne 0x51b471
mov ecx, 0x80000000
mov dl, 1
jmp 0x51b49f
lea edx, [esp + 0x270]
mov edi, dword [edx + 8]
mov ecx, dword [edx + 4]
mov dword [edx], eax
mov dword [edx + 8], edi
lea edi, [esp + 0x80]
mov dword [edx + 4], ecx
mov ecx, edi
call fcn.004168f0
mov ecx, dword [edi]
cmp ecx, 0x80000000
sete dl
cmp dword [esp + 0x10], 0
jne 0x51b4c5
test dl, dl
je 0x51b4c5
mov edx, dword [esp + 0x84]
call fcn.0040272a
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00422701
jmp 0x51b534
mov dword [esp], ecx
mov ecx, esi
call fcn.00518f4f
push 0x2f
pop edi
movzx ecx, al
mov edx, str.has_authority_means_set_username_shouldnt_failC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_reqwest_0.11.26_src_async_impl_request.rs
push 0x622940
push edi
call fcn.004d816c
pop eax
pop ecx
mov ecx, esi
call fcn.005190f7
movzx ecx, al
mov edx, str.has_authority_means_set_password_shouldnt_fail
push 0x622980
push edi
call fcn.004d816c
pop eax
pop ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x84]
cmp eax, 0x80000000
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ecx
jne 0x51b555
lea eax, [esp + 0x178]
push pe_nt_image_headers32
push eax
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [esp + 0x6c]
mov ecx, dword [esp + 0x54]
mov dword [esi], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
lea eax, [esp + 0x178]
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x88]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 6
pop ecx
call fcn.004f8aa4
mov dword [edx], 0x69736142
mov word [edx + 4], 0x2063
and word [esp + 0x680], 0
lea edi, [esp + 0x58]
xor ebx, ebx
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 8], 6
mov byte [esp + 0x682], bl
push 0x400
push 0
lea eax, [esp + 0x278]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x67c], 0x6232c1
mov dword [esp + 0x670], edi
and dword [esp + 0x674], 0
and dword [esp + 0x678], 0
mov dword [esp + 0x30], 0x620924
mov dword [esp + 0x34], 2
and dword [esp + 0x40], 0
lea edi, [esp + 0x20]
mov byte [esp + 0x683], bl
lea ebx, [esp + 0x30]
lea edx, [esp + 0x270]
mov dword [edi], esi
lea esi, [esp + 0x64]
mov dword [esp + 0x38], edi
mov dword [edi + 4], fcn.00402e2c
mov dword [esp + 0x3c], 1
mov ecx, esi
push ebx
call fcn.004edc38
pop eax
mov ecx, esi
call fcn.004b37d5
mov eax, dword [esp]
cmp eax, 0x80000000
je 0x51b6b7
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], 0x6500dc
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], fcn.00402e2c
mov dword [esp + 0x24], edx
xor edx, edx
mov dword [esp + 0x28], ecx
inc edx
mov dword [esp + 0x34], edx
and dword [esp + 0x40], 0
mov dword [esp + 0x38], esi
lea esi, [esp + 0x78]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x270]
mov ecx, esi
push ebx
call fcn.004edc38
pop eax
mov ecx, esi
call fcn.004b37d5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
call fcn.00422701
lea ecx, [esp + 0x270]
call fcn.004edc86
mov edx, dword [esp + 0x5c]
lea esi, [esp + 0x270]
mov ecx, esi
push dword [esp + 0x60]
call fcn.004e69d0
pop eax
lea edi, [esp + 0x30]
mov edx, esi
mov ecx, edi
push 0x62348c
push 0x22
push str.base64_is_always_valid_HeaderValueC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_reqwest_0.11.26_srcutil.rs
call fcn.004eb001
add esp, 0xc
mov byte [edi + 0x10], 1
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
mov eax, dword [edi + 0x10]
movsd qword [esp + 8], xmm0
movsd qword [esp + 0x10], xmm1
mov dword [esp + 0x18], eax
call fcn.00422701
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
call fcn.00422701
mov eax, dword [esp + 0x80]
and dword [esp + 0x2c], 0
and dword [esp + 0x28], 0
and dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x10
xor eax, 3
or eax, dword [esp + 0x84]
jne 0x51b78a
push pe_nt_image_headers32
lea eax, [esp + 0x84]
push eax
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 8]
call fcn.0051b7fb
lea ecx, [esp + 0x20]
call fcn.004b2b72
jmp 0x51b54d
lea edx, [esp + 0x30]
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x10]
movzx eax, word [esp + 0x19]
mov cl, byte [esp + 0x1b]
lea edi, [esp + 0x80]
and dword [edx + 0xc], 0
and dword [edx + 8], 0
and dword [edx], 0
mov dword [edx + 4], 0x10
movsd qword [esp + 0x278], xmm1
movsd qword [esp + 0x270], xmm0
mov byte [esp + 0x283], cl
mov word [esp + 0x281], ax
mov byte [esp + 0x280], 1
mov ecx, edi
push esi
call fcn.004301ae
pop eax
push pe_nt_image_headers32
push edi
jmp 0x51b541
ud2