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

Disassembly:
mov eax, 0x50
call fcn.100781a0
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x18], 0
je 0x1005667c
mov eax, dword [eax]
test eax, eax
je 0x1005667c
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x10056695
call sym.LIBEAY32.dll_ASN1_STRING_new
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x10056691
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x24]
push esi
mov eax, dword [ebp]
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call sym.LIBEAY32.dll_ASN1_get_object
add esp, 0x14
test al, 0x80
je 0x100566d2
mov dword [esp + 0x18], 0x65
jmp 0x10056902
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x100566eb
mov dword [esp + 0x18], 0x95
jmp 0x10056902
test al, 0x20
je 0x100568b5
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x74]
xor ebp, ebp
mov dword [esp + 0x34], ecx
cmp esi, ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], eax
jne 0x10056723
xor eax, eax
jmp 0x10056726
lea eax, [ecx + esi]
cmp edi, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebp
jne 0x1005674b
mov dword [esp + 0x3c], 0x23
jmp 0x10056873
test dl, 1
je 0x10056776
sub eax, ecx
lea ecx, [esp + 0x34]
push eax
push ecx
call sym.LIBEAY32.dll_ASN1_check_infinite_end
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x1005681b
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
jmp 0x10056782
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x1005681b
mov edx, dword [esp + 0x48]
sub eax, ecx
push edx
mov edx, dword [esp + 0x48]
push edx
push eax
mov dword [esp + 0x60], ecx
lea eax, [esp + 0x40]
lea ecx, [esp + 0x78]
push eax
push ecx
call sym.LIBEAY32.dll_d2i_ASN1_bytes
add esp, 0x14
test eax, eax
je 0x10056861
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
mov eax, dword [edx]
add eax, ebp
push eax
push ecx
call sym.LIBEAY32.dll_BUF_MEM_grow
add esp, 8
test eax, eax
je 0x1005686b
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov eax, ecx
lea edi, [edx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
test dl, 1
jne 0x10056806
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
sub eax, ecx
add esi, eax
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x1c]
mov esi, dword [eax]
mov eax, dword [esp + 0x50]
add ebp, esi
jmp 0x1005674b
lea ecx, [esp + 0x34]
push ecx
call sym.LIBEAY32.dll_asn1_Finish
add esp, 4
test eax, eax
je 0x10056873
mov eax, dword [edi + 8]
mov dword [edi], ebp
test eax, eax
je 0x10056840
mov edx, eax
push edx
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10056858
push eax
call sym.LIBEAY32.dll_ASN1_STRING_free
add esp, 4
mov eax, dword [esp + 0x34]
jmp 0x10056990
mov dword [esp + 0x3c], 0xd
jmp 0x10056873
mov dword [esp + 0x3c], 7
mov ecx, dword [esp + 0x3c]
push 0x13e
push str..crypto_asn1_a_bytes.c
push ecx
push 0x67
push 0xd
call sym.LIBEAY32.dll_ERR_put_error
mov eax, dword [esp + 0x80]
add esp, 0x14
test eax, eax
je 0x100568a2
push eax
call sym.LIBEAY32.dll_ASN1_STRING_free
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10056902
push eax
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
jmp 0x10056902
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1005696e
cmp dword [edi], ecx
jl 0x100568cc
mov ebp, dword [edi + 8]
test ebp, ebp
jne 0x10056944
mov eax, dword [edi + 8]
test eax, eax
je 0x100568e0
push eax
call sym.LIBEAY32.dll_CRYPTO_free
mov ecx, dword [esp + 0x14]
add esp, 4
push 0xde
inc ecx
push str..crypto_asn1_a_bytes.c
push ecx
call sym.LIBEAY32.dll_CRYPTO_malloc
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x10056940
mov dword [esp + 0x18], 0x21
test edi, edi
je 0x1005691b
mov eax, dword [esp + 0x64]
test eax, eax
je 0x10056912
cmp dword [eax], edi
je 0x1005691b
push edi
call sym.LIBEAY32.dll_ASN1_STRING_free
add esp, 4
mov edx, dword [esp + 0x18]
push 0xfc
push str..crypto_asn1_a_bytes.c
push edx
push 0x7e
push 0xd
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov byte [ecx + ebp], 0
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], ecx
jmp 0x10056984
mov eax, dword [edi + 8]
xor ebp, ebp
test eax, eax
je 0x10056984
push eax
call sym.LIBEAY32.dll_CRYPTO_free
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [edi], ecx
mov dword [edi + 8], ebp
mov dword [edi + 4], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x1005699a
mov dword [ecx], edi
mov edx, dword [esp + 0x68]
mov dword [edx], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret