Function at 0x410200
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a66d
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410248
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x150], eax
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x150]
push 0x599e94
push eax
call fcn.00403300
mov edi, dword [ebp - 0x150]
add esp, 8
lea ebx, [edi - 0x10]
mov dword [ebp - 0x14c], esp
mov esi, esp
push ebx
mov dword [ebp - 0x14c], ebx
call fcn.00402d80
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00414d60
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
test edx, edx
jl 0x410bcb
jg 0x4102de
cmp eax, 0x3d1648
jbe 0x410bcb
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.SetupBox.exe
call fcn.00401f10
lea ecx, [ebp - 0x134]
push ecx
call fcn.00411a60
add esp, 4
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.Install.zip
call fcn.00401f10
lea edx, [ebp - 0x128]
push edx
call fcn.00411a60
add esp, 4
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.SInst.exe
call fcn.00401f10
lea eax, [ebp - 0x138]
push eax
call fcn.00411a60
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x138]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x164]
call fcn.00432fa7
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00432fa7
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
call fcn.00432fa7
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 6
call fcn.00426111
mov esi, vtable.CFileException.0
mov dword [ebp - 0x1a0], esi
call fcn.004261e2
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4103bd
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x190], eax
lea ecx, [ebp - 0x190]
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x194], 0xffffffff
call fcn.00402df0
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 8
call fcn.00426111
mov dword [ebp - 0x178], esi
call fcn.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410419
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], 0xffffffff
call fcn.00402df0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xa
call fcn.00426111
mov dword [ebp - 0x18c], esi
call fcn.004261e2
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410475
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x17c], eax
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x180], 0xffffffff
call fcn.00402df0
lea ecx, [ebp - 0x1a0]
push ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x138]
push 0x40
push edx
lea ecx, [ebp - 0x164]
call fcn.0043342f
test eax, eax
jne 0x4104de
push 0x10
push 0x599f2c
push 0x599f34
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00523f57
mov eax, dword [ebp - 0x134]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov edx, dword [ebp - 0x134]
lea ecx, [ebp - 0x178]
push ecx
push 0x1001
push edx
lea ecx, [ebp - 0x1b4]
call fcn.0043342f
test eax, eax
jne 0x410533
lea ecx, [ebp - 0x164]
call fcn.00432f42
push 0x10
push 0x599f2c
push 0x599f5c
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00523f57
mov eax, dword [ebp - 0x128]
push eax
call esi
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x18c]
push ecx
push 0x1001
push edx
lea ecx, [ebp - 0x1c8]
call fcn.0043342f
test eax, eax
jne 0x410571
lea ecx, [ebp - 0x164]
call fcn.00432f42
lea ecx, [ebp - 0x1b4]
jmp 0x410515
push ebx
call fcn.00402d80
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x124], esi
xor edi, edi
mov byte [ebp - 4], 0xd
cmp dword [esi - 0xc], edi
jl 0x4107d3
push 0x599f94
push esi
call fcn.00522301
add esp, 8
cmp eax, edi
je 0x4107d3
sub eax, esi
cmp eax, 0xffffffff
je 0x4107d3
cmp dword [esi - 0xc], edi
jge 0x4105bd
or eax, 0xffffffff
jmp 0x4105d6
push 0x599f94
push esi
call fcn.00522301
add esp, 8
cmp eax, edi
jne 0x4105d4
or eax, 0xffffffff
jmp 0x4105d6
sub eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x124]
call fcn.004013a0
push 0x599330
push str..exe
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xe
call fcn.0040e6d0
push 0x599330
push str..EXE
lea ecx, [ebp - 0x11c]
call fcn.0040e6d0
mov esi, dword [ebp - 0x11c]
cmp dword [esi - 0xc], edi
jl 0x4106a6
push str._DisableStartup
push esi
call fcn.00522301
add esp, 8
cmp eax, edi
je 0x410664
sub eax, esi
cmp eax, 0xffffffff
je 0x410664
push 0x599330
push str._DisableStartup
lea ecx, [ebp - 0x11c]
mov dword [0x5ca04c], 1
call fcn.0040e6d0
mov esi, dword [ebp - 0x11c]
cmp dword [esi - 0xc], edi
jl 0x4106a6
push 0x599fb8
push esi
call fcn.00522301
add esp, 8
cmp eax, edi
je 0x4106a6
sub eax, esi
cmp eax, 0xffffffff
je 0x4106a6
push str._Hide
mov ecx, 0x5ca198
call fcn.00402f30
push 0x599330
push 0x599fb8
lea ecx, [ebp - 0x11c]
call fcn.0040e6d0
push 0x599330
push 0x599f94
lea ecx, [ebp - 0x11c]
call fcn.0040e6d0
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx - 0xc], edi
jle 0x4107c4
lea edx, [ebp - 0x11c]
push edx
mov ecx, 0x5ca19c
call fcn.00402c10
mov dword [0x5ca048], 1
mov dword [ebp - method.RegAccess.virtual_0], vtable.RegAccess.0
mov dword [ebp - 0x12c], edi
lea eax, [ebp - 0x120]
push eax
push 0xf003f
push edi
mov byte [ebp - 4], 0xf
push str.Software
mov dword [ebp - 0x120], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push SysReAllocString
call edi
test eax, eax
jne 0x41072e
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x12c], ecx
lea esi, [ebp - 0x130]
call fcn.0040fdc0
call fcn.0040fda0
lea edx, [ebp - 0x120]
push edx
push 0x20006
push 0
push str.SoftwareSetupBox
push SysReAllocString
mov dword [ebp - 0x120], 0
call edi
test eax, eax
jne 0x410783
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x410777
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x5ca19c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x13c], esp
mov esi, esp
push eax
mov edi, 0x599fe8
call fcn.00402d80
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x130]
mov dword [esi], eax
call fcn.0040fed0
lea esi, [ebp - 0x130]
call fcn.0040fda0
mov ecx, esi
call fcn.0040fd80
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xd
call fcn.00403080
push 0x1a0
call fcn.00423988
add esp, 4
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x4107f8
push eax
call fcn.00422470
mov ebx, eax
jmp 0x4107fa
xor ebx, ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [0x5ca198]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x41082a
push 0x599fec
push ecx
call fcn.00522301
add esp, 8
test eax, eax
je 0x41082a
mov edi, dword [0x5ca198]
sub eax, edi
cmp eax, 0xffffffff
jne 0x410863
mov edx, dword [ebx]
mov eax, dword [edx + 0x160]
push 0
push 0x68
mov ecx, ebx
call eax
push 1
mov ecx, ebx
call fcn.0043102b
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push 0x599ff0
call fcn.00401f10
mov esi, ebx
call fcn.00422610
mov edi, dword [0x5ca198]
push 0x3d1648
call fcn.00521efc
mov esi, eax
add esp, 4
test esi, esi
jne 0x4108b3
cmp dword [edi - 0xc], eax
jl 0x410898
push 0x599fec
push edi
call fcn.00522301
add esp, 8
test eax, eax
je 0x410898
sub eax, dword [0x5ca198]
cmp eax, 0xffffffff
jne 0x4108ac
push 0x10
push 0x599f2c
push 0x59a008
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
jmp 0x41052e
push 0
push 0
push 0
lea ecx, [ebp - 0x164]
call fcn.00432d2b
push 0x3d1648
push esi
lea ecx, [ebp - 0x164]
call fcn.00432c9c
push 0x3d1648
push esi
lea ecx, [ebp - 0x1b4]
call fcn.00432cde
push esi
call fcn.00521f90
add esp, 4
push 0xa00000
call fcn.00521efc
mov edi, eax
add esp, 4
test edi, edi
je 0x4109e1
cmp dword [ebp - 0x144], 0
mov eax, 0x3d1648
mov esi, eax
jl 0x41096f
jg 0x410920
cmp dword [ebp - 0x148], eax
jbe 0x41096f
xor edx, edx
push 0
push edx
push eax
lea ecx, [ebp - 0x164]
call fcn.00432d2b
push 0xa00000
push edi
lea ecx, [ebp - 0x164]
call fcn.00432c9c
push eax
push edi
lea ecx, [ebp - 0x1c8]
call fcn.00432cde
call fcn.00414380
add esi, 0xa00000
mov eax, esi
cdq
cmp edx, dword [ebp - 0x144]
jl 0x410922
jg 0x41096f
cmp eax, dword [ebp - 0x148]
jb 0x410922
push edi
call fcn.00521f90
add esp, 4
lea ecx, [ebp - 0x164]
call fcn.00432f42
lea ecx, [ebp - 0x1b4]
call fcn.00432f42
lea ecx, [ebp - 0x1c8]
call fcn.00432f42
mov eax, dword [0x5ca198]
cmp dword [eax - 0xc], 0
jl 0x4109c1
push 0x599fec
push eax
call fcn.00522301
add esp, 8
test eax, eax
je 0x4109c1
sub eax, dword [0x5ca198]
cmp eax, 0xffffffff
jne 0x4109d5
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov dword [0x5ca050], 1
jmp 0x410a55
lea ecx, [ebp - 0x164]
call fcn.00432f42
lea ecx, [ebp - 0x1b4]
call fcn.00432f42
lea ecx, [ebp - 0x1c8]
call fcn.00432f42
mov eax, dword [0x5ca198]
cmp dword [eax - 0xc], 0
jl 0x410a2a
push 0x599fec
push eax
call fcn.00522301
add esp, 8
test eax, eax
je 0x410a2a
sub eax, dword [0x5ca198]
cmp eax, 0xffffffff
jne 0x410a3e
mov edx, dword [ebx]
mov eax, dword [edx + 0x60]
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0x128]
push ecx
mov dword [0x5ca050], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410a7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x17c]
mov esi, vtable.CFileException.0
add eax, 0xfffffff0
mov dword [ebp - 0x18c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410aac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x168]
add eax, 0xfffffff0
mov dword [ebp - 0x178], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x190]
add eax, 0xfffffff0
mov dword [ebp - 0x1a0], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
call fcn.004330d7
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.004330d7
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.004330d7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x128]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410beb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410beb
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret