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

Disassembly:
mov eax, 0x30cc
call fcn.10090560
mov eax, dword [0x100cc8ec]
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 0x10085236
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.100899a0
add esp, 0x18
test ebx, ebx
mov edi, eax
jle 0x10085228
push ebx
call sub.XecureAcIO.dll_XFA_File_Close
add esp, 4
test edi, edi
jl 0x100855d9
mov ebx, dword [esp + 0x10]
jmp 0x10085279
cmp eax, 2
je 0x1008526b
cmp eax, 0x40
je 0x1008526b
cmp eax, 0x100
je 0x1008526b
cmp eax, 0x20
je 0x1008525b
cmp eax, 0x80
je 0x1008525b
or edi, 0xffffffff
jmp 0x100855d9
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x10085279
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.100841d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x100855d9
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 0x1008541d
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x1008541d
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 0x100855d9
lea eax, [esp + 0x5c]
mov dword [esp + 0x1c], eax
jmp 0x100852db
mov eax, dword [esp + 0x1c]
cmp dword [eax], 2
je 0x100852f0
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x100852d7
jmp 0x1008541d
cmp dword [esp + 0x30fc], 0
je 0x1008540c
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x10085316
push esi
lea edx, [esp + 0x4c]
push ebp
push edx
call eax
add esp, 0xc
jmp 0x100853df
mov eax, dword [esi]
cmp eax, 2
jne 0x1008537b
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.10083490
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 0x100853e1
cmp eax, 0x40
je 0x1008538c
cmp eax, 0x100
je 0x1008538c
push 0
push esi
jmp 0x100853cb
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.10083490
mov ebx, dword [esp + 0x18]
add esp, 8
mov edi, eax
test edi, edi
jne 0x100855d9
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 0x100855d9
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 0x10085456
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
je 0x10085435
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.10084e60
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 0x100855d9
test edi, edi
jne 0x100855d9
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 0x100855d5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100854dd
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 0x100854be
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x100854b0
jmp 0x100854d0
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 0x10085522
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 0x10085522
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 0x1008553d
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 0x100855d5
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 0x100855d5
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 0x100855d5
push 0x420
push 1
call sub.XecureAcIO.dll_XFA_calloc
mov dword [esi + 0x418], eax
add esp, 8
mov esi, eax
jmp 0x10085495
mov esi, dword [esp + 0x14]
cmp dword [esi], 0x10
jne 0x100855eb
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.10090524
add esp, 0x30cc
ret