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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esp], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x20]
xor ecx, ecx
push esi
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 0x24]
or esi, 0xffffffff
cmp ebx, ecx
push edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x84], 1
mov dword [esp + 0x78], ecx
je 0x10084543
cmp dword [ebx + 0x20], ecx
jne 0x1008454b
cmp eax, ecx
je 0x10084afc
cmp dword [ebp + 8], ecx
je 0x10084afc
mov edi, dword [ebp + 0x28]
cmp edi, ecx
je 0x10084afc
xor eax, eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
jmp 0x10084600
cmp dword [esp + 0xc], 0
jne 0x10084611
cmp dword [ebx + 0x10], 8
jne 0x1008492d
mov ecx, 8
cmp dword [ebx + 0x10], ecx
je 0x100846bb
cmp dword [edi + 4], 1
jne 0x1008462f
test byte [ebp + 0x30], 0x30
je 0x100846bb
test dword [ebp + 0x30], 0x100
je 0x1008464f
add edi, 0x18
lea eax, [esp + 0x94]
push edi
push eax
call sub.XecureAcIO.dll_XFA_BIN_Copy
mov edi, dword [ebp + 0x28]
add esp, 8
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x74]
push edx
mov eax, ebx
call fcn.10084130
mov esi, eax
lea eax, [esp + 0x9c]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0xc
test esi, esi
jne 0x10084a5f
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb0], 2
mov dword [esp + 0xbc], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ecx
jmp 0x100846c6
mov esi, edi
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x10], 8
jne 0x10084744
mov eax, dword [esp + 0x78]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x38]
push ecx
lea edx, [esp + 0x30]
push ebx
push edx
call eax
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x10084a5f
mov edx, dword [ebx + 0x30]
push 1
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
call edx
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10084a5f
lea eax, [esp + 0x10]
mov ecx, eax
push ecx
lea edx, [ebx + 0x14]
push edx
mov dword [esp + 0x14], eax
call sub.XecureAcPKC.dll_XFA_PKC_GetSignAlg
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 8]
push ecx
call sub.XecureAcPKC.dll_XFA_PKC_GetHashAlg
add esp, 0x10
mov edx, dword [esp + 0xc]
push 0x88
push edx
lea eax, [esp + 0x5c]
push eax
call sub.XecureAcASN.dll_XFA_ASN_DecodePDU
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10084a5f
lea ecx, [esp + 0x68]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x64]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0xa4]
push eax
call sub.XecureAcPKC.dll_XFA_PKC_GetPubKeyInfo
mov ecx, dword [esp + 0x6c]
push 0x88
push ecx
mov esi, eax
call sub.XecureAcASN.dll_XFA_ASN_FreePDU
add esp, 0x20
test esi, esi
jne 0x10084a5f
mov edx, dword [esp + 0x90]
mov eax, dword [ebx + 8]
push edx
push eax
call fcn.10081cb0
add esp, 8
cmp dword [ebx + 0x10], 8
mov dword [esp + 0x78], eax
je 0x1008482b
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x100847fb
push eax
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x68]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x74]
push edx
push eax
lea edx, [esp + 0x30]
push ebx
push edx
call ecx
add esp, 0x1c
jmp 0x10084821
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0x24]
push ecx
mov edi, eax
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x6c]
mov edx, ebx
call fcn.10084310
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x10084a5f
cmp dword [ebx + 0x18], 0
je 0x10084876
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x30]
push edx
mov edx, dword [esp + 0x40]
lea eax, [esp + 0xb4]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0xac]
push edx
push eax
push ebx
call fcn.1007f760
add esp, 0x30
jmp 0x100848b1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
mov edx, dword [ebx + 8]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xa0]
push ecx
push edx
lea eax, [esp + 0xbc]
push ebx
push eax
call fcn.10083a80
add esp, 0x28
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + 4]
mov esi, eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0xa0], edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x20]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x78]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x88]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x34]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x24]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x64]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x48]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x54]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x64]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov edi, dword [ebp + 0x28]
add esp, 0x28
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x10084a2e
cmp dword [ebx + 0x18], 0
jne 0x10084a2e
push 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
call eax
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x100849ec
mov eax, dword [esp + 0x28]
neg eax
sbb eax, eax
lea ecx, [esp + 0x24]
and eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
lea edx, [esp + 0x10]
and eax, edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
neg eax
sbb eax, eax
lea ecx, [esp + 0x4c]
and eax, ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
neg eax
mov edi, dword [ebp + 0x28]
sbb eax, eax
lea edx, [esp + 0x2c]
and eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x34]
and eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
neg eax
sbb eax, eax
lea edx, [esp + 0x40]
and eax, edx
add dword [esp + 0x84], 1
mov dword [esp + 0x3c], eax
je 0x10084a2e
jmp 0x10084600
lea eax, [esp + 0x24]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x14]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x54]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x38]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x44]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x54]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
mov edi, dword [ebp + 0x28]
add esp, 0x18
cmp dword [esp + 0xac], 0
je 0x10084a5f
cmp dword [ebx + 0x18], 0
jne 0x10084a5f
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 8]
push 0x110
push eax
push edi
lea ecx, [esp + 0xa8]
push ecx
push ebx
push edx
call fcn.10083be0
add esp, 0x18
mov esi, eax
lea eax, [esp + 0x9c]
push eax
call sub.XecureAcPKCS7.dll_XFA_PKCS7_Signed_Reset
lea ecx, [esp + 0x80]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x24]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x7c]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x8c]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x38]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x28]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x68]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x4c]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x58]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea ecx, [esp + 0x68]
push ecx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea edx, [esp + 0x94]
push edx
call sub.XecureAcIO.dll_XFA_BIN_Reset
lea eax, [esp + 0x90]
push eax
call sub.XecureAcIO.dll_XFA_BIN_Reset
add esp, 0x34
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x91b5
pop ebx
mov esp, ebp
pop ebp
ret