Function at 0x46eabc
Capabilities:
Copy file
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x46eac4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46ef5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
mov ecx, 0x46ef74
mov edx, dword [0x474c94]
call fcn.0040473c
mov eax, dword [ebp - 0x3c]
call fcn.00408a34
test al, al
jne 0x46eb25
push 0x40030
mov ecx, 0x46ef84
mov edx, 0x46ef98
mov eax, dword [0x4738e8]
mov eax, dword [eax]
call fcn.00456880
mov eax, ebx
call fcn.004530bc
jmp 0x46ef33
lea eax, [ebp - 0x40]
mov ecx, 0x46ef74
mov edx, dword [0x474c94]
call fcn.0040473c
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [0x46bbdc]
call fcn.0046bc8c
mov esi, eax
mov dl, 1
mov eax, dword [0x413db0]
call fcn.0040369c
mov dword [ebp - 0x2c], eax
mov dl, 1
mov eax, dword [0x413db0]
call fcn.0040369c
mov dword [ebp - 0x30], eax
mov dl, 1
mov eax, dword [0x413db0]
call fcn.0040369c
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
mov edx, 0x46efbc
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x48]
mov ecx, dword [ebp - 0x30]
mov edx, 0x46efc8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x48]
mov ecx, dword [ebp - 0x34]
mov edx, 0x46efd8
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x48]
mov eax, esi
call fcn.004036cc
mov edx, 0x46efe8
mov eax, dword [ebx + 0x358]
call fcn.00436ed4
mov eax, dword [0x474c98]
call fcn.00402900
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x46ec32
inc eax
mov dword [ebp - 0x38], eax
xor esi, esi
lea ecx, [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 0x2c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, 0x46f008
call fcn.00404a2c
mov edi, eax
inc edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f0
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00404948
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0046e830
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 8]
call fcn.004044d0
mov eax, dword [ebp - 8]
call fcn.0046cdcc
inc esi
dec dword [ebp - 0x38]
jne 0x46ebd7
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
test esi, esi
jne 0x46ec7f
push 0x40030
mov ecx, 0x46ef84
mov edx, 0x46f00c
mov eax, dword [0x4738e8]
mov eax, dword [eax]
call fcn.00456880
mov eax, dword [ebp - 0x2c]
call fcn.004036cc
mov eax, dword [ebp - 0x30]
call fcn.004036cc
mov eax, dword [ebp - 0x34]
call fcn.004036cc
mov eax, ebx
call fcn.004530bc
jmp 0x46ef33
xor edx, edx
mov eax, dword [ebx + 0x34c]
call fcn.0046b8cc
mov edi, esi
dec edi
mov edx, edi
mov eax, dword [ebx + 0x34c]
call fcn.0046b97c
test edi, edi
jl 0x46eea1
inc edi
mov dword [ebp - 0x38], edi
xor esi, esi
mov eax, dword [0x4738e8]
mov eax, dword [eax]
call fcn.00456544
lea ecx, [ebp - 0xc]
mov edx, esi
mov eax, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0xc]
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, 0x46f008
call fcn.00404a2c
mov edi, eax
inc edi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004046f0
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0xc]
call fcn.00404948
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004046f0
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00404948
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0046e830
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0xc]
call fcn.004044d0
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0046e830
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
call fcn.004044d0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x358]
call fcn.00436ed4
push 0
mov eax, dword [ebp - 0x10]
call fcn.004048e8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004048e8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x46ee8a
mov eax, dword [ebp - 0xc]
call fcn.00408a34
test al, al
jne 0x46ede8
push 0x40034
push 0x46f030
push dword [ebp - 0xc]
push 0x46f040
push 0x46f060
push 0x46f06c
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.004047b0
mov eax, dword [ebp - 0x50]
call fcn.004048e8
mov edx, eax
mov ecx, 0x46ef84
mov eax, dword [0x4738e8]
mov eax, dword [eax]
call fcn.00456880
cmp eax, 6
jne 0x46ede8
mov eax, dword [ebp - 0x2c]
call fcn.004036cc
mov eax, dword [ebp - 0x30]
call fcn.004036cc
mov eax, dword [ebp - 0x34]
call fcn.004036cc
mov eax, ebx
call fcn.004530bc
jmp 0x46ef33
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0046e990
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0046e990
fld qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
sahf
jbe 0x46ee8a
push 0x40034
push 0x46f030
push dword [ebp - 0x10]
push 0x46f088
push 0x46f060
push 0x46f06c
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.004047b0
mov eax, dword [ebp - 0x54]
call fcn.004048e8
mov edx, eax
mov ecx, 0x46ef84
mov eax, dword [0x4738e8]
mov eax, dword [eax]
call fcn.00456880
cmp eax, 6
jne 0x46ee8a
mov eax, dword [ebp - 0x2c]
call fcn.004036cc
mov eax, dword [ebp - 0x30]
call fcn.004036cc
mov eax, dword [ebp - 0x34]
call fcn.004036cc
mov eax, ebx
call fcn.004530bc
jmp 0x46ef33
mov edx, esi
mov eax, dword [ebx + 0x34c]
call fcn.0046ba2c
inc esi
dec dword [ebp - 0x38]
jne 0x46ecaa
push 0
push 0x46f0b4
call sub.kernel32.dll_WinExec
push 3
mov eax, dword [0x474c98]
call fcn.004048e8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov dl, 1
mov eax, dword [0x46ce6c]
call fcn.0046cf6c
mov esi, eax
mov edx, 0x80000000
mov eax, esi
call fcn.0046d00c
mov cl, 1
mov edx, 0x46f0d0
mov eax, esi
call fcn.0046d070
test al, al
je 0x46eefd
mov ecx, dword [0x474c98]
mov edx, 0x46f0e0
mov eax, esi
call fcn.0046d22c
mov eax, esi
call fcn.0046cfdc
mov eax, esi
call fcn.004036cc
mov eax, dword [ebp - 0x2c]
call fcn.004036cc
mov eax, dword [ebp - 0x30]
call fcn.004036cc
mov eax, dword [ebp - 0x34]
call fcn.004036cc
mov edx, 0x46f0f0
mov eax, dword [ebx + 0x2f4]
call fcn.00430760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ef62
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.0040445c
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040445c
ret