Function at 0x410250
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c1fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x5c1c00]
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.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410298
push 0x80004005
call fcn.00403150
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 0x59be84
push eax
call fcn.00403220
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.00402c90
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004159a0
add esp, 4
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], edx
test edx, edx
jl 0x410c1b
jg 0x41032e
cmp eax, 0x3d3848
jbe 0x410c1b
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.SetupBox.exe
call fcn.00401ed0
lea ecx, [ebp - 0x134]
push ecx
call fcn.00411c70
add esp, 4
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.Install.zip
call fcn.00401ed0
lea edx, [ebp - 0x128]
push edx
call fcn.00411c70
add esp, 4
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.SInst.exe
call fcn.00401ed0
lea eax, [ebp - 0x138]
push eax
call fcn.00411c70
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.00434b80
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00434b80
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
call fcn.00434b80
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 6
call fcn.00427c75
mov esi, vtable.CFileException.0
mov dword [ebp - 0x1a0], esi
call fcn.00427d68
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x41040d
push 0x80004005
call fcn.00403150
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.00402d00
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 8
call fcn.00427c75
mov dword [ebp - 0x178], esi
call fcn.00427d68
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x410469
push 0x80004005
call fcn.00403150
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.00402d00
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 0xa
call fcn.00427c75
mov dword [ebp - 0x18c], esi
call fcn.00427d68
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4104c5
push 0x80004005
call fcn.00403150
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.00402d00
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.00435008
test eax, eax
jne 0x41052e
push 0x10
push 0x59bf1c
push 0x59bf24
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00525a66
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.00435008
test eax, eax
jne 0x410583
lea ecx, [ebp - 0x164]
call fcn.00434b1b
push 0x10
push 0x59bf1c
push 0x59bf4c
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call fcn.00525a66
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.00435008
test eax, eax
jne 0x4105c1
lea ecx, [ebp - 0x164]
call fcn.00434b1b
lea ecx, [ebp - 0x1b4]
jmp 0x410565
push ebx
call fcn.00402c90
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 0x410823
push 0x59bf84
push esi
call fcn.00523e0f
add esp, 8
cmp eax, edi
je 0x410823
sub eax, esi
cmp eax, 0xffffffff
je 0x410823
cmp dword [esi - 0xc], edi
jge 0x41060d
or eax, 0xffffffff
jmp 0x410626
push 0x59bf84
push esi
call fcn.00523e0f
add esp, 8
cmp eax, edi
jne 0x410624
or eax, 0xffffffff
jmp 0x410626
sub eax, esi
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x124]
call fcn.004013a0
push 0x59b320
push str..exe
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xe
call fcn.0040e640
push 0x59b320
push str..EXE
lea ecx, [ebp - 0x11c]
call fcn.0040e640
mov esi, dword [ebp - 0x11c]
cmp dword [esi - 0xc], edi
jl 0x4106f6
push str._DisableStartup
push esi
call fcn.00523e0f
add esp, 8
cmp eax, edi
je 0x4106b4
sub eax, esi
cmp eax, 0xffffffff
je 0x4106b4
push 0x59b320
push str._DisableStartup
lea ecx, [ebp - 0x11c]
mov dword [0x5cc044], 1
call fcn.0040e640
mov esi, dword [ebp - 0x11c]
cmp dword [esi - 0xc], edi
jl 0x4106f6
push 0x59bfa8
push esi
call fcn.00523e0f
add esp, 8
cmp eax, edi
je 0x4106f6
sub eax, esi
cmp eax, 0xffffffff
je 0x4106f6
push str._Hide
mov ecx, 0x5cc19c
call fcn.00402e40
push 0x59b320
push 0x59bfa8
lea ecx, [ebp - 0x11c]
call fcn.0040e640
push 0x59b320
push 0x59bf84
lea ecx, [ebp - 0x11c]
call fcn.0040e640
mov ecx, dword [ebp - 0x11c]
cmp dword [ecx - 0xc], edi
jle 0x410814
lea edx, [ebp - 0x11c]
push edx
mov ecx, 0x5cc1a0
call fcn.00402b20
mov dword [0x5cc040], 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 0x41077e
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x12c], ecx
lea esi, [ebp - 0x130]
call fcn.0040fe20
call fcn.0040fe00
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 0x4107d3
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4107c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x12c], eax
mov eax, dword [0x5cc1a0]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x13c], esp
mov esi, esp
push eax
mov edi, 0x59bfd8
call fcn.00402c90
add eax, 0x10
add esp, 4
lea ecx, [ebp - 0x130]
mov dword [esi], eax
call fcn.0040ff30
lea esi, [ebp - 0x130]
call fcn.0040fe00
mov ecx, esi
call fcn.0040fde0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 0xd
call fcn.00402fa0
push 0x1a0
call fcn.00425508
add esp, 4
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x410848
push eax
call fcn.00423fe0
mov ebx, eax
jmp 0x41084a
xor ebx, ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [0x5cc19c]
mov eax, dword [ecx - 0xc]
test eax, eax
js 0x41087a
push 0x59bfdc
push ecx
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x41087a
mov edi, dword [0x5cc19c]
sub eax, edi
cmp eax, 0xffffffff
jne 0x4108b3
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.00432c04
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push 0x59bfe0
call fcn.00401ed0
mov esi, ebx
call fcn.00424190
mov edi, dword [0x5cc19c]
push 0x3d3848
call fcn.00523a0a
mov esi, eax
add esp, 4
test esi, esi
jne 0x410903
cmp dword [edi - 0xc], eax
jl 0x4108e8
push 0x59bfdc
push edi
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x4108e8
sub eax, dword [0x5cc19c]
cmp eax, 0xffffffff
jne 0x4108fc
push 0x10
push 0x59bf1c
push 0x59bff8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
jmp 0x41057e
push 0
push 0
push 0
lea ecx, [ebp - 0x164]
call fcn.00434904
push 0x3d3848
push esi
lea ecx, [ebp - 0x164]
call fcn.00434875
push 0x3d3848
push esi
lea ecx, [ebp - 0x1b4]
call fcn.004348b7
push esi
call fcn.00523a9e
add esp, 4
push 0xa00000
call fcn.00523a0a
mov edi, eax
add esp, 4
test edi, edi
je 0x410a31
cmp dword [ebp - 0x144], 0
mov eax, 0x3d3848
mov esi, eax
jl 0x4109bf
jg 0x410970
cmp dword [ebp - 0x148], eax
jbe 0x4109bf
xor edx, edx
push 0
push edx
push eax
lea ecx, [ebp - 0x164]
call fcn.00434904
push 0xa00000
push edi
lea ecx, [ebp - 0x164]
call fcn.00434875
push eax
push edi
lea ecx, [ebp - 0x1c8]
call fcn.004348b7
call fcn.00414fc0
add esi, 0xa00000
mov eax, esi
cdq
cmp edx, dword [ebp - 0x144]
jl 0x410972
jg 0x4109bf
cmp eax, dword [ebp - 0x148]
jb 0x410972
push edi
call fcn.00523a9e
add esp, 4
lea ecx, [ebp - 0x164]
call fcn.00434b1b
lea ecx, [ebp - 0x1b4]
call fcn.00434b1b
lea ecx, [ebp - 0x1c8]
call fcn.00434b1b
mov eax, dword [0x5cc19c]
cmp dword [eax - 0xc], 0
jl 0x410a11
push 0x59bfdc
push eax
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x410a11
sub eax, dword [0x5cc19c]
cmp eax, 0xffffffff
jne 0x410a25
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 [0x5cc048], 1
jmp 0x410aa5
lea ecx, [ebp - 0x164]
call fcn.00434b1b
lea ecx, [ebp - 0x1b4]
call fcn.00434b1b
lea ecx, [ebp - 0x1c8]
call fcn.00434b1b
mov eax, dword [0x5cc19c]
cmp dword [eax - 0xc], 0
jl 0x410a7a
push 0x59bfdc
push eax
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x410a7a
sub eax, dword [0x5cc19c]
cmp eax, 0xffffffff
jne 0x410a8e
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 [0x5cc048], 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 0x410acb
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 0x410afc
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 0x410b28
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 0x410b54
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.00434cb0
lea ecx, [ebp - 0x1b4]
mov byte [ebp - 4], 4
call fcn.00434cb0
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.00434cb0
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 0x410ba7
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 0x410bcd
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 0x410bf3
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 0x410c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410c3b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c3b
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.00523519
mov esp, ebp
pop ebp
ret