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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f57c
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 0x1005bbc7
mov cx, word [0x100a02b4]
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.1001a750
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 0x3505b08
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
test eax, eax
je 0x1005bd39
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bc66
sub eax, edx
mov edx, eax
mov eax, 0x3505b08
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bc80
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005bd33
lea ecx, [ebp - 0x5d4]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x4c0]
push 0x10095644
push eax
call ebx
lea ecx, [ebp - 0x268]
push str.lien
push ecx
call edi
add esp, 0x18
test eax, eax
je 0x1005bd33
lea edi, [ebp - 0x268]
mov word [eax + 4], 0x74
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005bcd2
mov dx, word [0x100a02b4]
lea eax, [ebp - 0x5d4]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bcf0
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005bd00
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 0x1005bde7
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1005bde0
nop
lea eax, [ebp - 0x5d4]
push 0x3505b08
push eax
call edi
add esp, 8
test eax, eax
je 0x1005bdca
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bd70
sub eax, edx
mov edx, eax
mov eax, 0x3505b08
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bd83
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005bdc4
lea ecx, [ebp - 0x5d4]
push ecx
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x4c0]
push 0x10095644
push eax
call ebx
lea ecx, [ebp - 0x268]
push str.lien
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x1005be0f
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005bd50
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.10086786
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 0x1005be20
mov ax, word [0x100a02b4]
mov word [edi], ax
lea eax, [ebp - 0x5d4]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005be40
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005be50
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 0x1005bde7