Function at 0x4e40c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x57d54c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [eax + eax*4]
shl ebx, 4
add ebx, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
cmp dword [edi + 0xe8], 2
mov esi, dword [edi]
jne 0x4e4118
cmp dword [edi + 0x194], 0xffffffff
mov eax, 0x278
mov ecx, 0x2c8
cmovne eax, ecx
cmp dword [eax + edi], 2
je 0x4e4118
mov eax, dword [edi + 0xdc]
jmp 0x4e411e
mov eax, dword [edi + 0x98]
push dword [edi + 0xf8]
push eax
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_3_3__n
push esi
call fcn.004d52f0
add esp, 0x10
cmp dword [ebx + 0x1e0], 0
je 0x4e41ca
mov eax, dword [ebx + 0x218]
cmp eax, dword [ebx + 0x214]
je 0x4e41e0
test al, 8
jne 0x4e416a
push str.schannel:_failed_to_setup_sequence_detection
push esi
call fcn.004d5240
mov eax, dword [ebx + 0x218]
add esp, 8
test al, 4
jne 0x4e4182
push str.schannel:_failed_to_setup_replay_detection
push esi
call fcn.004d5240
mov eax, dword [ebx + 0x218]
add esp, 8
test al, 0x10
jne 0x4e419a
push str.schannel:_failed_to_setup_confidentiality
push esi
call fcn.004d5240
mov eax, dword [ebx + 0x218]
add esp, 8
test eax, 0x100
jne 0x4e41b5
push str.schannel:_failed_to_setup_memory_allocation
push esi
call fcn.004d5240
mov eax, dword [ebx + 0x218]
add esp, 8
test eax, 0x8000
jne 0x4e41ca
push str.schannel:_failed_to_setup_stream_orientation
push esi
call fcn.004d5240
add esp, 8
pop edi
pop esi
mov eax, 0x23
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x2f0], 0
je 0x4e42a0
push edi
mov dword [ebp - 0x38], 0
call fcn.004cc850
push dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push 0
push eax
push edi
call fcn.004cc430
add esp, 0x14
test al, al
sete cl
test al, al
jne 0x4e4239
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebx + 0x1e0]
je 0x4e4239
push str.schannel:_old_credential_handle_is_stale__removing_n
push esi
call fcn.004d52f0
push dword [ebp - 0x38]
push edi
call fcn.004cc380
add esp, 0x10
jmp 0x4e423d
test cl, cl
jne 0x4e4297
push dword [ebp - 0x34]
push 0x18
push dword [ebx + 0x1e0]
push edi
call fcn.004cbf50
add esp, 0x10
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4e4280
push edi
call fcn.004cc880
push str.schannel:_failed_to_store_credential_handle
push esi
call fcn.004d5240
mov eax, dword [ebp - 0x34]
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x1e0]
push str.schannel:_stored_credential_handle_in_session_cache_n
push esi
inc dword [eax + 0x10]
call fcn.004d52f0
add esp, 8
push edi
call fcn.004cc880
add esp, 4
cmp byte [esi + 0x288], 0
je 0x4e437e
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x580624]
push 0x53
push dword [ebx + 0x1e4]
mov eax, dword [eax + 0x2c]
call eax
test eax, eax
jne 0x4e4374
cmp dword [ebp - 0x30], eax
je 0x4e4374
push 1
push esi
call fcn.004cc650
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e4307
mov ecx, dword [ebp - 0x30]
test byte [ecx], 1
je 0x4e4307
mov eax, dword [ecx + 8]
test eax, eax
je 0x4e4307
mov ecx, dword [ecx + 4]
add eax, ecx
push eax
push ecx
push esi
push edi
call fcn.004f9fa0
add esp, 0x10
mov esi, eax
movaps xmm0, xmmword [str.CertFreeCertificCryptAcquireContCryptReleaseCont]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x70797263
push eax
mov dword [ebp - 0xc], 0x2e323374
mov dword [ebp - 8], 0x6c6c64
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x43657461
mov dword [ebp - 0x18], 0x65746e6f
mov word [ebp - 0x14], 0x7478
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e435d
push dword [ebp - 0x30]
call eax
test esi, esi
je 0x4e437e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501e95
mov esp, ebp
pop ebp
ret
push str.schannel:_failed_to_retrieve_remote_cert_context
jmp 0x4e41c1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
mov dword [ebx + 0x1dc], 5
xor ecx, ebp
pop ebx
call fcn.00501e95
mov esp, ebp
pop ebp
ret