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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb0
lea eax, [edx + 0x24]
mov edi, edx
lea ebp, [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp], edx
mov dword [esp + 0xa0], eax
lea eax, [edx + 0x80]
mov dword [esp + 0x64], eax
lea eax, [edx + 0x2c]
mov dword [esp + 0xa8], eax
lea eax, [edx + 4]
mov dword [esp + 0x88], eax
lea eax, [edx + 0x70]
mov dword [esp + 0xa4], eax
movzx eax, byte [edi + 0x20]
test eax, eax
jne 0x5b0a24
mov cl, byte [edi + 0x23]
mov al, byte [edi + 0x22]
mov bh, byte [edi + 0x21]
mov bl, byte [edi + 0x24]
mov edx, edi
mov byte [esp + 7], cl
mov ecx, ebp
mov byte [esp + 0x18], al
call fcn.005b0b4f
cmp byte [esp + 0x2c], 4
jne 0x5b00a2
mov eax, dword [esp + 0x30]
jmp 0x5b00b3
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp cl, 4
jne 0x5b0a64
test eax, eax
je 0x5b00c3
cmp byte [edi + 0x20], 0
jne 0x5b00c7
mov byte [edi + 0x21], 1
jmp 0x5b00c7
test bh, bh
je 0x5b00ee
mov edx, dword [edi + 0x1c]
mov ecx, ebp
call fcn.005b0c10
cmp byte [esp + 0x2c], 4
je 0x5b00e4
mov eax, dword [esp + 0x2c]
cmp al, 4
jne 0x5b0a93
cmp byte [edi + 0x20], 0
jne 0x5b00ee
mov byte [edi + 0x21], 0
or bl, byte [esp + 7]
mov dword [esp + 0x10], esi
jne 0x5b058b
cmp byte [edi + 0xb6], 0
je 0x5b010c
xor ebx, ebx
jmp 0x5b0577
mov edx, dword [esp + 0x64]
mov ecx, ebp
call fcn.005d83c1
cmp byte [esp + 0x2c], 4
je 0x5b0135
cmp byte [esp + 0x18], 0
je 0x5b0135
mov ecx, ebp
call fcn.005b0f50
mov dl, 4
xor ebx, ebx
jmp 0x5b056e
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp dl, 4
jne 0x5b01d1
mov dword [esp + 8], ecx
mov ecx, dword [ecx + 0x10]
call fcn.005d7baf
mov dword [esp + 0x14], eax
test eax, eax
mov eax, dword [edi]
je 0x5b01e9
mov esi, edx
test eax, eax
je 0x5b0212
mov eax, dword [esp + 0x88]
and dword [esp + 0x2c], 0
mov dword [esp + 0x34], eax
mov ecx, ebp
call fcn.005d7c12
test eax, eax
je 0x5b01fa
mov ebp, edx
lea ecx, [esp + 0x50]
mov edx, esi
push ebp
call fcn.005d7bda
pop eax
cmp byte [esp + 0x50], 4
jne 0x5b01ac
mov ebx, dword [esp + 0x54]
mov ecx, edi
and ecx, 0xffffff00
or ecx, 4
jmp 0x5b01b4
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
cmp cl, 4
jne 0x5b0377
mov edi, ecx
push ebx
mov ebx, dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call ebx
push ebp
call ebx
lea ebp, [esp + 0x2c]
jmp 0x5b017a
mov eax, edx
mov bl, dh
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
jmp 0x5b056e
test eax, eax
je 0x5b01f6
mov eax, dword [esp + 0x88]
mov eax, dword [eax]
mov esi, eax
jmp 0x5b0219
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
call fcn.0057ee1b
cmp dword [esp + 0x14], 0
lea ebp, [esp + 0x2c]
je 0x5b0219
mov ecx, esi
call fcn.005d7bc8
mov edi, dword [esp]
mov ecx, dword [esp + 8]
and dword [esp + 0x78], 0
lea eax, [esp + 0x50]
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 3
mov dword [esp + 0x50], str.1.3.6.1.5.5.7.3.1
mov dword [esp + 0x54], str.1.3.6.1.4.1.311.10.3.3
mov dword [esp + 0x58], str.2.16.840.1.113730.4.1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x78]
push eax
push 0
push 0xc0000001
push ebp
push esi
push 0
push ecx
push 0
call dword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x5b035d
mov eax, dword [esp + 0x78]
cmp dword [edi], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x74], eax
je 0x5b0356
lea ecx, [esp + 0x50]
lea edx, [esp + 0x74]
call fcn.005d7ad5
cmp dword [esp + 0x50], 0
je 0x5b0356
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], ecx
and dword [esp + 0x7c], 0
lea ecx, [esp + 0x78]
call fcn.005d7b6c
mov esi, edx
cmp eax, 1
jne 0x5b03bd
mov eax, dword [esp + 0x88]
mov dword [esp + 0x34], eax
and dword [esp + 0x2c], 0
mov ecx, ebp
call fcn.005d7c12
mov edi, eax
mov ebp, edx
cmp eax, 1
jne 0x5b0322
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
push dword [esi + 8]
push dword [esi + 4]
call fcn.004bdd23
pop ecx
pop edx
mov ebx, eax
push ebp
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test bl, bl
lea ebp, [esp + 0x2c]
je 0x5b02ec
jmp 0x5b032f
mov ecx, edi
mov edx, ebp
call fcn.0057ee1b
lea ebp, [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
call fcn.0057ee1b
push esi
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
cmp edi, 1
mov edi, dword [esp]
jne 0x5b02c8
mov esi, 0xf10
jmp 0x5b03cb
mov esi, 0xf00
jmp 0x5b03d5
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
shl eax, 0x10
xor ebx, ebx
mov dword [esp + 0x14], 0
jmp 0x5b0529
mov eax, ecx
shrd eax, ebx, 0x10
shr ebx, 0x10
mov dword [esp + 0x28], eax
push ebp
mov edi, ecx
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
call fcn.0057ee1b
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.005ae023
mov eax, edi
mov dword [esp + 0x14], edi
mov edi, dword [esp]
mov dword [esp + 0x24], ebx
lea ebp, [esp + 0x2c]
mov bl, ah
jmp 0x5b0534
mov ecx, eax
mov edx, esi
call fcn.0057ee1b
mov esi, 0xf00
push dword [esp + 0x6c]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [edi + 0x94]
and dword [esp + 0x84], 0
and dword [esp + 0x80], 0
mov dword [esp + 0x78], 0x10
mov dword [esp + 0x7c], 2
test eax, eax
je 0x5b040f
cmp byte [edi + 0xb5], 0
jne 0x5b040f
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x68], 0xc
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], eax
lea eax, [esp + 0x38]
and dword [eax - 4], 0
and dword [eax - 8], 0
and dword [eax + 4], 0
and dword [eax], 0
mov dword [esp + 0x2c], 0x14
push ebp
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x68]
push 4
call dword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x5b0467
mov esi, dword [esp + 0x30]
test esi, esi
je 0x5b0485
and dword [esp + 0x1c], 0
mov dword [esp + 0x20], esi
jmp 0x5b048a
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, dword [esp + 0x10]
mov ecx, eax
shl eax, 0x10
xor ebx, ebx
mov dword [esp + 0x14], 0
jmp 0x5b054a
mov byte [esp + 0x1c], 4
mov ecx, dword [edi + 0x88]
test ecx, ecx
je 0x5b04ed
mov edx, dword [edi + 0x8c]
call fcn.005fc952
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x5c], edi
push ecx
push eax
lea eax, [esp + 0x94]
push eax
call dword [edx + 0x14]
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0058e9b1
mov edx, dword [esp + 0x8c]
cmp dl, 4
jne 0x5b0513
mov edi, dword [esp]
mov esi, dword [esp + 0x10]
jmp 0x5b0504
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
cmp dl, 4
jne 0x5b053a
push dword [esp + 0x60]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov bl, 1
jmp 0x5b0577
mov ecx, dword [esp + 0x90]
mov edi, dword [esp]
mov eax, edx
mov bl, dh
mov dword [esp + 0x14], edx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x10]
jmp 0x5b055f
mov ecx, dword [esp + 0x20]
mov eax, edx
mov bl, dh
mov dword [esp + 0x14], edx
shrd eax, ecx, 0x10
shr ecx, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
push dword [esp + 0x60]
call dword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov edx, dword [esp + 0x14]
cmp dl, 4
jne 0x5b0ab2
test bl, bl
je 0x5b058b
cmp byte [edi + 0x20], 0
jne 0x5b058b
mov eax, dword [esp + 0xa0]
mov byte [eax], 1
cmp byte [esp + 0x18], 0
je 0x5b09a4
cmp dword [edi + 0xa0], 0
je 0x5b05ce
mov ecx, ebp
mov edx, edi
call fcn.005b0c34
cmp byte [esp + 0x2c], 4
jne 0x5b05b5
mov eax, dword [esp + 0x30]
jmp 0x5b05c6
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp cl, 4
jne 0x5b0a64
test eax, eax
je 0x5b0a70
mov esi, dword [edi + 0x50]
push 0x18
pop ecx
push 4
pop edx
call fcn.004a3937
mov edx, dword [edi + 0x60]
mov ecx, dword [edi + 0x58]
mov ebp, eax
push 0xa03d58
push esi
call fcn.004bda36
pop ecx
pop ecx
test eax, eax
cmove edx, eax
mov dword [ebp], edx
push 2
pop esi
mov dword [ebp + 4], esi
mov dword [ebp + 8], eax
and dword [ebp + 0xc], 0
and dword [ebp + 0x10], 0
and dword [ebp + 0x14], 0
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov edx, dword [edi + 0xa8]
test edx, edx
je 0x5b0683
lea ecx, [esp + 0x68]
push dword [edi + 0xb0]
call fcn.005d804c
pop eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5b0692
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0x12
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x8c]
mov edx, ebx
call fcn.005547e0
mov ebp, dword [esp + 0x8c]
mov esi, dword [esp + 0x94]
jmp 0x5b06a1
and dword [esp + 0x68], 0
mov dword [esp + 0x18], 0
jmp 0x5b069d
mov dword [esp + 0x18], 0
push 2
pop esi
lea ebx, [esp + 0x2c]
lea eax, [esp + 0x38]
and dword [esp + 0x78], 0
and dword [esp + 0x2c], 0
mov dword [esp + 0x30], 2
and dword [esp + 0x34], 0
and dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x11
and dword [esp + 0x50], 0
and dword [esp + 0x74], 0
mov dword [esp + 0x7c], esi
mov dword [esp + 0x54], 3
mov dword [esp + 0x80], ebp
mov dword [esp + 0x58], ebx
and dword [eax + 0xc], 0
and dword [eax + 8], 0
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
cmp byte [edi + 0xb6], 0
je 0x5b0754
mov ecx, dword [edi + 0x90]
cmp byte [edi + 0xb7], 0
mov ebx, dword [esp + 0x64]
mov eax, 0
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmove eax, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x58]
push ecx
push ebx
push 0
push 0x1011c
lea ecx, [esp + 0x90]
push ecx
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.secur32.dll_AcceptSecurityContext]
jmp 0x5b07b8
mov ecx, dword [edi + 0x94]
cmp byte [edi + 0xb4], 0
mov edx, 0
mov eax, ecx
cmove eax, edx
test ecx, ecx
cmove eax, ecx
mov ecx, dword [edi + 0x90]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
push 0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0x9819c
push eax
push dword [esp + 0x8c]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.secur32.dll_InitializeSecurityContextW]
mov ebx, eax
push 0xffffffffffffffe8
pop edi
test edi, edi
je 0x5b07d5
mov eax, dword [esp + edi + 0x58]
test eax, eax
je 0x5b07d0
push eax
call dword [sym.imp.secur32.dll_FreeContextBuffer]
add edi, 0xc
jmp 0x5b07bd
cmp ebx, 0x80090318
je 0x5b087b
test ebx, ebx
je 0x5b08b8
cmp ebx, 0x90312
jne 0x5b0aa9
mov edi, dword [esp]
mov edx, esi
mov ecx, ebp
mov byte [edi + 0xb7], 0
push 0xa03d88
call fcn.005b0d5e
pop ecx
cmp dword [eax + 4], 5
mov edx, dword [edi + 0x50]
jne 0x5b082e
mov edi, edx
mov edx, esi
mov ecx, ebp
push 0xa03d98
call fcn.005b0d5e
mov edx, edi
add esp, 4
sub edx, dword [eax]
mov edi, dword [esp]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.005b0d83
mov eax, dword [edi + 0x50]
xor ecx, ecx
mov edx, ebx
or eax, dword [edi + 0x54]
mov eax, str.dest_is_out_of_bounds
sete cl
test esi, esi
mov dword [edi + 0xa0], ecx
mov ecx, dword [esp + 0xa4]
cmove edx, eax
push esi
call fcn.0043be28
pop eax
push ebx
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov esi, dword [esp + 0x10]
jmp 0x5b0980
mov ecx, ebp
mov edx, esi
push 0xa03d68
call fcn.005b0d5e
pop ecx
cmp dword [eax + 4], 4
mov eax, 1
jne 0x5b08a6
mov ecx, ebp
mov edx, esi
push 0xa03d78
call fcn.005b0d5e
pop ecx
mov eax, dword [eax]
mov edi, dword [esp]
mov esi, dword [esp + 0x10]
mov dword [edi + 0xa0], eax
jmp 0x5b0980
mov ecx, ebp
mov edx, esi
push 0xa03da8
call fcn.005b0d5e
pop ecx
mov edi, dword [esp]
cmp dword [eax + 4], 5
mov ebx, dword [edi + 0x50]
jne 0x5b08e4
mov ecx, ebp
mov edx, esi
push 0xa03db8
call fcn.005b0d5e
pop ecx
sub ebx, dword [eax]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x5b08f7
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xac], eax
mov ecx, edi
mov edx, ebx
call fcn.005b0d83
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov ebx, dword [esp + 0x10]
xor edx, edx
mov edi, eax
or edi, ecx
mov edi, dword [esp]
sete dl
test esi, esi
cmovne ebx, esi
mov esi, ebx
mov dword [edi + 0xa0], edx
je 0x5b0953
mov ebx, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
mov eax, str.dest_is_out_of_bounds
mov edx, esi
test ebx, ebx
cmove edx, eax
push ebx
call fcn.0043be28
pop eax
push esi
call dword [sym.imp.secur32.dll_FreeContextBuffer]
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
or eax, ecx
je 0x5b0976
lea ecx, [esp + 0x1c]
mov edx, edi
call fcn.005b0dce
cmp byte [esp + 0x1c], 4
je 0x5b0976
mov ebx, dword [esp + 0x1c]
cmp bl, 4
jne 0x5b0ade
cmp byte [edi + 0x20], 0
jne 0x5b0980
mov byte [edi + 0x22], 0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
call fcn.005b0d78
mov edx, dword [esp + 0x90]
mov ecx, ebp
call fcn.00629fde
lea ebp, [esp + 0x2c]
jmp 0x5b006c
cmp byte [esp + 7], 0
mov al, 2
jne 0x5b09f0
mov edx, dword [esp + 0x64]
mov ecx, ebp
call fcn.005d8370
cmp dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ecx
jne 0x5b0b2f
lea ecx, [esp + 0x38]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [esp + 0x58], eax
mov al, 1
movsd qword [esp + 0x50], xmm0
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov byte [edi + 0x20], al
movsd xmm0, qword [esp + 0x50]
mov dword [edi + 0x24], edx
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x58]
mov dword [ecx + 8], edx
movsd qword [ecx], xmm0
jmp 0x5b006c
cmp eax, 1
jne 0x5b0a58
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xc]
mov eax, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [ecx + 0x14], eax
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx], 1
jmp 0x5b0b24
mov eax, dword [esp + 0xc]
and dword [eax], 0
jmp 0x5b0b24
mov edx, dword [esp + 0xc]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
jmp 0x5b0aa1
mov esi, dword [esp + 0xc]
lea ecx, [esi + 4]
push 0x25
pop edx
push 0x1f
push str.unexpected_EOF_during_handshakeassertion_failed:_size___nread
call fcn.0056bdc9
pop eax
pop ecx
mov dword [esi], 2
jmp 0x5b0b24
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 2
jmp 0x5b0b24
mov esi, ebx
shl ebx, 0x18
xor edi, edi
jmp 0x5b0ae8
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
movzx eax, bl
mov esi, edx
shl eax, 8
shld edi, ecx, 0x10
shl ecx, 0x10
or eax, ecx
mov ecx, esi
mov esi, dword [esp + 0xc]
movzx ecx, cl
or ecx, eax
mov dword [esi + 8], edi
mov dword [esi + 4], ecx
jmp 0x5b0a88
mov esi, dword [esp + 0x20]
mov edi, ebx
shrd ebx, esi, 8
shr esi, 8
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
call fcn.005b0d78
mov edx, dword [esp + 0x90]
mov ecx, ebp
call fcn.00629fde
mov ecx, dword [esp + 0xc]
mov eax, edi
shld esi, ebx, 8
shl ebx, 8
movzx eax, al
or eax, ebx
mov dword [ecx + 8], esi
mov dword [ecx + 4], eax
mov dword [ecx], 2
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 2
jmp 0x5b0b24