Function at 0x412710
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x536f14
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x38], 0
lea eax, [esp + 0x198]
mov edi, 1
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x190], edi
call fcn.0050d172
mov ecx, dword [esp + 0x19c]
mov dword [ecx], 0
mov eax, dword [0x591288]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x1a4]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x19c], 4
call fcn.0050d172
mov ecx, esi
call fcn.00412090
test eax, eax
jne 0x4127bd
mov esi, dword [esp + 0x194]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.0050d172
mov dword [esp + 0x38], edi
jmp 0x412cae
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00412670
push str..torrent
lea edx, [esp + 0x38]
push eax
push edx
mov byte [esp + 0x198], 5
call fcn.0050d692
lea ecx, [esp + 0x40]
mov byte [esp + 0x18c], 7
call fcn.0050d3fd
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, eax
cmp edi, 0xffffffff
je 0x412952
mov bl, 0xa
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.00412670
lea ecx, [esp + 0x70]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0x198], 8
call fcn.0050d692
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
mov eax, dword [0x591288]
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
push ecx
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x19c], 0xc
call fcn.0050d172
mov ecx, esi
call fcn.00412090
test eax, eax
je 0x4128a7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.004eea90
add esp, 8
test eax, eax
je 0x4128ee
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 0xb
call fcn.0050d3fd
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 7
call fcn.0050d3fd
lea edx, [esp + 0x44]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41294f
jmp 0x412822
mov eax, dword [esp + 0x19c]
push edi
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x194]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0050d172
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 1
mov byte [esp + 0x18c], 0xb
call fcn.0050d3fd
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
mov byte [esp + 0x18c], 7
lea ecx, [esp + 0x30]
jmp 0x412c98
push edi
call ebp
push 1
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00505606
lea edx, [esp + 0x24]
push 1
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 0xd
call fcn.00505bc9
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call fcn.0050d3fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], 7
call fcn.0050d3fd
test bl, bl
je 0x4129e4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00505c45
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 0xe
call fcn.0050d536
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], 7
call fcn.0050d3fd
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00412670
lea edx, [esp + 0x18]
mov byte [esp + 0x18c], 0xf
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0050d62c
mov bl, 0x11
lea ecx, [esp + 0x24]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
lea ecx, [esp + 0x14]
push 0x588754
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.0050d692
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 0x12
call fcn.0050d536
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
mov edi, 1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412b62
push eax
call ebp
lea edx, [esp + 0x28]
mov ecx, esi
push edx
call fcn.00412670
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0x198], 0x13
call fcn.0050d62c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 0x14
call fcn.0050d536
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 0x13
call fcn.0050d3fd
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
mov eax, dword [0x591288]
mov dword [esp + 0x10], eax
push edi
lea ecx, [esp + 0x14]
push str.__d_
push ecx
mov byte [esp + 0x198], 0x15
call fcn.005060bb
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push edx
push eax
push ecx
inc edi
call fcn.0050d62c
push 0x588754
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x198], 0x16
call fcn.0050d692
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 0x17
call fcn.0050d536
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18c], 0x16
call fcn.0050d3fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x18c], 0x15
call fcn.0050d3fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
jmp 0x412a55
push ecx
mov ecx, esi
mov eax, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00412670
call fcn.0043e320
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x19c]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 4
mov ebp, 1
push ebp
push ecx
push edx
call edi
test eax, eax
je 0x412ba2
lea eax, [esp + 0x14]
push eax
jmp 0x412c7a
push 0x5c
push ecx
lea edx, [esp + 0x1a0]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.0050d172
lea eax, [esp + 0x18]
push eax
call fcn.0042ec10
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18c], 0x18
push ecx
mov ecx, esi
call fcn.00412670
lea edx, [esp + 0x10]
mov byte [esp + 0x18c], 0x19
push edx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0050d62c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 0x1a
call fcn.0050d536
lea ecx, [esp + 0x20]
mov byte [esp + 0x18c], 0x19
call fcn.0050d3fd
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18c], 0x18
call fcn.0050d3fd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x198]
push ebp
push ecx
push edx
call edi
test eax, eax
je 0x412c62
mov esi, dword [esp + 0x194]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0050d172
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], ebp
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
jmp 0x412c8c
lea ecx, [esp + 0x10]
mov byte [esp + 0x18c], bl
call fcn.0050d3fd
lea ecx, [esp + 0x198]
push ecx
mov esi, dword [esp + 0x198]
mov ecx, esi
call fcn.0050d172
mov dword [esp + 0x38], ebp
mov byte [esp + 0x18c], 7
lea ecx, [esp + 0x14]
call fcn.0050d3fd
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], 4
call fcn.0050d3fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 3
call fcn.0050d3fd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18c], 2
call fcn.0050d3fd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x18c], 1
call fcn.0050d3fd
lea ecx, [esp + 0x198]
mov byte [esp + 0x18c], 0
call fcn.0050d3fd
mov ecx, dword [esp + 0x184]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret 0xc