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

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push 0xfc
xor ebp, ebp
lea eax, [esp + 0x3c]
push ebp
push eax
mov ebx, edx
mov esi, ecx
call fcn.0049ee30
add esp, 0xc
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x46ea5b
push str.CardAcquireContext
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x46ea45
mov ecx, dword [esp + 0x148]
mov eax, dword [esp + 0x140]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x38]
push ebp
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x148]
push eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0x46e6b0
mov dword [esp + 0x54], 0x46e6bd
mov dword [esp + 0x58], 0x46e6cf
mov dword [esp + 0x5c], 0x46e6e3
mov dword [esp + 0x60], 0x46e6f6
mov dword [esp + 0x64], 0x46e709
mov dword [esp + 0x6c], 0x46e71c
mov dword [esp + 0x70], ebx
mov dword [esp + 0xec], ebp
mov dword [esp + 0x110], ebp
call edx
test eax, eax
jne 0x46ea3d
lea eax, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x40]
push eax
call dword [esp + 0xd4]
test eax, eax
jne 0x46e9f4
push dword [esp + 0x14]
push dword [esp + 0x20]
push dword [esp + 0x20]
push str.____Containers:__u____u___u_byte_s__free__n
call fcn.00409cda
mov esi, ebp
add esp, 0x10
cmp dword [esp + 0x1c], esi
jbe 0x46ea01
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push ebp
push esi
lea eax, [esp + 0x44]
push eax
call dword [esp + 0x94]
test eax, eax
jne 0x46e9d1
push esi
push str._t__2u_
call fcn.00409cda
pop ecx
pop ecx
cmp dword [esp + 0x28], ebp
je 0x46e99c
cmp dword [esp + 0x2c], ebp
je 0x46e99c
push str.Signature:
call fcn.00409cda
pop ecx
mov ecx, dword [esp + 0x2c]
call fcn.0046e7c7
push dword [esp + 0x2c]
call dword [esp + 0x54]
cmp dword [esp + 0x30], ebp
je 0x46e9c4
cmp dword [esp + 0x34], ebp
je 0x46e99c
push 0x4ec290
call fcn.00409cda
pop ecx
cmp dword [esp + 0x30], ebp
je 0x46e9c4
cmp dword [esp + 0x34], ebp
je 0x46e9c4
push str.Exchange:
call fcn.00409cda
pop ecx
mov ecx, dword [esp + 0x34]
call fcn.0046e7c7
push dword [esp + 0x34]
call dword [esp + 0x54]
push 0x4c75d0
call fcn.00409cda
pop ecx
jmp 0x46e9e7
cmp eax, 0x80100030
je 0x46e9e7
push eax
push esi
push str.ERROR_kuhl_m_crypto_l_mdr___CardGetContainerInfo__u_:_0x_08x_n
call fcn.00409cda
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x46e92d
jmp 0x46ea01
push eax
push str.ERROR_kuhl_m_crypto_l_mdr___CardQueryFreeSpace:_0x_08x_n
call fcn.00409cda
pop ecx
pop ecx
xor edx, edx
lea ecx, [esp + 0x38]
call fcn.0046e72f
mov edx, str.mscp
lea ecx, [esp + 0x38]
call fcn.0046e72f
mov edx, 0x4ec3a8
lea ecx, [esp + 0x38]
call fcn.0046e72f
lea eax, [esp + 0x38]
push eax
call dword [esp + 0x78]
test eax, eax
je 0x46ea52
push eax
push str.ERROR_kuhl_m_crypto_l_mdr___CardDeleteContext:_0x_08x_n
jmp 0x46ea4b
push eax
push str.ERROR_kuhl_m_crypto_l_mdr___CardAcquireContext:_0x_08x_n
jmp 0x46ea4b
push esi
push str.ERROR_kuhl_m_crypto_l_mdr___No_CardAcquireContext_export_in__s_n
call fcn.00409cda
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x46ea6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_crypto_l_mdr___LoadLibrary__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret