Function at 0x42c19f
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x4bc51c]
push ebx
push esi
push edi
mov dword [ebp - 0x250], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x250]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [ebp - 0x250]
mov ecx, esp
push eax
call fcn.0040a529
lea eax, [ebp - 0x24]
push eax
call fcn.0042beed
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00403cfb
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0040a529
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a529
push str._autoupdate
lea ecx, [ebp - 0x28]
call fcn.00403927
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.00403d34
test eax, eax
lea ecx, [ebp - 0x28]
setge byte [ebp - 0x19]
call fcn.004038fb
cmp byte [ebp - 0x19], bl
je 0x42c5ce
mov eax, dword [0x4c6988]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [eax - 0xc], ebx
jl 0x42c270
mov dword [ebp - 0x30], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x42c282
mov ecx, dword [0x4af550]
push eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
call fcn.0040a750
push 0x408963
push 0x100
lea eax, [ebp - 0xa50]
push 8
push eax
call fcn.004017c6
push 0x4af810
push ebx
lea ecx, [ebp - 0x30]
call fcn.00403c58
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040896d
push str.Path
lea ecx, [ebp - 0xa54]
call fcn.00408b1f
push eax
lea ecx, [ebp - 8]
call fcn.0040a529
push str.Version
lea ecx, [ebp - 0xa54]
call fcn.00408b1f
push eax
lea ecx, [ebp - 0x20]
call fcn.0040a529
mov eax, dword [ebp - 8]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x42c2fe
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call esi
jmp 0x42c30d
mov eax, dword [0x4af550]
mov dword [ecx], eax
push dword [ebp - 8]
call fcn.0040a750
lea eax, [ebp - 0x2c]
push eax
call fcn.0042bf4a
pop ecx
pop ecx
push str..exe
lea ecx, [ebp - 4]
call fcn.00403927
push 0x4afef0
lea ecx, [ebp - 0xc]
call fcn.00403927
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403b20
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push eax
push dword [eax - 8]
call fcn.00403bd8
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
mov edi, 0x4b27b4
lea ecx, [ebp - 4]
push edi
call fcn.00403927
mov esi, 0x4c5704
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00403b20
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
push 0x4b02dc
lea ecx, [ebp - 0x14]
call fcn.00403927
push edi
lea ecx, [ebp - 0xc]
call fcn.00403927
push str.Autoupdate:
lea ecx, [ebp - 4]
call fcn.00403927
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00403b20
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0x34]
call fcn.004038fb
lea ecx, [ebp - 0x10]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
call fcn.004816fc
push str._nBackup:_n
lea ecx, [ebp - 4]
call fcn.00403927
push 0x4b05b0
lea ecx, [ebp - 0x14]
call fcn.00403927
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00403b20
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403b20
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x40003
push dword [ebp - 0x28]
push eax
push ebx
call esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x44], eax
call fcn.004038fb
lea ecx, [ebp - 0x34]
call fcn.004038fb
lea ecx, [ebp - 0x18]
call fcn.004038fb
lea ecx, [ebp - 0xc]
call fcn.004038fb
lea ecx, [ebp - 0x14]
call fcn.004038fb
lea ecx, [ebp - 4]
call fcn.004038fb
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [eax - 8], ebx
jne 0x42c517
push str.Bad_Autoupdate_1
lea ecx, [ebp - 0x10]
call fcn.00403927
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.004038fb
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x42c53e
push str.Bad_Autoupdate_2
lea ecx, [ebp - 0x10]
call fcn.00403927
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.004038fb
cmp dword [ebp - 0x44], 6
jne 0x42c560
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
push dword [ebp - 0x2c]
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0x250]
push dword [ebp - 8]
push eax
call esi
push 5
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call fcn.0048f01a
add esp, 0x18
call fcn.0042bfa2
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x38]
call fcn.004038fb
lea ecx, [ebp - 0x28]
call fcn.004038fb
lea ecx, [ebp - 0x2c]
call fcn.004038fb
lea ecx, [ebp - 0x20]
call fcn.004038fb
lea ecx, [ebp - 8]
call fcn.004038fb
lea ecx, [ebp - 0x30]
call fcn.004038fb
lea ecx, [ebp - 0x40]
call fcn.004038fb
lea ecx, [ebp - 0x3c]
call fcn.004038fb
lea ecx, [ebp - 0x24]
call fcn.004038fb
push 1
pop eax
jmp 0x42c5e8
lea ecx, [ebp - 0x40]
call fcn.004038fb
lea ecx, [ebp - 0x3c]
call fcn.004038fb
lea ecx, [ebp - 0x24]
call fcn.004038fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret