Function at 0x40bb32
Capabilities:
Create directory
Print debug messages

Disassembly:
mov eax, 0x44026c
call fcn.0042f618
sub esp, 0x11c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebx + 0xc], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], edi
push eax
push 0x441340
push 0x17
push edi
push 0x441350
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp + 8], edi
mov eax, dword [ebp - 0x18]
lea edx, [ebp + 8]
push edx
push esi
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x28]
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x40bb90
mov dword [ebp - 0x10], edi
jmp 0x40bbc3
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x10], eax
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov esi, esp
push edi
push edi
push dword [ebp - 0x10]
and byte [esi], 0
push esi
push 0xffffffffffffffff
push dword [ebp - 0x14]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], esi
push 0x3f
push dword [ebp + 0xc]
call fcn.0042f6e0
push dword [ebp + 0xc]
and byte [eax], 0
call fcn.004307e0
inc eax
push eax
call fcn.0042f231
push dword [ebp + 0xc]
mov dword [ebx + 0x10], eax
push eax
call fcn.0042fbf0
push 0x3b
mov dword [ebx + 0x14], edi
push dword [ebp + 0x10]
call fcn.0042f6e0
add esp, 0x20
cmp eax, edi
je 0x40bc31
and byte [eax], 0
lea esi, [eax + 1]
push 0x3b
push esi
call fcn.0042f6e0
pop ecx
cmp eax, edi
pop ecx
jne 0x40bbff
cmp esi, dword [ebp + 0x10]
je 0x40bc31
sub esi, dword [ebp + 0x10]
push esi
call fcn.0042f231
push esi
mov dword [ebx + 0x14], eax
push dword [ebp + 0x10]
push eax
call fcn.0042ff20
add esp, 0x10
push 0x3f
mov dword [ebx + 8], edi
push dword [ebp + 0x14]
mov dword [ebx], edi
mov dword [ebx + 4], edi
call fcn.0042f6e0
pop ecx
cmp eax, edi
pop ecx
je 0x40bc52
inc dword [ebx + 8]
inc eax
push 0x3f
push eax
jmp 0x40bc3e
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x40bee4
shl eax, 2
push eax
call fcn.0042f231
push dword [ebx + 8]
mov dword [ebx], eax
call fcn.0042f231
mov esi, dword [ebx + 8]
mov dword [ebx + 4], eax
lea eax, [esi*4 + 4]
push eax
call fcn.0042f231
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x40bcb1
push fcn.00404d93
mov dword [eax], esi
push 0x40c7a4
add eax, 4
push esi
push 4
push eax
mov dword [ebp + 0x10], eax
call fcn.0042fe98
mov eax, dword [ebp + 0x10]
jmp 0x40bcb3
xor eax, eax
mov esi, dword [ebx + 8]
mov dword [ebx + 0x18], eax
mov byte [ebp - 4], 1
lea eax, [esi*4 + 4]
push eax
call fcn.0042f231
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, edi
mov byte [ebp - 4], 3
je 0x40bcf6
push fcn.00404d93
mov dword [eax], esi
push 0x40c7a4
add eax, 4
push esi
push 4
push eax
mov dword [ebp + 0x10], eax
call fcn.0042fe98
mov eax, dword [ebp + 0x10]
jmp 0x40bcf8
xor eax, eax
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push 0x3f
push eax
mov byte [ebp - 4], 1
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
cmp dword [ebx + 8], edi
pop ecx
pop ecx
mov dword [ebp + 0x10], edi
jbe 0x40bee4
and byte [eax], 0
push 0x7c
push dword [ebp + 0x14]
call fcn.0042f6e0
and byte [eax], 0
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.004307e0
inc eax
push eax
call fcn.0042f231
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebx]
shl esi, 2
mov dword [esi + ecx], eax
mov eax, dword [ebx]
push dword [esi + eax]
call fcn.0042fbf0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
add esp, 0x18
and byte [ecx + eax], 0
lea eax, [ebp - 0x128]
push dword [ebp + 0xc]
push str._s_scanned
push eax
call fcn.0042f1df
add esp, 0xc
lea eax, [ebp - 0x128]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, edi
jne 0x40bda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40bda3
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov byte [ecx + eax], 1
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
cmp byte [ecx + eax], 0
jne 0x40beba
push dword [ebp + 0x14]
lea eax, [ebp - 0x128]
push dword [ebp - 0x10]
push str._s_s_hf.xml
push eax
call fcn.0042f1df
mov eax, dword [ebx + 0x1c]
add esp, 0x10
add eax, esi
push eax
push 0x441c28
push 1
push edi
push 0x441c58
call dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x28]
push eax
mov word [ebp - 0x28], di
call fcn.0040b52d
mov eax, dword [ebx + 0x1c]
push edi
mov byte [ebp - 4], 4
mov eax, dword [eax + esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov eax, dword [ebx + 0x1c]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], edi
mov eax, dword [eax + esi]
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
test eax, eax
je 0x40be53
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ecx + eax], 1
lea eax, [ebp - 0x128]
push eax
call esi
push str._doesnt_exists_n
jmp 0x40bea8
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov ecx, ebx
shl edi, 2
push dword [eax + edi]
call fcn.0040c169
mov esi, dword [ebx + 0x18]
mov dword [ebp + 0x14], eax
add esi, edi
mov eax, dword [esi]
test eax, eax
je 0x40be7c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebx + 0x18]
cmp dword [eax + edi], 0
jne 0x40beaa
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ecx + eax], 1
lea eax, [ebp - 0x128]
push eax
call esi
push str._is_invalid_n
call esi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor edi, edi
mov esi, dword [ebp + 0xc]
push esi
call fcn.004307e0
lea eax, [eax + esi + 1]
push 0x3f
push eax
mov dword [ebp + 0x14], eax
call fcn.0042f6e0
add esp, 0xc
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebx + 8]
jb 0x40bd1b
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x40befe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x134]
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10