Function at 0x40f3d9
Capabilities:
Copy file

Disassembly:
mov eax, 0x4a7298
call fcn.00483228
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, dword [esi + 0x240]
cmp dword [ecx + 0x3c4], edi
je 0x40fafe
cmp dword [0x4e8180], edi
jne 0x40fafe
mov ebx, 0x4e80c0
push 3
mov ecx, ebx
call fcn.00414d79
test eax, eax
je 0x40f59f
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
mov byte [ebp - 4], 1
call fcn.0040d729
mov edi, str.batch
lea ecx, [ebp - 0x30]
push edi
mov byte [ebp - 4], 2
call fcn.0049d946
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044ca2c
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.0049d9c5
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.0049d8d8
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0049d8d8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0049d8d8
push edi
lea ecx, [ebp - 0x30]
call fcn.0049d946
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0044cba3
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 6
call fcn.0049d8d8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0049d8d8
mov eax, dword [0x4e8188]
cmp eax, 8
mov eax, 0x4dd814
je 0x40f502
mov eax, 0x4e7e70
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.0049d946
push ecx
mov byte [ebp - 4], 8
mov ecx, esp
mov dword [ebp - 0x3c], esp
push 0x4dda04
call fcn.0049d946
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
mov byte [ebp - 4], 9
call fcn.0049d64d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.0044d02b
add esp, 0x14
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.0049d8d8
push ecx
lea ecx, [ebp - 0x18]
mov eax, esp
mov dword [ebp - 0x40], esp
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0049dabb
mov ecx, ebx
call fcn.0040fb40
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0049d8d8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0049d8d8
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.0044c93a
pop ecx
pop ecx
push 1
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
mov dword [ebp - 4], 0xb
call fcn.0049d64d
push ecx
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.SetupStage
call fcn.0049d946
push ecx
mov byte [ebp - 4], 0xd
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Product
call fcn.0049d946
mov ecx, dword [esi + 0x240]
mov edi, 0x218
add ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00451f51
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x4dda00
call fcn.0049d946
push ecx
mov byte [ebp - 4], 0xe
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.SETUPOPTION
call fcn.0049d946
push ecx
mov byte [ebp - 4], 0xf
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.Product
call fcn.0049d946
mov ecx, dword [esi + 0x240]
mov byte [ebp - 4], 0xb
add ecx, edi
call fcn.00451f51
push ecx
lea eax, [esi + 0x20c]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
add ecx, edi
call fcn.00451e7a
mov ecx, dword [esi + 0x240]
lea eax, [ebp - 0x28]
push eax
call fcn.00407a9e
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x14], eax
push 0x842
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.0049de81
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x4dd948
call fcn.0049d946
push ecx
mov ecx, dword [esi + 0x240]
mov eax, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0x12
call fcn.00406c36
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
push eax
call fcn.00447f34
add esp, 0x10
push 0x4dd1e4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.0049d946
push 1
push ecx
lea ecx, [ebp - 0x30]
mov eax, esp
mov dword [ebp - 0x40], esp
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x14
push ecx
push eax
call fcn.0044cc8b
add esp, 8
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0x15
call fcn.0049d64d
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x14
push eax
call fcn.00447f34
add esp, 0x10
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x14
call fcn.0049d8d8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.0049d8d8
push 1
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.0049d64d
push ecx
mov ecx, 0x4e83a0
mov eax, esp
mov dword [ebp - 0x3c], esp
push 0
push eax
mov byte [ebp - 4], 0x17
call fcn.00407bd2
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x13
push eax
call fcn.00447f34
add esp, 0x10
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x14]
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call fcn.0049d8d8
push 0x4e7e70
lea ecx, [ebp - 0x10]
call fcn.0049d946
push 0
mov byte [ebp - 4], 0x19
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40f868
lea eax, [ebp - 0x14]
mov edi, 0x4dd85c
push eax
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.0049db95
push edi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1b
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1a
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
call fcn.0049d8d8
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00448085
pop ecx
lea eax, [ebp - 0x30]
push eax
call fcn.00447289
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x34]
push str.__setup_
push eax
mov byte [ebp - 4], 0x1c
call fcn.0049db95
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0049db21
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1e
call fcn.0049dca4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1d
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1c
call fcn.0049d8d8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x30]
jmp 0x40f8c1
lea eax, [ebp - 0x30]
push eax
call fcn.00448085
pop ecx
push eax
mov edi, 0x4dd85c
lea eax, [ebp - 0x34]
push edi
push eax
mov byte [ebp - 4], 0x1f
call fcn.0049db95
push edi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x20
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x21
call fcn.0049d9c5
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x20
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1f
call fcn.0049d8d8
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x30]
call fcn.0049d8d8
cmp dword [0x4e8118], 0
jne 0x40f918
lea eax, [esi + 0x20c]
push eax
lea eax, [ebp - 0x34]
push str.__rspfile_
push eax
call fcn.0049db95
push edi
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x22
push eax
call fcn.0049db21
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x23
call fcn.0049dca4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x22
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
call fcn.0049d8d8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0040d729
push eax
lea eax, [ebp - 0x38]
push str.__g__close
push eax
mov byte [ebp - 4], 0x24
call fcn.0049db95
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x25
call fcn.0049dca4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x24
call fcn.0049d8d8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x19
call fcn.0049d8d8
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.0049d64d
push ecx
lea eax, [ebp - 0x28]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0x26
call fcn.0049d64d
mov byte [ebp - 4], 0x19
call fcn.0045e5d9
mov eax, dword [0x4e8110]
pop ecx
test eax, eax
pop ecx
mov edi, 0xe000
je 0x40f9c2
push 1
mov ecx, ebx
call fcn.00414d79
test eax, eax
jne 0x40f9c2
push dword [0x4e815c]
mov ecx, dword [esi + 0x240]
push 0x4e8330
push 1
push 0xa5e
call fcn.0042ebed
jmp 0x40fa0f
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
push 0xa5e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x28
call fcn.0049de81
push edi
lea ecx, [ebp - 0x24]
call fcn.0049de81
mov ecx, dword [esi + 0x1c]
push 0x30
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.0049bcf1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x27
call fcn.0049d8d8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x19
call fcn.0049d8d8
push 0
call fcn.0045def5
test eax, eax
pop ecx
jne 0x40fabd
mov eax, dword [0x4e43a4]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push 0x4dd590
push eax
call fcn.00497249
mov eax, dword [0x4e43a4]
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2b
call fcn.0049de81
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
push 0xaf8
push eax
call fcn.004a18ba
push dword [0x4e815c]
mov ecx, ebx
push 0x4e8330
call fcn.0040760f
push eax
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call fcn.0049d64d
mov ecx, dword [esi + 0x240]
call fcn.0042ec4c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2a
call fcn.0049d8d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x29
call fcn.0049d8d8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x19
call fcn.0049d8d8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x13
call fcn.0049d8d8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x11
call fcn.0049d8d8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x10
call fcn.0049d8d8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.0049d8d8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0049d8d8
push 1
pop eax
jmp 0x40fb31
lea eax, [ebp - 0x34]
push eax
call fcn.00407a9e
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
mov dword [ebp - 4], 0x2c
call fcn.0049d64d
call fcn.0045e666
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x34]
call fcn.0049d8d8
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret