Function at 0x10012adc
Capabilities:
Create directory
Enumerate files on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2914
call fcn.1002fb29
mov eax, dword [0x100400b0]
xor eax, esp
mov dword [esp + 0x2910], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x18], edx
mov ebx, ecx
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov esi, edx
push edi
or edi, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x10012ba7
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10012b29
sub esi, ecx
lea eax, [esp + 0x270]
sar esi, 1
cmp ebx, eax
je 0x10012b59
push ecx
push ebx
mov edx, 0x104
mov ecx, eax
call fcn.1001a3af
test eax, eax
je 0x10012fec
push 0x5c
pop eax
cmp ax, word [esp + esi*2 + 0x26e]
je 0x10012b8b
push 0xffffffffffffffff
push 0x100393f0
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.1001a3af
add esp, 0x10
cmp eax, 0x50
je 0x10012fec
push 0x10039754
mov edx, 0x104
lea ecx, [esp + 0x274]
call fcn.1001a3af
mov esi, dword [esp + 0x10]
jmp 0x10012ba9
mov eax, edx
test eax, eax
je 0x10012fec
lea eax, [esp + 0x20]
push eax
cmp edi, 0xffffffff
jne 0x10012bd5
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
jmp 0x10012bdc
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x10012c57
mov ecx, 0x10039384
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012c0f
test dx, dx
je 0x10012c0b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012c0f
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012be9
xor eax, eax
jmp 0x10012c14
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012bb1
mov ecx, 0x10039374
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012c47
test dx, dx
je 0x10012c43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012c47
add eax, 4
add ecx, 4
test dx, dx
jne 0x10012c21
xor eax, eax
jmp 0x10012c4c
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012bb1
xor esi, esi
inc esi
cmp edi, 0xffffffff
je 0x10012c63
push edi
call dword [sym.imp.kernel32.dll_FindClose]
test esi, esi
je 0x10012fe5
test byte [esp + 0x20], 0x10
je 0x10012fe5
xor edi, edi
test ebx, ebx
je 0x10012cfb
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x10012c81
sub esi, ecx
lea eax, [esp + 0x270]
sar esi, 1
cmp ebx, eax
je 0x10012cb1
push ecx
push ebx
mov edx, 0x104
mov ecx, eax
call fcn.1001a3af
test eax, eax
je 0x10012fec
push 0x5c
pop eax
cmp ax, word [esp + esi*2 + 0x26e]
je 0x10012ce3
push 0xffffffffffffffff
push 0x100393f0
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.1001a3af
add esp, 0x10
cmp eax, 0x50
je 0x10012fec
lea eax, [esp + 0x4c]
mov edx, 0x104
push eax
lea ecx, [esp + 0x274]
call fcn.1001a3af
jmp 0x10012cfd
mov eax, edi
test eax, eax
je 0x10012fec
call fcn.1001a3af
test eax, eax
jne 0x10012fb1
push edi
push 5
lea eax, [esp + 0x688]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x10012d35
mov word [esp + 0x680], ax
jmp 0x10012fb1
lea ecx, [esp + 0x680]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10012d3f
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esp + ecx*2 + 0x67e]
je 0x10012d80
push 0xffffffffffffffff
push 0x100393f0
lea eax, [esp + 0x688]
push 0x104
push eax
call fcn.1001a3af
add esp, 0x10
cmp eax, 0x50
je 0x10012fec
push 0x10039a60
mov edx, 0x104
lea ecx, [esp + 0x684]
call fcn.1001a3af
test eax, eax
je 0x10012fec
push edi
lea eax, [esp + 0x684]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x10012dc4
call esi
cmp eax, 0xb7
jne 0x10012fec
push edi
push ecx
lea eax, [esp + 0x480]
push eax
push edi
lea edx, [esp + 0x690]
lea ecx, [esp + 0x5c]
call fcn.1001a3af
test eax, eax
je 0x10012fb1
mov edi, 0x1048
xor eax, eax
push edi
push eax
lea eax, [esp + 0x890]
push eax
call fcn.1001e894
push edi
xor edi, edi
lea eax, [esp + 0x18e0]
push edi
push eax
call fcn.1001e894
xor eax, eax
add esp, 0x18
cmp ax, word [esp + 0x270]
je 0x10012efd
cmp ax, word [esp + 0x478]
je 0x10012efd
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x274]
push eax
call fcn.1001a3af
pop ecx
pop ecx
test eax, eax
je 0x10012f07
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10012ebc
call fcn.1001a3af
test eax, eax
je 0x10012ebc
xor eax, eax
lea ecx, [esp + 0x270]
mov word [esp + 0x888], ax
mov word [esp + 0x18d0], ax
call fcn.1001a3af
test eax, eax
lea eax, [esp + 0x18d0]
push ecx
je 0x10012e94
push eax
push ecx
lea ecx, [esp + 0x27c]
jmp 0x10012eeb
push ecx
push eax
push ecx
lea eax, [esp + 0x898]
push eax
push edi
lea edx, [esp + 0x490]
lea ecx, [esp + 0x288]
call fcn.1001a3af
xor ecx, ecx
test eax, eax
setns cl
jmp 0x10012ef9
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.kernel32.dll_MoveFileW]
test eax, eax
je 0x10012faf
push ecx
lea eax, [esp + 0x18d4]
push eax
push ecx
lea ecx, [esp + 0x484]
lea edx, [esp + 0x894]
call fcn.1001a3af
mov ecx, eax
xor edi, edi
jmp 0x10012eff
mov ecx, edi
test ecx, ecx
je 0x10012faf
push 0xffffffffffffffff
lea eax, [esp + 0x88c]
mov ebx, 0x104
push eax
lea eax, [esp + 0x480]
push ebx
push eax
call fcn.1001a3af
add esp, 0x10
cmp eax, 0x50
je 0x10012fca
lea ecx, [esp + 0x478]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10012f3a
sub ecx, edx
sar ecx, 1
call fcn.100078ac
mov ecx, eax
cmp ecx, ebx
jge 0x10012fca
test ecx, ecx
jle 0x10012f7e
push 0x5c
pop edx
cmp dx, word [esp + ecx*2 + 0x476]
je 0x10012f7e
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x10012fca
xor eax, eax
mov word [esp + ecx*2 + 0x478], dx
mov word [esp + ecx*2 + 0x47a], ax
push 0xffffffffffffffff
lea eax, [esp + 0x18d4]
push eax
lea eax, [esp + 0x480]
push ebx
push eax
call fcn.1001a3af
add esp, 0x10
cmp eax, 0x50
je 0x10012fca
push dword [ebp + 0x14]
lea eax, [esp + 0x47c]
push dword [ebp + 0x10]
push edi
push eax
jmp 0x10012fbb
call esi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push edi
push ebx
push str.EXPLORER.EXE
push edi
xor edx, edx
xor ecx, ecx
call fcn.1001a3af
push dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
xor ecx, ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x24]
push edi
call fcn.1001a3af
jmp 0x10012ff1
mov eax, 0x3eb
jmp 0x10012ff1
mov eax, 0x80041003
mov ecx, dword [esp + 0x291c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001c65c
mov esp, ebp
pop ebp
ret 0x14