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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008eb2c
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 0x1005b427
mov cx, word [0x100a024c]
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.1001a330
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 0x33cbd50
push eax
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
test eax, eax
je 0x1005b599
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b4c6
sub eax, edx
mov edx, eax
mov eax, 0x33cbd50
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b4e0
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005b593
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 str.lien
push ecx
call edi
add esp, 0x18
test eax, eax
je 0x1005b593
lea edi, [ebp - 0x268]
mov word [eax + 4], 0x74
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005b532
mov dx, word [0x100a024c]
lea eax, [ebp - 0x5d4]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b550
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005b560
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 0x1005b647
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1005b640
nop
lea eax, [ebp - 0x5d4]
push 0x33cbd50
push eax
call edi
add esp, 8
test eax, eax
je 0x1005b62a
lea eax, [ebp - 0x5d4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b5d0
sub eax, edx
mov edx, eax
mov eax, 0x33cbd50
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b5e3
sub eax, esi
add edx, 0xfffffffa
cmp edx, eax
jne 0x1005b624
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 str.lien
push ecx
call edi
add esp, 0x18
test eax, eax
jne 0x1005b66f
mov esi, dword [ebp - 0x608]
lea edx, [ebp - 0x600]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005b5b0
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.10085dc6
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 0x1005b680
mov ax, word [0x100a024c]
mov word [edi], ax
lea eax, [ebp - 0x5d4]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005b6a0
lea edi, [ebp - 0x268]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005b6b0
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 0x1005b647