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

Disassembly:
push 0xffffffffffffffff
push 0x1005b4c1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x1007e930]
xor eax, esp
mov dword [esp + 0x6bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007e930]
xor eax, esp
push eax
lea eax, [esp + 0x6d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6e4]
xor edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x6dc], edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0x4bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x10071818
lea ecx, [esp + 0x4c0]
push 0x109
push ecx
call fcn.10041304
add esp, 0xc
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, edi
je 0x1003e92d
mov esi, 7
mov ebx, 2
jmp 0x1003e7e0
test byte [esp + 0x64], 0x10
jne 0x1003e912
lea ecx, [esp + 0x90]
push str.LinError.txt
push ecx
call fcn.10041175
add esp, 8
test eax, eax
je 0x1003e884
lea eax, [esp + 0x90]
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x1003e820
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0x34]
call fcn.10004c00
mov byte [esp + 0x6dc], 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.1003f420
mov byte [esp + 0x6dc], 0
cmp dword [esp + 0x44], 8
jb 0x1003e872
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1003ff26
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
jmp 0x1003e912
lea edx, [esp + 0x90]
push str.ExtError.txt
push edx
call fcn.10041175
add esp, 8
test eax, eax
je 0x1003e912
lea eax, [esp + 0x90]
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x1003e8b4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x50]
call fcn.10004c00
mov byte [esp + 0x6dc], bl
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.1003f420
mov byte [esp + 0x6dc], 0
cmp dword [esp + 0x60], 8
jb 0x1003e905
mov edx, dword [esp + 0x4c]
push edx
call fcn.1003ff26
add esp, 4
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], edi
mov word [esp + 0x4c], di
lea eax, [esp + 0x64]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1003e7e0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
cmp ebp, edi
je 0x1003ea71
mov ecx, dword [esp + 0x1c]
mov esi, ecx
sub esi, ebp
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003ea71
xor ebx, ebx
lea esp, [esp]
test ebp, ebp
je 0x1003ea6f
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1003ea6f
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x2b8]
push 0x200
push edx
call fcn.1004042a
push 0x10071858
lea eax, [esp + 0x2c4]
push 0x200
push eax
call fcn.1004042a
mov esi, dword [esp + 0x30]
add esp, 0x18
test esi, esi
je 0x1003e9db
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003e9e4
call fcn.1004041a
mov esi, dword [esp + 0x18]
mov ebp, 8
cmp dword [ebx + esi + 0x18], ebp
jb 0x1003e9f5
mov esi, dword [ebx + esi + 4]
jmp 0x1003e9f9
lea esi, [ebx + esi + 4]
push esi
lea ecx, [esp + 0x2b8]
push 0x200
push ecx
call fcn.1004042a
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x1003ea34
mov ecx, dword [esp + 0x1c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1003ea3d
call fcn.1004041a
mov esi, dword [esp + 0x18]
cmp dword [ebx + esi + 0x18], ebp
jb 0x1003ea49
mov esi, dword [ebx + esi + 4]
jmp 0x1003ea4d
lea esi, [ebx + esi + 4]
lea edx, [esp + 0x2b4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
add edi, 1
add ebx, 0x1c
jmp 0x1003e960
xor edi, edi
mov dword [esp + 0x6dc], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x1003eaa6
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.1003eb80
mov edx, dword [esp + 0x28]
push edx
call fcn.1003ff26
add esp, 0x14
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x6d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6bc]
xor ecx, esp
call fcn.1003f522
add esp, 0x6cc
ret