Function at 0x405ac0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20c
push esi
push edi
mov edi, 0x41563c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 8], 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41563c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0x4145a0
call fcn.00407950
push 0x4145a0
push str.CSP_NAME:_s
call fcn.00407dc0
lea edx, [esp + 0x1c]
push edx
call fcn.00407a60
add esp, 0x14
cmp eax, 1
jne 0x405bbf
lea eax, [esp + 0xc]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x405b99
mov byte [eax + 1], 0
mov edi, str.TokenMgr.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x405bbf
mov edi, 0x41563c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x405bd6
lea ecx, [esp + 0xc]
push ecx
jmp 0x405bdb
push str.TokenMgr.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea edx, [esp + 0xc]
mov dword [0x415590], eax
push edx
push str.CSP_NAME_path:_s
call fcn.00407dc0
mov eax, dword [0x415590]
add esp, 8
test eax, eax
jne 0x405c0a
pop edi
pop esi
add esp, 0x20c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WDSCardEstablishContext
push eax
call esi
mov dword [0x415620], eax
mov eax, dword [0x415590]
push str.WDSCardReleaseContext
push eax
call esi
mov ecx, dword [0x415590]
push str.WDSCardGetSlotList
push ecx
mov dword [0x41561c], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardConnectToken
push edx
mov dword [0x415618], eax
call esi
mov dword [0x415614], eax
mov eax, dword [0x415590]
push str.WDSCardDisconnectToken
push eax
call esi
mov ecx, dword [0x415590]
push str.WDSCardGetTokenHandle
push ecx
mov dword [0x415610], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardGetSlotName
push edx
mov dword [0x41560c], eax
call esi
mov dword [0x415608], eax
mov eax, dword [0x415590]
push str.WDSCardGetTokenLabel
push eax
call esi
mov ecx, dword [0x415590]
push str.SCardReadBin
push ecx
mov dword [0x415604], eax
call esi
mov edx, dword [0x415590]
push str.NDEstablishContext
push edx
mov dword [0x415600], eax
call esi
mov dword [0x4155fc], eax
mov eax, dword [0x415590]
push str.NDReleaseContext
push eax
call esi
mov ecx, dword [0x415590]
push str.NDCloseDevice
push ecx
mov dword [0x4155f8], eax
call esi
mov edx, dword [0x415590]
push str.NDGetSlotList
push edx
mov dword [0x4155f4], eax
call esi
mov dword [0x4155f0], eax
mov eax, dword [0x415590]
push str.NDOpenDeviceByIndex
push eax
call esi
mov ecx, dword [0x415590]
push str.NDGetTokenLabel
push ecx
mov dword [0x4155ec], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardWriteTokenInfo
push edx
mov dword [0x4155e8], eax
call esi
mov dword [0x4155e4], eax
push str.WDSCardWriteTokenLabel
mov eax, dword [0x415590]
push eax
call esi
mov ecx, dword [0x415590]
push str.WDSCardGetTokenInfo
push ecx
mov dword [0x4155e0], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardGetTokenATR
push edx
mov dword [0x4155dc], eax
call esi
mov dword [0x4155d8], eax
mov eax, dword [0x415590]
push str.WDSCardGetTokenVersion
push eax
call esi
mov ecx, dword [0x415590]
push str.WDSCardGetProvName
push ecx
mov dword [0x4155d4], eax
call esi
mov edx, dword [0x415590]
push str.SCardGetFreeSpaceEx
push edx
mov dword [0x4155d0], eax
call esi
mov dword [0x4155cc], eax
mov eax, dword [0x415590]
push str.WDSCardAuth
push eax
call esi
mov ecx, dword [0x415590]
push str.WDCryptIsCompatible
push ecx
mov dword [0x4155c8], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardChangeUserPin
push edx
mov dword [0x4155c4], eax
call esi
mov dword [0x4155b8], eax
mov eax, dword [0x415590]
push str.WDCryptIsSupportedReader
push eax
call esi
mov ecx, dword [0x415590]
push str.NDOpenDeviceByDevPath
push ecx
mov dword [0x4155b4], eax
call esi
mov edx, dword [0x415590]
push str.NDGetTokenDevPath
push edx
mov dword [0x4155c0], eax
call esi
mov dword [0x4155bc], eax
mov eax, dword [0x415590]
push str.SCardSelectFileByID
push eax
call esi
mov ecx, dword [0x415590]
push str.SCardReset
push ecx
mov dword [0x4155b0], eax
call esi
mov edx, dword [0x415590]
push str.SCardExternAuth
push edx
mov dword [0x4155ac], eax
call esi
mov dword [0x4155a8], eax
mov eax, dword [0x415590]
push str.SCardAPDU
push eax
call esi
mov ecx, dword [0x415590]
mov dword [0x4155a4], eax
push str.WDSCardGetTokenSN
push ecx
call esi
mov edx, dword [0x415590]
push str.WDSCardReadDevType
push edx
mov dword [0x4155a0], eax
call esi
mov dword [0x41559c], eax
mov eax, dword [0x415590]
push str.WDGetPrefixByTokenName
push eax
call esi
mov ecx, dword [0x415590]
push str.WDGetTempCertDIR
push ecx
mov dword [0x415598], eax
call esi
mov edx, dword [0x415590]
push str.WDSCardEnumContainer
push edx
mov dword [0x415594], eax
call esi
mov dword [0x415628], eax
mov eax, dword [0x415590]
push str.WDSCardOpenContainer
push eax
call esi
mov ecx, dword [0x415590]
push str.WDSCardReadCert
push ecx
mov dword [0x41562c], eax
call esi
mov edx, dword [0x415590]
push str.SCardUpdateBin
push edx
mov dword [0x415630], eax
call esi
mov dword [0x415634], eax
mov eax, dword [0x415590]
push str.WDSCardGetRSAKeyfromContainer
push eax
call esi
mov dword [0x415638], eax
pop edi
mov eax, 1
pop esi
add esp, 0x20c
ret