Function at 0x1005bbc0
Capabilities:
Copy file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f53c
mov eax, dword fs:[0]
push eax
sub esp, 0x600
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x268]
push eax
push 0xc8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp - 0x268]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005bc07
mov cx, word [0x100a0264]
lea edx, [ebp - 0x268]
mov word [edi], cx
push edx
lea ecx, [ebp - 0x604]
call dword [sym.imp.mfc100.dll_Ordinal_310]
push str..scs
lea eax, [ebp - 0x604]
push eax
lea ecx, [ebp - 0x60c]
push ecx
mov dword [ebp - 4], 0
call fcn.1001a630
add esp, 0xc
lea edx, [ebp - 0x600]
push edx
mov ecx, eax
call dword [sym.imp.mfc100.dll_Ordinal_1448]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
lea ecx, [ebp - 0x60c]
mov dword [ebp - 0x608], esi
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov edi, dword [sym.imp.MSVCR100.dll_strstr]
lea eax, [ebp - 0x5d4]
push 0x33ccf58
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
test eax, eax
je 0x1005bd79
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bca6
sub eax, edx
mov edx, eax
mov eax, 0x33ccf58
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bcc0
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005bd73
lea ecx, [ebp - 0x5d4]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x4c0]
push 0x1009561c
push eax
call ebx
lea ecx, [ebp - 0x268]
push 0x100a0254
push ecx
call edi
add esp, 0x18
test eax, eax
je 0x1005bd73
lea edi, [ebp - 0x268]
mov word [eax + 4], 0x74
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005bd12
mov dx, word [0x100a0264]
lea eax, [ebp - 0x5d4]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bd30
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005bd40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
lea eax, [ebp - 0x268]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x4c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x1005be27
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1005be20
nop
lea eax, [ebp - 0x5d4]
push 0x33ccf58
push eax
call edi
add esp, 8
test eax, eax
je 0x1005be0a
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bdb0
sub eax, edx
mov edx, eax
mov eax, 0x33ccf58
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bdc3
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005be04
lea ecx, [ebp - 0x5d4]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x4c0]
push 0x1009561c
push eax
call ebx
lea ecx, [ebp - 0x268]
push 0x100a0254
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x1005be4f
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005bd90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x604]
call dword [sym.imp.mfc100.dll_Ordinal_901]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10086746
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x268]
mov word [eax + 4], 0x74
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005be60
mov ax, word [0x100a0264]
mov word [edi], ax
lea eax, [ebp - 0x5d4]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005be80
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005be90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x4c0]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x1005be27