Function at 0x407b40
Capabilities:
Check if file exists
Copy file
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x454448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
xor edi, edi
mov dword [esp + 0x74], edi
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
mov byte [esp + 0x74], 1
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [ebp - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x74], 2
jge 0x407bcf
push 0x104
lea ecx, [esp + 0x2c]
call fcn.00401530
mov ebp, dword [esp + 0x28]
push 0x104
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp ebp, edi
jne 0x407be4
xor eax, eax
jmp 0x407bff
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bf0
sub eax, edx
js 0x408131
cmp eax, dword [ebp - 8]
jg 0x408131
push 0x5c
mov dword [ebp - 0xc], eax
push ebp
mov byte [eax + ebp], 0
call fcn.0042e258
add esp, 8
cmp eax, edi
jne 0x407c23
or eax, 0xffffffff
jmp 0x407c25
sub eax, ebp
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
call fcn.004027c0
push str.Update_
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x80], 3
call fcn.00406190
add esp, 0xc
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], 4
call fcn.004029c0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x74], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407c81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ca4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebx + 0x7f0]
push 0xe
call fcn.0040d6b0
cmp eax, edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], edi
jbe 0x4080b0
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x457828
call fcn.00402ca0
mov ecx, dword [ebx + 0x7f0]
push edi
push 0xe
lea eax, [esp + 0x48]
push eax
call fcn.00410240
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x74], 5
je 0x407d40
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x407d32
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x407d32
push eax
call fcn.00401c00
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x407d25
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x28]
jmp 0x407d40
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.00402530
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x40809b
lea ecx, [esp + 0x58]
call fcn.0043d624
lea eax, [esp + 0x58]
push eax
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
add esi, 0xfffffff0
mov byte [esp + 0x7c], 6
mov dword [esp + 0x40], esp
mov ebp, esp
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x407db2
cmp eax, dword [esi]
jne 0x407db2
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407de4
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x408127
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 0x10
mov ecx, ebx
mov dword [ebp], eax
call fcn.00406420
test eax, eax
je 0x408085
call fcn.0043e731
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
mov esi, 2
cmp eax, esi
mov byte [esp + 0x74], 7
jle 0x40812c
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x40]
push str._s_s
push eax
call fcn.00402aa0
add esp, 0x10
push 0x457828
lea ecx, [esp + 0x44]
call fcn.00402ca0
cmp dword [esp + 0x60], esi
mov byte [esp + 0x74], 8
jle 0x40812c
push ecx
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 8]
sub eax, 0x10
mov dword [esp + 0x54], esp
mov esi, esp
push eax
call fcn.00401c00
add eax, 0x10
add esp, 4
mov dword [esi], eax
cmp dword [esp + 0x64], 1
mov byte [esp + 0x78], 9
jle 0x40812c
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 4]
push ecx
sub eax, 0x10
mov dword [esp + 0x5c], esp
mov esi, esp
push eax
call fcn.00401c00
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
mov byte [esp + 0x80], 8
call fcn.00406c00
mov edi, dword [esp + 0x38]
add edi, 0xfffffff0
push edi
mov byte [esp + 0x78], 0xa
call fcn.00401c00
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x24]
push pe_nt_image_headers32
push ecx
mov byte [esp + 0x7c], 0xd
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x5c
lea ecx, [esp + 0x28]
call fcn.00401b00
push ecx
mov edx, esp
mov dword [esp + 0x54], esp
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.004027c0
call fcn.004168b0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebp, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x74], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x74], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x74], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
je 0x408069
push 0x457828
lea ecx, [esp + 0x4c]
call fcn.00402ca0
push 0x457828
lea ecx, [esp + 0x48]
mov byte [esp + 0x78], 0x13
call fcn.00402ca0
push edi
mov byte [esp + 0x78], 0x14
call fcn.00401c00
add esp, 4
lea esi, [eax + 0x10]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
jne 0x407fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407fee
mov ebp, 1
lea eax, [esi - 0x10]
mov byte [esp + 0x74], 0x16
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40800d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x74], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408030
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x74], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebp, ebp
je 0x408069
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x7f0]
push eax
push 0xe
call fcn.0040e9c0
mov byte [esp + 0x74], 6
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408085
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 2
call fcn.0043d676
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
inc edi
cmp edi, eax
mov dword [esp + 0x30], edi
jb 0x407cc1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x74], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x74], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4080f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov dword [esp + 0x74], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408114
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret
jmp fcn.004013c0
jmp fcn.0043cc0d
push 0x80070057
call fcn.00401260
int3