Function at 0x1001ed60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100836f3
mov eax, dword fs:[0]
push eax
mov eax, 0x109c
call fcn.100790e0
mov eax, dword [0x100a5c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
xor edi, edi
cmp dword [ebx + 4], edi
je 0x1001edd6
cmp dword [ebx + 8], edi
je 0x1001edd6
cmp dword [ebx + 0xc], edi
je 0x1001edd6
cmp dword [ebx + 0x10], edi
je 0x1001edd6
cmp dword [ebx + 0x14], edi
je 0x1001edd6
cmp dword [ebx + 0x18], edi
je 0x1001edd6
cmp dword [ebx + 0x1c], edi
je 0x1001edd6
cmp dword [ebx + 0x20], edi
je 0x1001edd6
cmp dword [ebx + 0x24], edi
je 0x1001edd6
cmp dword [ebx + 0x28], edi
je 0x1001edd6
cmp dword [ebx + 0x2c], edi
je 0x1001edd6
cmp dword [ebx + 0x34], edi
jne 0x1001f4a1
mov esi, 7
xor eax, eax
mov dword [ebp - 0x1034], esi
mov dword [ebp - 0x1038], edi
mov word [ebp - 0x1048], ax
lea edx, [ebp - 0x1048]
push edx
mov dword [ebp - 4], edi
call fcn.100203a0
xor eax, eax
add esp, 4
mov dword [ebp - 0x1050], esi
mov word [ebp - 0x1064], ax
push 0xa
mov eax, str.Dongle.dll
lea esi, [ebp - 0x1064]
mov dword [ebp - 0x1054], edi
call fcn.10003a30
lea ecx, [ebp - 0x1048]
push ecx
mov edx, esi
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 1
call fcn.1001fca0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1050], esi
jb 0x1001ee64
mov edx, dword [ebp - 0x1064]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov word [ebp - 0x1064], ax
mov eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], edi
cmp dword [ebp - 0x1018], esi
jae 0x1001ee91
lea eax, [ebp - 0x102c]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebx], eax
cmp eax, edi
jne 0x1001f27b
lea ecx, [ebp - 0x10a0]
push ecx
lea edx, [ebp - 0x1048]
push edx
mov edi, 1
or ecx, 0xffffffff
mov dword [ebp - 0x10a0], 0x5c
call fcn.1000a090
push eax
xor ecx, ecx
lea esi, [ebp - 0x109c]
lea edx, [ebp - 0x1048]
call fcn.10009bd0
mov byte [ebp - 4], 4
xor eax, eax
mov word [ebp - 0x1064], ax
push 0xa
mov eax, str.Dongle.dll
lea esi, [ebp - 0x1064]
mov dword [ebp - 0x1050], 7
mov dword [ebp - 0x1054], 0
call fcn.10003a30
lea ecx, [ebp - 0x109c]
push ecx
mov edx, esi
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 5
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], 6
call fcn.100037e0
mov edi, 8
cmp dword [ebp - 0x106c], edi
jb 0x1001ef58
mov edx, dword [ebp - 0x1080]
push edx
call fcn.10066b10
add esp, 4
xor esi, esi
xor eax, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], esi
mov word [ebp - 0x1080], ax
cmp dword [ebp - 0x1050], edi
jb 0x1001ef8e
mov ecx, dword [ebp - 0x1064]
push ecx
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], edi
jae 0x1001efa2
lea eax, [ebp - 0x102c]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebx], eax
cmp eax, esi
jne 0x1001f262
push str.ilocker.exe
call fcn.10010d10
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x1001efe1
push str.PiClient.exe
call fcn.10010d10
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x1001f238
lea edx, [ebp - 0x10a0]
push edx
push 0x20
mov dword [ebp - 0x10a0], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [ebp - 0x10a0]
call fcn.1001f4d0
push 0x7fe
xor esi, esi
lea ecx, [ebp - 0x80e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x810], ax
call fcn.1006b580
add esp, 0xc
push edi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
jne 0x1001f0bf
mov edi, 8
cmp dword [ebp - 0x1088], edi
jb 0x1001f05b
mov edx, dword [ebp - 0x109c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov ebx, 7
mov dword [ebp - 0x1088], ebx
mov dword [ebp - 0x108c], esi
mov word [ebp - 0x109c], ax
cmp dword [ebp - 0x1018], edi
jb 0x1001f08c
mov ecx, dword [ebp - 0x102c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x101c], esi
mov word [ebp - 0x102c], dx
cmp dword [ebp - 0x1034], edi
jb 0x1001f0b8
mov eax, dword [ebp - 0x1048]
push eax
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x1001f4a6
push 0x400
lea ecx, [ebp - 0x810]
push ecx
push esi
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x1001f0de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1001f0e7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea esi, [ebp - 0x1048]
call fcn.10003a30
lea edx, [ebp - 0x10a4]
push edx
mov eax, esi
push eax
mov edi, 1
or ecx, 0xffffffff
mov dword [ebp - 0x10a4], 0x5c
call fcn.1000a090
push eax
xor ecx, ecx
lea esi, [ebp - 0x1080]
lea edx, [ebp - 0x1048]
call fcn.10009bd0
mov edi, eax
lea esi, [ebp - 0x109c]
mov byte [ebp - 4], 7
call fcn.100037e0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x106c], 8
jb 0x1001f16a
mov ecx, dword [ebp - 0x1080]
push ecx
call fcn.10066b10
add esp, 4
mov eax, str.Dongle.dll
lea ecx, [ebp - 0x1064]
call fcn.100036d0
lea edx, [ebp - 0x109c]
push edx
lea edx, [ebp - 0x1064]
lea ecx, [ebp - 0x1080]
mov byte [ebp - 4], 8
call fcn.1001fca0
add esp, 4
mov edi, eax
lea esi, [ebp - 0x102c]
mov byte [ebp - 4], 9
call fcn.100037e0
mov esi, 8
cmp dword [ebp - 0x106c], esi
jb 0x1001f1c6
mov eax, dword [ebp - 0x1080]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x106c], 7
mov dword [ebp - 0x1070], 0
mov word [ebp - 0x1080], cx
cmp dword [ebp - 0x1050], esi
jb 0x1001f1fa
mov edx, dword [ebp - 0x1064]
push edx
call fcn.10066b10
add esp, 4
mov eax, dword [ebp - 0x102c]
cmp dword [ebp - 0x1018], esi
jae 0x1001f20e
lea eax, [ebp - 0x102c]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebx], eax
test eax, eax
jne 0x1001f260
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10093e44
lea edx, [ebp - 0x1010]
call fcn.10005ff0
add esp, 8
lea ecx, [ebp - 0x109c]
call fcn.10003710
lea ecx, [ebp - 0x102c]
call fcn.10003710
lea ecx, [ebp - 0x1048]
call fcn.10003710
xor eax, eax
jmp 0x1001f4a6
mov edi, esi
cmp dword [ebp - 0x1088], edi
jb 0x1001f279
mov eax, dword [ebp - 0x109c]
push eax
call fcn.10066b10
add esp, 4
xor edi, edi
mov ecx, dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Dongle_ChangePIN
push ecx
call esi
mov dword [ebx + 0x20], eax
cmp eax, edi
jne 0x1001f2e9
mov esi, 8
cmp dword [ebp - 0x1018], esi
jb 0x1001f2ae
mov edx, dword [ebp - 0x102c]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], edi
mov word [ebp - 0x102c], ax
cmp dword [ebp - 0x1034], esi
jb 0x1001f0b8
mov ecx, dword [ebp - 0x1048]
push ecx
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x1001f4a6
mov edx, dword [ebx]
push str.Dongle_Enum
push edx
call esi
mov dword [ebx + 4], eax
cmp eax, edi
jne 0x1001f351
mov esi, 8
cmp dword [ebp - 0x1018], esi
jb 0x1001f316
mov eax, dword [ebp - 0x102c]
push eax
call fcn.10066b10
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], edi
mov word [ebp - 0x102c], cx
cmp dword [ebp - 0x1034], esi
jb 0x1001f0b8
mov edx, dword [ebp - 0x1048]
push edx
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x1001f4a6
mov eax, dword [ebx]
push str.Dongle_Open
push eax
call esi
mov dword [ebx + 8], eax
cmp eax, edi
jne 0x1001f3b9
mov esi, 8
cmp dword [ebp - 0x1018], esi
jb 0x1001f37e
mov ecx, dword [ebp - 0x102c]
push ecx
call fcn.10066b10
add esp, 4
xor edx, edx
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], edi
mov word [ebp - 0x102c], dx
cmp dword [ebp - 0x1034], esi
jb 0x1001f0b8
mov eax, dword [ebp - 0x1048]
push eax
call fcn.10066b10
add esp, 4
xor eax, eax
jmp 0x1001f4a6
mov ecx, dword [ebx]
push str.Dongle_LEDControl
push ecx
call esi
mov dword [ebx + 0xc], eax
cmp eax, edi
je 0x1001f243
mov edx, dword [ebx]
push str.Dongle_Close
push edx
call esi
mov dword [ebx + 0x10], eax
cmp eax, edi
je 0x1001f243
mov eax, dword [ebx]
push str.Dongle_GenUniqueKey
push eax
call esi
mov dword [ebx + 0x14], eax
cmp eax, edi
je 0x1001f243
mov ecx, dword [ebx]
push str.Dongle_GetUTCTime
push ecx
call esi
mov dword [ebx + 0x18], eax
cmp eax, edi
je 0x1001f243
mov edx, dword [ebx]
push str.Dongle_CreateFile
push edx
call esi
mov dword [ebx + 0x1c], eax
cmp eax, edi
je 0x1001f243
mov eax, dword [ebx]
push str.Dongle_DeleteFile
push eax
call esi
mov dword [ebx + 0x24], eax
cmp eax, edi
je 0x1001f243
mov ecx, dword [ebx]
push str.Dongle_ReadFile
push ecx
call esi
mov dword [ebx + 0x28], eax
cmp eax, edi
je 0x1001f243
mov edx, dword [ebx]
push str.Dongle_ResetUserPIN
push edx
call esi
mov dword [ebx + 0x2c], eax
cmp eax, edi
je 0x1001f243
mov eax, dword [ebx]
push str.Dongle_VerifyPIN
push eax
call esi
mov dword [ebx + 0x30], eax
cmp eax, edi
je 0x1001f243
mov ecx, dword [ebx]
push str.Dongle_WriteFile
push ecx
call esi
mov dword [ebx + 0x34], eax
lea ecx, [ebp - 0x102c]
cmp eax, edi
je 0x1001f249
call fcn.10003710
lea ecx, [ebp - 0x1048]
call fcn.10003710
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10066b1b
mov esp, ebp
pop ebp
ret