Function at 0x40cbdc
Capabilities:
Copy file

Disassembly:
mov eax, 0x4a6da0
call fcn.00483228
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
push 0x4e7e70
lea ecx, [ebp - 0x10]
call fcn.0049d946
xor edi, edi
cmp dword [0x4e80e8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
je 0x40cc1c
mov eax, dword [esi + 0x240]
push 1
pop ebx
mov dword [eax + 0x344], ebx
jmp 0x40cc1f
push 1
pop ebx
mov eax, dword [0x4e80f8]
cmp eax, edi
je 0x40ccac
mov eax, dword [esi + 0x240]
mov ecx, 0x4e80c0
mov dword [eax + 0x344], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.0040d729
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0049ddc0
push str._fromfloppy
lea ecx, [ebp - 0x14]
call fcn.00496f08
cmp eax, 0xffffffff
mov eax, dword [esi + 0x240]
je 0x40cc72
mov dword [eax + 0x340], ebx
jmp 0x40cca0
mov dword [eax + 0x340], edi
mov dword [esi + 0x1d0], 0xe014
mov dword [esi + 0x1d4], 0xe015
mov dword [esi + 0x1d8], 0xe016
mov dword [esi + 0x1dc], 0xe017
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
mov eax, dword [0x4e815c]
cmp eax, edi
je 0x40d0e8
cmp dword [0x4e8158], 0
mov edi, 0x4e8330
je 0x40ce04
lea eax, [ebp - 0x10]
mov ecx, 0x4e80c0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00414c9a
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x40ce04
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x28]
push eax
call fcn.00447c52
mov eax, dword [eax]
push 0x4e7e70
push eax
call fcn.00483bf3
mov ebx, eax
add esp, 0x10
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x28]
inc bl
call fcn.0049d8d8
test bl, bl
je 0x40cd38
push str.Setup.log
lea ecx, [ebp - 0x10]
call fcn.0049dc68
jmp 0x40cde8
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x28]
push eax
call fcn.00447c52
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax - 8]
cmp eax, dword [ecx - 8]
lea ecx, [ebp - 0x28]
sete bl
call fcn.0049d8d8
test bl, bl
je 0x40cde8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push 0x4dd718
push eax
call fcn.0049db95
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0049d9c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0049d8d8
push 1
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
push ecx
mov ecx, 0x4e83a0
mov eax, esp
mov dword [ebp - 0x34], esp
push 0
push eax
mov byte [ebp - 4], 3
call fcn.00407bd2
and byte [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00447f34
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0049d9c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0049d8d8
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
mov ecx, edi
call fcn.00455090
push 1
pop ebx
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
jne 0x40ce31
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040d747
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.0049d9c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0049d8d8
cmp dword [0x4e80e8], 0
je 0x40cec5
cmp dword [0x4e8158], 0
jne 0x40cec5
mov eax, dword [esi + 0x240]
push ecx
mov dword [ebp - 0x38], esp
mov dword [eax + 0x36c], ebx
mov ebx, esp
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
push ebx
call fcn.00447289
pop ecx
lea eax, [ebp - 0x14]
pop ecx
push eax
call fcn.004470fc
pop ecx
pop ecx
mov eax, dword [esi + 0x240]
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 4], 7
lea ecx, [eax + 0x370]
call fcn.0049d9c5
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
mov ecx, edi
call fcn.00455090
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.0049d9c5
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
jmp 0x40cf7a
mov eax, dword [esi + 0x240]
lea ebx, [esi + 0x240]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [eax + 0x370]
call fcn.0049d9c5
cmp dword [0x4e8128], 0
jne 0x40cef5
mov ebx, dword [ebx]
mov dword [ebx + 0x36c], 1
push 0
push ecx
mov ebx, esp
mov dword [ebp - 0x38], esp
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
push ebx
call fcn.00447289
pop ecx
pop ecx
call fcn.004466f0
pop ecx
test eax, eax
pop ecx
jne 0x40cf2b
mov dword [esi + 0x230], 1
jmp 0x40cf7f
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
lea eax, [ebp - 0x14]
push eax
call fcn.00447404
add esp, 4
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 6
call fcn.0049d64d
call fcn.00447325
fcomp qword [0x4baac8]
pop ecx
fnstsw ax
sahf
jae 0x40cf73
mov dword [esi + 0x230], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
cmp dword [esi + 0x230], 0
jne 0x40d0f4
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
call fcn.00446e8e
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x40d043
cmp dword [0x4e8128], ebx
jne 0x40d04b
cmp dword [0x4e80e8], ebx
je 0x40cfc7
cmp dword [0x4e8158], ebx
je 0x40d043
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x14], eax
push 0x4dd424
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call fcn.00496f08
cmp eax, 0xffffffff
je 0x40d037
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.00496e43
push str..old
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 9
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0049d9c5
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 8
call fcn.0049d8d8
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0049d8d8
cmp dword [0x4e8128], ebx
je 0x40d055
mov dword [0x4e8398], 1
lea eax, [ebp - 0x34]
push eax
call fcn.0049782e
mov eax, dword [eax]
push str._A___B__d___Y__H:_M:_S
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.00497870
push dword [0x4e815c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
call fcn.0049d64d
mov ecx, edi
call fcn.00454ede
cmp eax, ebx
jne 0x40d0d0
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push str.Could_Not_Open_File:__s
push eax
call fcn.00497249
add esp, 0xc
push ebx
push ebx
push dword [ebp - 0x14]
call fcn.004a1b59
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.0049d8d8
jmp 0x40d0da
mov dword [0x4e8398], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0049d8d8
jmp 0x40d0f4
push 0x63
mov ecx, 0x4e8330
call fcn.00454ed0
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x18], eax
cmp dword [0x4e8148], 0
mov byte [ebp - 4], 0xd
je 0x40d13c
lea eax, [ebp - 0x38]
mov ecx, 0x4e80c0
push eax
call fcn.0040c4c0
lea edi, [esi + 0x1fc]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
push str.project.cswcomp.csw
jmp 0x40d16f
lea eax, [ebp - 0x38]
push 0
push eax
mov ecx, 0x4e83a0
call fcn.0040c4de
lea edi, [esi + 0x1fc]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xf
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
push str.Setupproject.cswSetupcomp.csw
lea ecx, [ebp - 0x18]
call fcn.0049da15
cmp dword [0x4e8138], 0
je 0x40d1b4
push ecx
mov ebx, 0x4e80c0
mov eax, esp
mov dword [ebp - 0x38], esp
push eax
mov ecx, ebx
call fcn.0040d6b1
mov ecx, esi
call fcn.0040d643
push ecx
mov ecx, ebx
mov eax, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040d6cf
mov ecx, esi
call fcn.0040d67a
jmp 0x40d29d
push 0x4dd6a8
lea ecx, [ebp - 0x28]
call fcn.0049d946
push ecx
lea eax, [ebp - 0x28]
mov edi, esp
mov dword [ebp - 0x38], esp
push 1
push ecx
mov ebx, esp
mov dword [ebp - 0x38], esp
push 1
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 0x10
call fcn.0049d64d
push ebx
call fcn.0044d448
add esp, 0xc
lea eax, [esi + 0x1fc]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.0049d64d
push edi
mov byte [ebp - 4], 0x10
call fcn.00447f34
add esp, 0x10
mov ecx, esi
call fcn.0040d643
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
push 0x4dd6a8
lea ecx, [ebp - 0x28]
call fcn.0049d946
push ecx
lea eax, [ebp - 0x28]
mov ebx, esp
mov dword [ebp - 0x38], esp
push 1
push ecx
mov edi, esp
mov dword [ebp - 0x38], esp
push 2
push eax
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x34], esp
push eax
mov byte [ebp - 4], 0x12
call fcn.0049d64d
push edi
call fcn.0044d448
add esp, 0xc
lea edi, [esi + 0x1fc]
mov ecx, esp
mov dword [ebp - 0x34], esp
push edi
mov byte [ebp - 4], 0x13
call fcn.0049d64d
push ebx
mov byte [ebp - 4], 0x12
call fcn.00447f34
add esp, 0x10
mov ecx, esi
call fcn.0040d67a
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
mov ebx, 0x4e80c0
push edi
lea ecx, [ebp - 0x24]
call fcn.0049d64d
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x14
call fcn.0049d64d
push 0
push edi
mov byte [ebp - 4], 0x15
call fcn.00446a1d
pop ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4dd1e4
call fcn.0049d946
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x30], esp
push edi
call fcn.0049d64d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x15
push eax
call fcn.0044cf68
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.0049d8d8
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
lea eax, [ebp - 0x20]
push eax
call fcn.00447404
add esp, 4
mov byte [ebp - 4], 0x17
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
call fcn.00449f55
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 8], 0
je 0x40d35a
mov al, byte [ecx + 1]
xor edx, edx
cmp al, 0x3a
sete dl
test edx, edx
jne 0x40d365
mov cl, byte [ecx]
cmp cl, 0x5c
jne 0x40d356
cmp al, cl
jne 0x40d356
mov eax, dword [0x4e80f4]
test eax, eax
sete dl
test edx, edx
jne 0x40d365
push 1
pop ecx
mov dword [esi + 0x228], ecx
jmp 0x40d368
push 1
pop ecx
cmp dword [ebp - 0x38], ecx
jne 0x40d389
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
call fcn.0040c3fd
push 1
pop ecx
jmp 0x40d38f
mov dword [esi + 0x228], ecx
mov eax, dword [0x4e814c]
test eax, eax
je 0x40d47c
cmp dword [0x4e810c], 0
je 0x40d40b
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040d70b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004481fb
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x19
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x18
call fcn.0049d8d8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x40d3f5
lea eax, [ebp - 0x14]
mov ecx, 0x4e81b8
push eax
call fcn.0049d9c5
jmp 0x40d3ff
mov dword [esi + 0x22c], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.0049d8d8
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040d70b
lea edi, [esi + 0x200]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1a
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call fcn.0049d8d8
push edi
call fcn.0045df29
test eax, eax
pop ecx
je 0x40d458
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
call fcn.004466f0
pop ecx
test eax, eax
pop ecx
jne 0x40d462
mov dword [esi + 0x22c], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
call fcn.00408c17
push 1
pop ecx
cmp dword [0x4e8114], 0
je 0x40d5c2
push ecx
mov ecx, ebx
mov eax, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0040d6ed
lea eax, [ebp - 0x14]
push eax
call fcn.0044cdd9
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x1b
cmp dword [eax - 8], 0
jle 0x40d5b3
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00446a1d
pop ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
call fcn.00449f55
pop ecx
push 1
pop ecx
cmp eax, ecx
je 0x40d577
push str.Error_in_UNC_Path
lea ecx, [ebp - 0x28]
call fcn.0049d946
push dword [0x4e815c]
mov ecx, ebx
mov byte [ebp - 4], 0x1c
push 0x4e8330
call fcn.0040760f
push eax
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
call fcn.0042ec4c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1b
call fcn.0049d8d8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.0049d8d8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x15
call fcn.0049d8d8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.0049d8d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
xor eax, eax
jmp 0x40d634
lea eax, [ebp - 0x14]
mov dword [0x4e814c], ecx
push eax
mov ecx, 0x4e81b8
call fcn.0049d9c5
lea edi, [esi + 0x200]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0049d9c5
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push edi
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
call fcn.00408c17
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.0049d8d8
push 1
pop ecx
mov eax, dword [0x4e8174]
test eax, eax
je 0x40d5e6
mov eax, dword [0x4e8188]
test eax, eax
je 0x40d5ef
push 2
cdq
pop esi
idiv esi
cmp edx, ecx
jne 0x40d5f5
mov dword [0x4e8188], ecx
jmp 0x40d5f5
cmp dword [0x4e8188], 0
jle 0x40d5f5
mov dword [esi + 0x234], ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x15
call fcn.0049d8d8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x14
call fcn.0049d8d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0049d8d8
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret