Function at 0x10002b00
Capabilities:
Print debug messages
Query environment variable

Disassembly:
mov ecx, dword [ecx + 0x48]
jmp 0x1000a840
sub esp, 0x60c
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x608], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x11c], bl
call sub.MSVCR80.dll_memset
push 0x3ff
lea ecx, [esp + 0x225]
push ebx
push ecx
mov byte [esp + 0x22c], bl
call sub.MSVCR80.dll_memset
push 0x7f
lea edx, [esp + 0xad]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0xb4], bl
call sub.MSVCR80.dll_memset
push 0x7f
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
add esp, 0x30
push 8
push ebx
push str.DualCardDll.dll
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1000a951
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x1009f8e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [esp + 0x110]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x1000a8f7
mov edx, dword [str.DualCardDll.dll]
mov ecx, dword [0x1009f8f0]
mov dword [eax], edx
mov edx, dword [0x1009f8f4]
mov dword [eax + 4], ecx
mov ecx, dword [0x1009f8f8]
push 8
mov dword [eax + 8], edx
push ebx
lea edx, [esp + 0x118]
push edx
mov dword [eax + 0xc], ecx
call edi
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x1000a951
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0x15ef567
call edx
mov eax, 0x15ef567
jmp 0x1000aa9c
mov eax, dword [esi + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DE_InitPort
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.DE_FindCard
push ecx
mov dword [esi], eax
call edi
mov edx, dword [esi + 0x18]
push str.DE_APDU
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x18]
push str.DE_GetVersion
push eax
call edi
mov ecx, dword [esi]
push 0x4b00
push 0x64
mov dword [esi + 0xc], eax
call ecx
cmp eax, 0x64
je 0x1000a9b7
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0x15ef568
call eax
mov eax, 0x15ef568
jmp 0x1000aa9c
mov eax, dword [esi + 4]
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x41
push ebx
push ebx
push 3
push 0x64
call eax
test eax, eax
je 0x1000a9ee
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0x15ef569
call eax
mov eax, 0x15ef569
jmp 0x1000aa9c
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0xc
push 0x64
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], 0xa4
mov byte [esp + 0x26], 4
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 7
mov byte [esp + 0x29], 0xa0
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], 2
mov byte [esp + 0x2d], 0x32
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0x10
call ecx
mov eax, dword [esp + 0xc]
mov cl, byte [esp + eax + 0x8e]
cmp cl, 0x90
lea eax, [esp + eax + 0x90]
je 0x1000aa9a
movzx edx, byte [eax - 1]
movzx eax, cl
push edx
push eax
lea ecx, [esp + 0x21c]
push str.KEPCO_IC_CARD_Select_DF_Return_err__0x_02x_02x
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0x15ef56a
call edx
mov eax, 0x15ef56a
jmp 0x1000aa9c
xor eax, eax
mov ecx, dword [esp + 0x614]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10090524
add esp, 0x60c
ret 4