Function at 0x40b9c0
Capabilities:
Create directory
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413067
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x41a018]
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 eax, dword [ebp + 8]
mov ebx, ecx
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], ebx
call fcn.0040c840
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 4], 0
push edx
mov word [ebp - 0x218], cx
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x218]
add esp, 0xc
mov eax, ebx
sub edx, ebx
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40ba40
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.DriverFolder
lea ecx, [ebp - 0x218]
push ecx
call esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea edx, [ebp - 0x218]
push edx
call edi
test eax, eax
jne 0x40ba91
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x40babc
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [0x41a030]
mov eax, dword [edx + 0xc]
mov ecx, 0x41a030
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
test ecx, 0xffff0000
jne 0x40bb09
mov edx, ecx
movzx esi, dx
push esi
call fcn.00407340
add esp, 4
test eax, eax
je 0x40bb20
push eax
mov eax, esi
lea edi, [ebp - 0x228]
call fcn.0040a7b0
jmp 0x40bb20
lea ebx, [ebp - 0x218]
lea edi, [ebp - 0x228]
call fcn.00409e80
mov ebx, dword [ebp - 0x22c]
mov byte [ebp - 4], 2
mov eax, dword [0x41a030]
mov edx, dword [eax + 0xc]
mov ecx, 0x41a030
call edx
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x40bb6c
test ebx, 0xffff0000
jne 0x40bb6c
movzx esi, bx
push esi
call fcn.00407340
add esp, 4
test eax, eax
je 0x40bb7d
push eax
mov eax, esi
lea edi, [ebp - 0x224]
call fcn.0040a7b0
jmp 0x40bb7d
lea edi, [ebp - 0x224]
call fcn.00409e80
mov ebx, dword [ebp - 0x22c]
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x228]
mov esi, dword [ebp - 0x224]
mov edx, edi
mov ecx, esi
call fcn.00411230
mov byte [ebp - 0x219], al
lea eax, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x219], 0
jne 0x40bc19
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40bc15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40bc66
mov edi, dword [ebp - 0x230]
lea ecx, [ebp - 0x218]
push ecx
add edi, 4
push 0x4162bc
call fcn.0040af30
mov edi, dword [edi]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x40bc61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00411688
mov esp, ebp
pop ebp
ret 4