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

Disassembly:
mov eax, 0x30cc
call fcn.10090e60
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x30c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x30ec]
mov ecx, dword [esp + 0x30f0]
mov edx, dword [esp + 0x30f4]
mov ebx, dword [esp + 0x30e8]
mov ebp, dword [esp + 0x30e4]
mov dword [esp + 0x54], eax
xor eax, eax
mov esi, dword [esp + 0x30f8]
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esi]
cmp eax, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], esi
jne 0x10085b76
mov eax, dword [esi + 8]
push 0x8000
push eax
call sub.XecureAcIO.dll_XFA_File_Open
mov ecx, dword [esi + 8]
mov ebx, eax
push ebx
push ecx
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.1008a2e0
add esp, 0x18
test ebx, ebx
mov edi, eax
jle 0x10085b68
push ebx
call sub.XecureAcIO.dll_XFA_File_Close
add esp, 4
test edi, edi
jl 0x10085f19
mov ebx, dword [esp + 0x10]
jmp 0x10085bb9
cmp eax, 2
je 0x10085bab
cmp eax, 0x40
je 0x10085bab
cmp eax, 0x100
je 0x10085bab
cmp eax, 0x20
je 0x10085b9b
cmp eax, 0x80
je 0x10085b9b
or edi, 0xffffffff
jmp 0x10085f19
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x10085bb9
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.10084b10
mov edi, eax
add esp, 8
test edi, edi
jne 0x10085f19
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x18]
mov dword [ebp + 8], ecx
cmp dword [edx + 4], edi
jne 0x10085d5d
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x10085d5d
push eax
lea ecx, [esp + 0x60]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Attributes_Decode
mov edi, eax
add esp, 8
test edi, edi
jne 0x10085f19
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], eax
jmp 0x10085c1b
mov eax, dword [esp + 0x1c]
cmp dword [eax], 2
je 0x10085c30
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x10085c17
jmp 0x10085d5d
cmp dword [esp + 0x30fc], 0
je 0x10085d4c
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x10085c56
push esi
lea edx, [esp + 0x4c]
push ebp
push edx
call eax
add esp, 0xc
jmp 0x10085d1f
mov eax, dword [esi]
cmp eax, 2
jne 0x10085cbb
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x30], 2
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Data_Decode
lea ecx, [esp + 0x30]
push 0
push ecx
xor edx, edx
mov ebx, ebp
lea ecx, [esp + 0x58]
call fcn.10083dd0
lea edx, [esp + 0x40]
push edx
mov edi, eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov ebx, dword [esp + 0x24]
add esp, 0x14
jmp 0x10085d21
cmp eax, 0x40
je 0x10085ccc
cmp eax, 0x100
je 0x10085ccc
push 0
push esi
jmp 0x10085d0b
mov ecx, dword [esi + 0x10]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
push 0
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 2
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
push edx
xor edx, edx
mov ebx, ebp
lea ecx, [esp + 0x50]
call fcn.10083dd0
mov ebx, dword [esp + 0x18]
add esp, 8
mov edi, eax
test edi, edi
jne 0x10085f19
mov eax, dword [esp + 0x1c]
add eax, 8
push eax
lea ecx, [esp + 0x4c]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Cmp
mov edi, eax
add esp, 8
test edi, edi
jne 0x10085f19
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add eax, 8
push eax
push edx
call sub.XecureAcIO.dll_XFA_BIN_Copy
add esp, 8
cmp dword [esp + 0x30fc], 0
je 0x10085d96
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
je 0x10085d75
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push eax
push ecx
push ebx
push esi
push ebp
call fcn.100857a0
mov edx, dword [esp + 0x2c]
push edx
mov edi, eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0x18
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x10085f19
test edi, edi
jne 0x10085f19
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x10]
test ebp, ebp
mov esi, ecx
je 0x10085f15
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10085e1d
push eax
lea ecx, [esp + 0x2c]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Attributes_Decode
mov edi, eax
add esp, 8
lea eax, [esp + 0x28]
cmp dword [eax], 3
je 0x10085dfe
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x10085df0
jmp 0x10085e10
mov edx, dword [eax + 8]
mov dword [esi + 0x408], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x40c], eax
lea ecx, [esp + 0x28]
push ecx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Attributes_Reset
add esp, 4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10085e62
push 0x15e
push eax
lea edx, [esp + 0x7c]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Attributes_GetEx
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10085e62
lea eax, [esi + 0x410]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea ecx, [esp + 0x78]
push ecx
push eax
call sub.XecureAcIO.dll_XFA_BIN_Copy
lea edx, [esp + 0x7c]
push edx
call sub.XecureAcIO.dll_XFA_BIN_LIST_Reset
add esp, 0xc
mov eax, dword [ebp]
test eax, eax
je 0x10085e7d
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
push ecx
push esi
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Certs_GetCert
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x10085f15
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x2a0]
push edx
push 1
push eax
push ecx
push edi
push edi
call sub.XecureAcPKC.dll_XFA_ExtractCertInfo
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10085f15
push 0x200
push eax
lea ebx, [esi + 0x208]
push ebx
call sub.MSVCR80.dll_memset
push 0x1ff
lea edx, [esp + 0x317]
push edx
push ebx
call dword [sym.imp.MSVCR80.dll_strncpy]
push 0x200
lea ebx, [esi + 8]
push edi
push ebx
call sub.MSVCR80.dll_memset
push 0x1ff
lea eax, [esp + 0x793]
push eax
push ebx
call dword [sym.imp.MSVCR80.dll_strncpy]
mov ebp, dword [ebp + 0x28]
add esp, 0x30
test ebp, ebp
je 0x10085f15
push 0x420
push 1
call sub.XecureAcIO.dll_XFA_calloc
mov dword [esi + 0x418], eax
add esp, 8
mov esi, eax
jmp 0x10085dd5
mov esi, dword [esp + 0x14]
cmp dword [esi], 0x10
jne 0x10085f2b
lea ecx, [esp + 0x20]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 4
lea edx, [esp + 0x5c]
push edx
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Attributes_Reset
lea eax, [esp + 0x4c]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov ecx, dword [esp + 0x30e0]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10090e24
add esp, 0x30cc
ret