Function at 0x40ec03
Capabilities:
Delete directory
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov dword [ebp - 0xd8], 0
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00404ad0
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 0
je 0x40ec43
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
cmp dword [ebp - 0x19c], 3
jne 0x40f30e
push 0x533050
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push str.aksusb.inf
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push str.aksusb.cat
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push 0x533074
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push str.akspccard.inf
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push str.akspccard.cat
call fcn.0040eb75
add esp, 4
mov dword [ebp - 0xd8], eax
push 0x5330a4
call fcn.00412a9e
add esp, 4
push str.akspccard.sys
call fcn.00412a9e
add esp, 4
push 0x200
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x5330c0
push 0x5c2a40
call fcn.004202e0
add esp, 8
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [ebp - 0xd8], 0xffffffff
jne 0x40ed1d
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x5330d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1cc], eax
cmp dword [ebp - 0x1cc], 0
jne 0x40ed70
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x5330e0
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jne 0x40edca
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x5330f8
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x40ee24
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x533110
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x40ee7e
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x533134
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
jne 0x40eed8
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 0x533150
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
jne 0x40ef32
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
push 4
push 0
push 0
push 0
call dword [ebp - 0xd4]
mov dword [ebp - 0x1c8], eax
cmp dword [ebp - 0x1c8], 0xffffffff
jne 0x40ef88
push 8
call fcn.00406ccc
add esp, 4
push 0x2020000
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
mov dword [ebp - 0x1bc], 0x1c
mov dword [ebp - 0x1c0], 0
jmp 0x40efad
mov edx, dword [ebp - 0x1c0]
add edx, 1
mov dword [ebp - 0x1c0], edx
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
call dword [ebp - 0xcc]
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x40f2e4
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1e4], 0
lea eax, [ebp - 0x1e4]
push eax
mov ecx, dword [ebp - 0x1e4]
push ecx
mov edx, dword [ebp - 0x1e0]
push edx
lea eax, [ebp - 0x1dc]
push eax
push 1
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
call dword [ebp - 0xd0]
test eax, eax
jne 0x40f0ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x40f036
jmp 0x40f0ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40f06e
cmp dword [ebp - 0x1e0], 0
je 0x40f057
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1e4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1e0], eax
jmp 0x40f0a7
push 9
call fcn.00406ccc
add esp, 4
push 0x2020000
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
jmp 0x40efef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x40f0bc
jmp 0x40ef9e
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1d8], eax
jmp 0x40f0e7
mov ecx, dword [ebp - 0x1d8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x1d8]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x1d8]
movsx edx, byte [ecx]
test edx, edx
je 0x40f2c9
mov eax, dword [ebp - 0x1e0]
add eax, dword [ebp - 0x1e4]
cmp dword [ebp - 0x1d8], eax
jae 0x40f2c9
mov ecx, dword [ebp - 0x1d8]
push ecx
push 0x533170
call fcn.00420970
add esp, 8
test eax, eax
jne 0x40f180
lea edx, [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0x1c8]
push eax
push 5
call dword [ebp - 0x1c4]
test eax, eax
jne 0x40f17b
push 9
call fcn.00406ccc
add esp, 4
push 0x2020000
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov ecx, dword [ebp - 0x1cc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
jmp 0x40f0ca
mov edx, dword [ebp - 0x1d8]
push edx
push 0x533188
call fcn.00420970
add esp, 8
test eax, eax
je 0x40f1b0
mov eax, dword [ebp - 0x1d8]
push eax
push 0x53319c
call fcn.00420970
add esp, 8
test eax, eax
jne 0x40f208
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c8]
push edx
push 5
call dword [ebp - 0x1c4]
test eax, eax
jne 0x40f203
push 9
call fcn.00406ccc
add esp, 4
push 0x2020000
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov eax, dword [ebp - 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
jmp 0x40f0ca
mov ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [str.PCMCIAFAST_Electronic_Hardlock_V1.0_E258]
push edx
call fcn.00420970
add esp, 8
test eax, eax
je 0x40f26f
mov eax, dword [ebp - 0x1d8]
push eax
mov ecx, dword [str.PCMCIAFAST_Electronic_Hardlock_V1.0_9586]
push ecx
call fcn.00420970
add esp, 8
test eax, eax
je 0x40f26f
mov edx, dword [ebp - 0x1d8]
push edx
mov eax, dword [str.PCMCIAAladdin_Knowledge_Systems_Ltd._Hardlock_V2.0_73FD]
push eax
call fcn.00420970
add esp, 8
test eax, eax
je 0x40f26f
mov ecx, dword [ebp - 0x1d8]
push ecx
mov edx, dword [str.PCMCIAAladdin_Knowledge_Systems_Ltd._PC_CardHASP_V1.1_A809]
push edx
call fcn.00420970
add esp, 8
test eax, eax
jne 0x40f2c4
lea eax, [ebp - 0x1bc]
push eax
mov ecx, dword [ebp - 0x1c8]
push ecx
push 5
call dword [ebp - 0x1c4]
test eax, eax
jne 0x40f2bf
push 9
call fcn.00406ccc
add esp, 4
push 0x2020000
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xd8], 0xffffffff
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
jmp 0x40f314
jmp 0x40f0ca
jmp 0x40f0ca
cmp dword [ebp - 0x1e0], 0
je 0x40f2df
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40ef9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f2f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1c8]
push ecx
call dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1cc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xd8]
mov esp, ebp
pop ebp
ret