Function at 0x46ae48
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x7d
push 0
push 0
dec ecx
jne 0x46ae51
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405080
mov eax, dword [ebp - 8]
call fcn.00405080
lea eax, [ebp - 0x178]
mov edx, dword [0x407c30]
call fcn.0040557c
xor eax, eax
push ebp
push 0x46b324
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46b2d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea ecx, [ebp - 0x3bc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046a980
mov edx, dword [ebp - 0x3bc]
lea eax, [ebp - 4]
call fcn.00404c68
lea ecx, [ebp - 0x3c0]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0046a980
mov edx, dword [ebp - 0x3c0]
lea eax, [ebp - 8]
call fcn.00404c68
cmp dword [ebp - 4], 0
jne 0x46aef8
lea ecx, [ebp - 4]
mov edx, 0x46b340
mov eax, ebx
call fcn.0046a618
cmp dword [ebp - 8], 0
jne 0x46af0d
lea ecx, [ebp - 8]
mov edx, 0x46b340
mov eax, ebx
call fcn.0046a618
mov edx, dword [ebp - 8]
mov eax, 0x46b354
call fcn.004051d4
test eax, eax
jne 0x46af52
lea edx, [ebp - 0x3c8]
mov eax, dword [0x4709c0]
mov eax, dword [eax]
call fcn.00455bdc
mov eax, dword [ebp - 0x3c8]
lea edx, [ebp - 0x3c4]
call fcn.00409318
mov edx, dword [ebp - 0x3c4]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00404edc
mov edx, dword [ebp - 4]
mov eax, 0x46b354
call fcn.004051d4
test eax, eax
jne 0x46af97
lea edx, [ebp - 0x3d0]
mov eax, dword [0x4709c0]
mov eax, dword [eax]
call fcn.00455bdc
mov eax, dword [ebp - 0x3d0]
lea edx, [ebp - 0x3cc]
call fcn.00409318
mov edx, dword [ebp - 0x3cc]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.00404edc
mov eax, dword [ebp - 4]
call fcn.00409158
test al, al
jne 0x46afbc
mov eax, dword [ebp - 4]
call fcn.00409168
test al, al
jne 0x46afbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b2db
mov eax, dword [ebp - 4]
call fcn.00409158
test al, al
je 0x46b0c6
mov eax, dword [ebp - 8]
call fcn.00404e90
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
jne 0x46affa
lea edx, [ebp - 0x3d4]
mov eax, dword [ebp - 4]
call fcn.004093e0
mov edx, dword [ebp - 0x3d4]
lea eax, [ebp - 8]
call fcn.00404e98
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00404c68
lea eax, [ebp - 0x18]
call fcn.00404bd0
jmp 0x46b08a
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x46b360
call fcn.004051d4
mov ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004050f0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00404e98
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x46b360
call fcn.004051d4
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404e90
pop edx
sub eax, edx
push eax
mov edx, dword [ebp - 0x14]
mov eax, 0x46b360
call fcn.004051d4
mov edx, eax
inc edx
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.004050f0
mov eax, dword [ebp - 0x18]
call fcn.00409168
test al, al
jne 0x46b08a
mov eax, dword [ebp - 0x18]
call fcn.00402d50
call fcn.00402c0c
mov edx, dword [ebp - 0x14]
mov eax, 0x46b360
call fcn.004051d4
test eax, eax
jg 0x46b00f
push 0
mov eax, dword [ebp - 8]
call fcn.00405090
push eax
mov eax, dword [ebp - 4]
call fcn.00405090
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
jmp 0x46b2c7
lea eax, [ebp - 0x3d8]
call fcn.0040951c
mov edx, dword [ebp - 0x3d8]
lea eax, [ebp - 0x278]
mov ecx, 0xff
call fcn.00404e6c
mov eax, dword [ebp - 4]
call fcn.00402c48
call fcn.00402c0c
mov byte [ebp - 9], 1
lea eax, [ebp - 0x3b8]
push eax
push 0x46b364
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
mov dword [ebp - 0x164], esi
cmp esi, 0xffffffff
je 0x46b277
mov eax, dword [ebp - 8]
call fcn.00409168
test al, al
jne 0x46b12e
mov eax, dword [ebp - 8]
call fcn.0040918c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x38c]
mov ecx, 0x104
call fcn.00404e40
mov eax, dword [ebp - 0x20]
mov edx, 0x46b370
call fcn.00404fdc
je 0x46b249
mov eax, dword [ebp - 0x20]
mov edx, 0x46b37c
call fcn.00404fdc
je 0x46b249
cmp dword [ebp - 0x3b8], 0x10
jne 0x46b218
push dword [ebp - 8]
push 0x46b360
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404f50
mov eax, dword [ebp - 0x1c]
call fcn.00409168
test al, al
jne 0x46b1a0
mov eax, dword [ebp - 0x1c]
call fcn.0040918c
mov eax, dword [ebp - 4]
call fcn.00404e90
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x46b1df
push dword [ebp - 4]
push 0x46b360
push dword [ebp - 0x20]
lea eax, [ebp - 0x3dc]
mov edx, 3
call fcn.00404f50
mov edx, dword [ebp - 0x3dc]
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.0046ae48
jmp 0x46b249
lea eax, [ebp - 0x3e0]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404edc
mov eax, dword [ebp - 0x3e0]
push eax
lea eax, [ebp - 0x3e4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404edc
mov edx, dword [ebp - 0x3e4]
mov eax, ebx
pop ecx
call fcn.0046ae48
jmp 0x46b249
push dword [ebp - 8]
push 0x46b360
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404f50
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00405090
push eax
mov eax, dword [ebp - 0x20]
call fcn.00405090
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x3b8]
push eax
mov eax, dword [ebp - 0x164]
push eax
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46b12e
lea eax, [ebp - 0x178]
call fcn.00409274
jmp 0x46b2a6
lea eax, [ebp - 0x3e8]
lea edx, [ebp - 0x278]
call fcn.00404e34
mov eax, dword [ebp - 0x3e8]
call fcn.00402c48
call fcn.00402c0c
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b2db
lea eax, [ebp - 0x3ec]
lea edx, [ebp - 0x278]
call fcn.00404e34
mov eax, dword [ebp - 0x3ec]
call fcn.00402c48
call fcn.00402c0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46b2db
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b32b
lea eax, [ebp - 0x3ec]
mov edx, 0xd
call fcn.00404bf4
lea eax, [ebp - 0x178]
mov edx, dword [0x407c30]
call fcn.0040564c
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404bf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404bf4
ret