Function at 0x1001c230
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ff72
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x100701bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x1001c274
push eax
call ebx
mov dword [edi + 8], 0
lea ecx, [ebp - 0x54]
call fcn.10025510
push 0x10060a58
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10012350
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
push esi
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.10012520
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x1001c2af
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1001c2ce
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.1000e380
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
cmp eax, 0x10
jb 0x1001c2f5
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.1000e380
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1001c323
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.1000e380
mov eax, dword [edi + 8]
test eax, eax
jne 0x1001c43b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x12
push 0x100612d8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.1000dd80
push esi
lea edx, [ebp - 0x24]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.10012520
push 0x10060b28
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.10012350
add esp, 8
mov edi, eax
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x1001c3bf
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x1001c39a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000e380
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x1001c3b2
mov eax, dword [esi]
jmp 0x1001c3b4
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.1000e0d0
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x1001c3d4
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.1000e380
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1001c3fb
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.1000e380
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1001c422
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.1000e380
mov eax, 0xffffff92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ICC_Reader_Open
push eax
call esi
push str.ICC_Reader_Close
push dword [edi + 8]
mov dword [edi + 0x24], eax
call esi
push str.ICC_Reader_PowerOn
push dword [edi + 8]
mov dword [edi + 0x28], eax
call esi
push str.ICC_Reader_PowerOff
push dword [edi + 8]
mov dword [edi + 0x2c], eax
call esi
push str.ICC_Reader_GetStatus
push dword [edi + 8]
mov dword [edi + 0x30], eax
call esi
push str.ICC_Reader_Application
push dword [edi + 8]
mov dword [edi + 0x34], eax
call esi
push str.ICC_Reader_Libinfo
push dword [edi + 8]
mov dword [edi + 0x38], eax
call esi
cmp dword [edi + 0x24], 0
mov dword [edi + 0x3c], eax
je 0x1001c4d8
cmp dword [edi + 0x28], 0
je 0x1001c4d8
cmp dword [edi + 0x2c], 0
je 0x1001c4d8
cmp dword [edi + 0x30], 0
je 0x1001c4d8
cmp dword [edi + 0x34], 0
je 0x1001c4d8
cmp dword [edi + 0x38], 0
je 0x1001c4d8
test eax, eax
je 0x1001c4d8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push dword [edi + 8]
call ebx
push 0x10
push 0x100612ec
lea ecx, [ebp - 0x6c]
mov dword [edi + 8], 0
mov dword [ebp - 0x58], 0xf
mov dword [ebp - 0x5c], 0
mov byte [ebp - 0x6c], 0
call fcn.1000dd80
lea eax, [edi + 0xc]
mov dword [ebp - 4], 6
push eax
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x9c]
call fcn.10012520
push 0x10060b54
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x84]
call fcn.10012350
add esp, 8
mov edi, eax
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x1001c578
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x1001c553
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.1000e380
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
jb 0x1001c56b
mov eax, dword [esi]
jmp 0x1001c56d
mov eax, esi
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.1000e0d0
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x1001c593
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.1000e380
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
cmp eax, 0x10
jb 0x1001c5c6
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.1000e380
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
cmp eax, 0x10
jb 0x1001c5f6
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.1000e380
mov eax, 0xffffff91
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4