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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f5dc
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 0x1005bc47
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.1001a6e0
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 0x34d28e8
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
test eax, eax
je 0x1005bdb9
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bce6
sub eax, edx
mov edx, eax
mov eax, 0x34d28e8
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bd00
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005bdb3
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 0x1005bdb3
lea edi, [ebp - 0x268]
mov word [eax + 4], 0x74
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005bd52
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 0x1005bd70
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005bd80
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 0x1005be67
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1005be60
nop
lea eax, [ebp - 0x5d4]
push 0x34d28e8
push eax
call edi
add esp, 8
test eax, eax
je 0x1005be4a
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bdf0
sub eax, edx
mov edx, eax
mov eax, 0x34d28e8
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005be03
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005be44
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 0x1005be8f
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005bdd0
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.100867e6
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 0x1005bea0
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 0x1005bec0
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005bed0
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 0x1005be67