Function at 0x404760
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4253bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
mov eax, dword [0x42f8cc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x438]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x42f16c
rep movsb byte es:[edi], byte [esi]
mov edi, str..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x430], 0
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040b7a0
add esp, 8
test eax, eax
je 0x404821
push eax
call fcn.0040b6f2
add esp, 4
mov ebp, dword [esp + 0x43c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._forbit.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404f20
add esp, 4
test eax, eax
jne 0x4048bd
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.LdxFile__s__Not_Exists
push edx
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
push 0
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.00403030
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ldcab.ldx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404f20
add esp, 0x14
test eax, eax
jne 0x404968
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str.LdxFile__s__Not_Exists
push edx
call fcn.0041c74a
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, 0x433191
push 0
push eax
call fcn.00407170
push 0
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.00403030
mov edx, dword [esp + 0x444]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x22c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x22c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x42f128
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x338]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x338]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ldcab.lddat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x234]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x134]
push ecx
call fcn.00403030
push 0
lea edx, [esp + 0x344]
push 1
lea eax, [esp + 0x140]
push edx
push eax
call fcn.00403030
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x30
push ebx
call esi
lea ecx, [esp + 0x118]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x21c]
push edx
call esi
lea eax, [esp + 0x320]
push eax
call esi
lea ecx, [esp + 0x10]
push str.SimpleUpdate_File_Success
push ecx
call fcn.0041c74a
mov edx, dword [esp + 0x18]
add esp, 8
mov ecx, 0x433191
push 0
push edx
call fcn.00407170
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call fcn.0041d10e
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret