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

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x5503c8]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0x1e8]
push ebx
mov ebx, dword [esp + 0x1e4]
push ebp
push esi
mov esi, dword [esp + 0x1f0]
mov ebp, 0x1b0
push edi
mov edi, eax
mov dword [esp + 0x18], eax
shl edi, 4
add edi, esi
mov dword [esp + 0x20], 0xffffffff
cmp dword [esi + 0xb8], 2
lea ecx, [ebp + 0x10]
mov dword [esp + 0x1c], 0
jne 0x4a7273
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x4a7273
mov eax, dword [esi + 0xac]
jmp 0x4a7276
mov eax, dword [esi + 0x64]
push 1
push 2
push 1
push 5
mov dword [esp + 0x20], eax
call fcn.004bdb20
add esp, 0x10
test al, al
je 0x4a729c
push str.schannel:_Windows_version_is_old_and_may_not_be_able_to_connect_to_some_servers_due_to_lack_of_SNI__algorithms__etc.
push ebx
call fcn.004901f0
add esp, 8
cmp byte [esi + 0x274], 0
je 0x4a72d8
push str.wine_get_version
push 0x518d4c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4a72d8
push 3
push 2
push 3
push 6
call fcn.004bdb20
add esp, 0x10
test al, al
je 0x4a72d8
mov cl, 1
jmp 0x4a72da
xor cl, cl
mov eax, dword [edi + 0x198]
mov edx, 0x1c0
mov byte [eax + 0x46], cl
mov ecx, dword [esi + 0xb8]
cmp ecx, 2
jne 0x4a730c
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + esi], ecx
je 0x4a730c
mov eax, dword [esi + 0x220]
jmp 0x4a7312
mov eax, dword [esi + 0x1e0]
test eax, eax
jne 0x4a734a
cmp ecx, 2
jne 0x4a7334
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
cmovne eax, edx
cmp dword [eax + esi], ecx
je 0x4a7334
mov eax, dword [esi + 0x244]
jmp 0x4a733a
mov eax, dword [esi + 0x204]
test eax, eax
jne 0x4a734a
mov eax, dword [edi + 0x198]
mov byte [eax + 0x47], 0
jmp 0x4a736c
push 3
push 2
push 1
push 6
call fcn.004bdb20
add esp, 0x10
test al, al
je 0x4a7754
mov eax, dword [edi + 0x198]
mov byte [eax + 0x47], 1
mov eax, dword [edi + 0x198]
mov dword [eax], 0
cmp dword [esi + 0xb8], 2
jne 0x4a73a0
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
mov ecx, 0x1c0
cmovne eax, ecx
cmp dword [eax + esi], 2
je 0x4a73a0
mov al, byte [ebx + 0x4b3]
jmp 0x4a73a6
mov al, byte [ebx + 0x447]
test al, al
je 0x4a741a
push ebx
call fcn.0048b210
add esp, 4
cmp dword [esi + 0xb8], 2
jne 0x4a73d8
cmp dword [esi + 0x14c], 0xffffffff
mov eax, ebp
mov ecx, 0x1c0
mov byte [esp + 0x14], 1
cmovne eax, ecx
cmp dword [eax + esi], 2
jne 0x4a73dd
mov byte [esp + 0x14], 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 0
push eax
push dword [esp + 0x20]
push esi
push ebx
call fcn.0048adb0
add esp, 0x18
test al, al
jne 0x4a7411
mov ecx, dword [edi + 0x198]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [edi + 0x198]
mov eax, dword [eax]
inc dword [eax + 0x10]
push ebx
call fcn.0048b230
add esp, 4
mov eax, dword [edi + 0x198]
cmp dword [eax], 0
jne 0x4a743b
push dword [esp + 0x18]
push esi
push ebx
call fcn.004a6580
add esp, 0xc
test eax, eax
jne 0x4a7767
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x14]
push 2
call fcn.004bd830
add esp, 0xc
test eax, eax
jne 0x4a7469
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x14]
push 0x17
call fcn.004bd830
add esp, 0xc
test eax, eax
je 0x4a7477
push str.schannel:_using_IP_address__SNI_is_not_supported_by_OS.
push ebx
call fcn.004901f0
add esp, 8
mov eax, dword [edi + 0x198]
cmp byte [eax + 0x46], 0
je 0x4a74e9
push str.http_1.1
push str.schannel:_ALPN__offering__s
push ebx
mov dword [esp + 0x78], 2
mov byte [esp + 0x7e], 8
mov dword [esp + 0x7f], 0x70747468
mov dword [esp + 0x83], 0x312e312f
call fcn.004901f0
push 9
call fcn.00492970
mov word [esp + 0x80], ax
add esp, 0x10
movzx eax, ax
add eax, 6
mov dword [esp + 0x24], 0x13
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x2c], eax
jmp 0x4a7501
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x198]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 1
mov dword [eax + 0x38], 0x811c
cmp dword [esi + 0xb8], 2
jne 0x4a757c
cmp dword [esi + 0x14c], 0xffffffff
mov eax, 0x1c0
cmovne ebp, eax
cmp dword [esi + ebp], 2
je 0x4a757c
mov al, byte [ebx + 0x4df]
jmp 0x4a7582
mov al, byte [ebx + 0x473]
test al, al
jne 0x4a7593
mov eax, dword [edi + 0x198]
or dword [eax + 0x38], 0x80
push 0x10
push 1
call dword [0x550378]
mov ecx, dword [edi + 0x198]
add esp, 8
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x198]
cmp dword [eax + 4], 0
jne 0x4a75ca
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.00490120
mov eax, 0x1b
jmp 0x4a7764
push dword [esp + 0x10]
call fcn.004ec908
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a76b8
mov edx, dword [edi + 0x198]
mov ecx, dword [edx + 4]
lea eax, [ecx + 8]
push eax
lea eax, [edx + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
push ecx
xor ecx, ecx
lea eax, [esp + 0x4c]
cmp byte [edx + 0x46], cl
push 0
cmove eax, ecx
push eax
mov eax, dword [0x552d90]
push ecx
push ecx
push dword [edx + 0x38]
mov eax, dword [eax + 0x18]
push ebp
push ecx
push dword [edx]
call eax
push dword [esp + 0x14]
mov ebp, eax
call fcn.004d9a24
add esp, 4
cmp ebp, 0x90312
je 0x4a76c2
mov ecx, dword [edi + 0x198]
push dword [ecx + 4]
call dword [0x55036c]
mov eax, dword [edi + 0x198]
add esp, 4
mov dword [eax + 4], 0
lea eax, [esp + 0xe8]
push 0x100
push eax
push ebp
call fcn.004a3030
push eax
cmp ebp, 0x80090300
je 0x4a76aa
cmp ebp, 0x80090322
je 0x4a7692
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ebx
call fcn.00490120
add esp, 0x18
mov eax, 0x23
jmp 0x4a7767
push str.schannel:_SNI_or_certificate_check_failed:__s
push ebx
call fcn.00490120
add esp, 0x18
mov eax, 0x3c
jmp 0x4a7767
push str.schannel:_initial_InitializeSecurityContext_failed:__s
push ebx
call fcn.00490120
add esp, 0x18
mov eax, 0x1b
jmp 0x4a7767
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
push dword [esp + 0x40]
push dword [esi + eax*4 + 0x148]
push ebx
call fcn.004906a0
mov ecx, dword [0x552d90]
add esp, 0x14
mov esi, eax
push dword [esp + 0x38]
mov ecx, dword [ecx + 0x40]
call ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
test esi, esi
jne 0x4a773d
cmp ecx, eax
jne 0x4a773d
mov eax, dword [edi + 0x198]
mov dword [eax + 0x40], 0
mov eax, dword [edi + 0x198]
mov byte [eax + 0x44], 0
mov eax, dword [edi + 0x198]
mov byte [eax + 0x45], 0
mov eax, dword [edi + 0x198]
mov byte [eax + 0x34], 0
xor eax, eax
mov dword [edi + 0x194], 1
jmp 0x4a7767
push ecx
push eax
push str.schannel:_failed_to_send_initial_handshake_data:_sent__zd_of__lu_bytes
push ebx
call fcn.00490120
add esp, 0x10
mov eax, 0x23
jmp 0x4a7767
push str.schannel:_this_version_of_Windows_is_too_old_to_support_certificate_verification_via_CA_bundle_file.
push ebx
call fcn.00490120
mov eax, 0x4d
add esp, 8
mov ecx, dword [esp + 0x1e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004cf8bc
add esp, 0x1dc
ret