Function at 0x4120c2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x41237c
cmp word [esi], bx
je 0x41237c
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x41237c
cmp word [eax], bx
je 0x41237c
push edi
mov edi, 0x104
push edi
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
lea eax, [ebp + eax*2 - 0x216]
add esp, 0x10
cmp word [eax], 0x5c
jne 0x412138
xor ecx, ecx
mov word [eax], cx
push edi
lea eax, [ebp - 0x670]
push esi
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0x468], ax
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
cmp eax, ebx
je 0x412180
cmp word [ebp + eax*2 - 0x672], 0x5c
je 0x412180
lea eax, [ebp - 0x670]
push 0x41d470
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0xa88]
push eax
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
mov eax, 0x41d468
cmp ecx, ebx
je 0x4121a6
cmp word [ecx], bx
jne 0x4121a9
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp - 0x670]
push eax
call sub.MSVCRT.dll_wcscat
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
pop ecx
pop ecx
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x214]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x4121ec
test byte [ebp - 0x464], 0x10
je 0x4121e9
mov dword [ebp - 8], 1
push eax
call ebx
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x670]
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41237b
cmp dword [ebp - 8], 0
jne 0x412238
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
cmp word [ebp + eax*2 - 0x216], 0x3a
pop ecx
je 0x412238
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412378
mov dword [ebp - 4], 1
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x87c]
push eax
call sub.MSVCRT.dll_wcscpy
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x87c]
push eax
call sub.MSVCRT.dll_wcscat
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x20
test eax, eax
je 0x4122ac
cmp word [ebp + eax*2 - 0x216], 0x5c
je 0x4122ac
lea eax, [ebp - 0x214]
push 0x41d470
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x214]
push eax
call sub.MSVCRT.dll_wcscat
test byte [ebp - 0x464], 0x10
pop ecx
pop ecx
je 0x41231d
test byte [ebp + 0x14], 1
je 0x412362
lea eax, [ebp - 0x438]
push 0x41d448
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x412362
lea eax, [ebp - 0x438]
push 0x41d444
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x412362
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.004120c2
jmp 0x41235f
push dword [ebp + 0x10]
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.DLL_PathMatchSpecW]
test eax, eax
je 0x412362
test byte [ebp + 0x14], 2
je 0x412349
push pe_nt_image_headers32
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 4], eax
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41223f
push esi
call ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0x10