Function at 0x40dd91
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x47ec20]
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.00407038
lea eax, [ebp - 0x24]
push eax
call fcn.0040dadf
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00401bf2
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00407038
lea eax, [ebp - 0x250]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407038
push str._autoupdate
lea ecx, [ebp - 0x28]
call fcn.0040181a
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.00408db9
test eax, eax
lea ecx, [ebp - 0x28]
setge byte [ebp - 0x19]
call fcn.004017ee
cmp byte [ebp - 0x19], bl
je 0x40e1bb
mov eax, dword [0x47ec28]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [eax - 0xc], ebx
jl 0x40de62
mov dword [ebp - 0x30], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x40de74
mov ecx, dword [0x4421a0]
push eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
call fcn.00401974
push 0x40e1da
push pe_nt_image_headers32
lea eax, [ebp - 0xa50]
push 8
push eax
call fcn.0040290f
push 0x443a50
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401b61
push eax
lea ecx, [ebp - 0xa54]
call fcn.0040e1e4
push str.Path
lea ecx, [ebp - 0xa54]
call fcn.0040e361
push eax
lea ecx, [ebp - 8]
call fcn.00407038
push str.Version
lea ecx, [ebp - 0xa54]
call fcn.0040e361
push eax
lea ecx, [ebp - 0x20]
call fcn.00407038
mov eax, dword [ebp - 8]
push ecx
mov ecx, esp
cmp dword [eax - 0xc], ebx
jl 0x40def0
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call esi
jmp 0x40deff
mov eax, dword [0x4421a0]
mov dword [ecx], eax
push dword [ebp - 8]
call fcn.00401974
lea eax, [ebp - 0x2c]
push eax
call fcn.0040db3c
pop ecx
pop ecx
push 0x443a2c
lea ecx, [ebp - 4]
call fcn.0040181a
push 0x442728
lea ecx, [ebp - 0xc]
call fcn.0040181a
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.004019df
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004019df
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push eax
push dword [eax - 8]
call fcn.00401acd
lea ecx, [ebp - 0x14]
call fcn.004017ee
lea ecx, [ebp - 0x18]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
mov edi, 0x443a28
lea ecx, [ebp - 4]
push edi
call fcn.0040181a
mov esi, 0x4a7048
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019df
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004019df
lea ecx, [ebp - 0x18]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
push 0x443a24
lea ecx, [ebp - 0x14]
call fcn.0040181a
push edi
lea ecx, [ebp - 0xc]
call fcn.0040181a
push str.Autoupdate:
lea ecx, [ebp - 4]
call fcn.0040181a
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.004019df
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019df
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019df
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004019df
lea ecx, [ebp - 0x18]
call fcn.004017ee
lea ecx, [ebp - 0x34]
call fcn.004017ee
lea ecx, [ebp - 0x10]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 0x14]
call fcn.004017ee
push str._nBackup:_n
lea ecx, [ebp - 4]
call fcn.0040181a
push 0x443a04
lea ecx, [ebp - 0x14]
call fcn.0040181a
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.004019df
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004019df
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004019df
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004019df
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.004017ee
lea ecx, [ebp - 0x34]
call fcn.004017ee
lea ecx, [ebp - 0x18]
call fcn.004017ee
lea ecx, [ebp - 0xc]
call fcn.004017ee
lea ecx, [ebp - 0x14]
call fcn.004017ee
lea ecx, [ebp - 4]
call fcn.004017ee
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [eax - 8], ebx
jne 0x40e104
push str.Bad_Autoupdate_1
lea ecx, [ebp - 0x10]
call fcn.0040181a
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.004017ee
mov eax, dword [ebp - 8]
cmp dword [eax - 8], ebx
jne 0x40e12b
push str.Bad_Autoupdate_2
lea ecx, [ebp - 0x10]
call fcn.0040181a
mov eax, dword [eax]
push ebx
push ebx
push eax
call edi
push eax
call esi
lea ecx, [ebp - 0x10]
call fcn.004017ee
cmp dword [ebp - 0x44], 6
jne 0x40e14d
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.00433078
add esp, 0x18
call fcn.0040db94
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x38]
call fcn.004017ee
lea ecx, [ebp - 0x28]
call fcn.004017ee
lea ecx, [ebp - 0x2c]
call fcn.004017ee
lea ecx, [ebp - 0x20]
call fcn.004017ee
lea ecx, [ebp - 8]
call fcn.004017ee
lea ecx, [ebp - 0x30]
call fcn.004017ee
lea ecx, [ebp - 0x40]
call fcn.004017ee
lea ecx, [ebp - 0x3c]
call fcn.004017ee
lea ecx, [ebp - 0x24]
call fcn.004017ee
push 1
pop eax
jmp 0x40e1d5
lea ecx, [ebp - 0x40]
call fcn.004017ee
lea ecx, [ebp - 0x3c]
call fcn.004017ee
lea ecx, [ebp - 0x24]
call fcn.004017ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret