Function at 0x402dc0
Capabilities:
Copy file
Get file attributes
Get number of processors
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41ec98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x428fc0]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
push edi
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.004194ef
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push edi
call fcn.00419177
mov ecx, ebx
call fcn.00403500
push ecx
test eax, eax
mov ecx, esp
je 0x402e2b
mov dword [esp + 0x34], esp
push edi
call fcn.00419177
call fcn.004052e7
jmp 0x402e3a
mov dword [esp + 0x34], esp
push edi
call fcn.00419177
call fcn.00404530
add esp, 4
cmp eax, 0x10
jl 0x402f5b
cmp eax, 0x17
jg 0x402f5b
mov eax, dword [ebx + 0x7c]
test eax, eax
jne 0x402f8d
lea ebp, [ebx + 0x60]
push ebp
call fcn.00403740
add esp, 4
test eax, eax
jne 0x402e73
push 0x5c
mov ecx, ebp
call fcn.00419792
push 0x5c
mov ecx, edi
call fcn.0041465c
test eax, eax
je 0x402ecc
mov ecx, dword [edi]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
mov ecx, edi
call fcn.0041453d
push eax
lea eax, [esp + 0x34]
push ebp
push eax
mov byte [esp + 0x30], 1
call fcn.004195e5
push eax
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.004194ef
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.00419402
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
jmp 0x402eee
push edi
lea ecx, [esp + 0x34]
push ebp
push ecx
call fcn.004195e5
push eax
mov ecx, esi
mov byte [esp + 0x28], 3
call fcn.004194ef
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x30]
call fcn.00419402
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call fcn.00419177
mov ecx, ebx
call fcn.00403140
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x402f1b
mov eax, dword [esi]
push 0x80
push eax
call ebp
mov eax, dword [esi]
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402f83
mov edx, dword [esi]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x72
push ecx
call fcn.004149bf
add esp, 0x10
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.0041980e
mov edx, dword [esp + 0x10]
push 0
push 0
push edx
call fcn.0041c86b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00419402
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 8
mov eax, dword [esi]
push 0x80
push eax
call ebp
lea eax, [esp + 0x2c]
push 0x4270f8
push eax
lea ecx, [ebx + 0x64]
call fcn.00414631
mov eax, dword [esi]
mov byte [esp + 0x24], 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402ff2
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push ecx
push 0x83
push edx
call fcn.004149bf
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.0041980e
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
call fcn.0041c86b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 0
call fcn.00419402
jmp 0x402f5b
lea ecx, [esp + 0x30]
push 4
push ecx
mov ecx, esi
call fcn.0041453d
mov eax, dword [eax]
push str..DWG
push eax
call fcn.00407679
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
sete bl
call fcn.00419402
push ecx
test bl, bl
mov ecx, esp
je 0x403051
lea edx, [esp + 0x30]
mov dword [esp + 0x18], esp
push edx
call fcn.00419177
push ecx
mov byte [esp + 0x2c], 5
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call fcn.00419177
mov byte [esp + 0x2c], 4
call fcn.00405045
jmp 0x40307b
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], esp
push eax
call fcn.00419177
push ecx
mov byte [esp + 0x2c], 6
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00419177
mov byte [esp + 0x2c], 4
call fcn.00403865
add esp, 8
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x24], 0
call fcn.00419402
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.00419402
mov eax, esi
jmp 0x402f6e