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

Disassembly:
push 0xffffffffffffffff
push 0x1005aef1
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x1007d930]
xor eax, esp
mov dword [esp + 0x6bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007d930]
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 0x10071528
lea ecx, [esp + 0x4c0]
push 0x109
push ecx
call fcn.10040df4
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 0x1003e41d
mov esi, 7
mov ebx, 2
jmp 0x1003e2d0
test byte [esp + 0x64], 0x10
jne 0x1003e402
lea ecx, [esp + 0x90]
push str.LinError.txt
push ecx
call fcn.10040c65
add esp, 8
test eax, eax
je 0x1003e374
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 0x1003e310
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.1003ef10
mov byte [esp + 0x6dc], 0
cmp dword [esp + 0x44], 8
jb 0x1003e362
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1003fa16
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov word [esp + 0x30], di
jmp 0x1003e402
lea edx, [esp + 0x90]
push str.ExtError.txt
push edx
call fcn.10040c65
add esp, 8
test eax, eax
je 0x1003e402
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 0x1003e3a4
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.1003ef10
mov byte [esp + 0x6dc], 0
cmp dword [esp + 0x60], 8
jb 0x1003e3f5
mov edx, dword [esp + 0x4c]
push edx
call fcn.1003fa16
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 0x1003e2d0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
cmp ebp, edi
je 0x1003e561
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 0x1003e561
xor ebx, ebx
lea esp, [esp]
test ebp, ebp
je 0x1003e55f
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 0x1003e55f
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x2b8]
push 0x200
push edx
call fcn.1003ff1a
push 0x10071568
lea eax, [esp + 0x2c4]
push 0x200
push eax
call fcn.1003ff1a
mov esi, dword [esp + 0x30]
add esp, 0x18
test esi, esi
je 0x1003e4cb
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 0x1003e4d4
call fcn.1003ff0a
mov esi, dword [esp + 0x18]
mov ebp, 8
cmp dword [ebx + esi + 0x18], ebp
jb 0x1003e4e5
mov esi, dword [ebx + esi + 4]
jmp 0x1003e4e9
lea esi, [ebx + esi + 4]
push esi
lea ecx, [esp + 0x2b8]
push 0x200
push ecx
call fcn.1003ff1a
mov esi, dword [esp + 0x24]
add esp, 0xc
test esi, esi
je 0x1003e524
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 0x1003e52d
call fcn.1003ff0a
mov esi, dword [esp + 0x18]
cmp dword [ebx + esi + 0x18], ebp
jb 0x1003e539
mov esi, dword [ebx + esi + 4]
jmp 0x1003e53d
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 0x1003e450
xor edi, edi
mov dword [esp + 0x6dc], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x1003e596
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.1003e670
mov edx, dword [esp + 0x28]
push edx
call fcn.1003fa16
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.1003f012
add esp, 0x6cc
ret