Function at 0x404af0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4253db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x718
mov eax, dword [esp + 0x72c]
push ebx
push ebp
push esi
push edi
push 0x42f1d4
push eax
call fcn.0040b7a0
mov ebx, eax
push 0x7d000
mov dword [esp + 0x1c], ebx
call fcn.0041ce6d
add esp, 0xc
mov esi, eax
test ebx, ebx
mov dword [esp + 0x18], esi
je 0x404e8f
test byte [ebx + 0xc], 0x10
jne 0x404bf3
jmp 0x404b52
mov esi, dword [esp + 0x18]
push ebx
mov dword [esi], 0
call fcn.0040ba03
push ebx
push 0x7d000
push 1
push esi
mov dword [esp + 0x28], eax
call fcn.0040b8ec
mov ebp, eax
add esp, 0x14
xor edi, edi
test ebp, ebp
jle 0x404be9
mov edx, esi
mov esi, str.LeaderParam
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x404ba8
test cl, cl
je 0x404ba4
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x404ba8
add eax, 2
add esi, 2
test cl, cl
jne 0x404b84
xor eax, eax
jmp 0x404bad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x404bc7
add edi, 0x200
add edx, 0x200
cmp edi, ebp
jl 0x404b7d
mov ebx, dword [esp + 0x10]
jmp 0x404be9
mov ecx, dword [edx + 0xf4]
mov ebx, dword [esp + 0x14]
add ecx, edi
push 0
add ecx, ebx
mov ebx, dword [esp + 0x14]
push ecx
push ebx
call fcn.0040bbbf
add esp, 0xc
cmp edi, ebp
jl 0x404bf3
test byte [ebx + 0xc], 0x10
je 0x404b4e
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x328]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
test byte [ebx + 0xc], 0x10
jne 0x404cb7
push ebx
call fcn.0040ba03
push ebx
push 0x400
lea edx, [esp + 0x334]
push 1
push edx
mov ebp, eax
call fcn.0040b8ec
add esp, 0x14
cmp eax, 0x400
jne 0x404ca1
mov esi, str.LeaderCab
lea eax, [esp + 0x328]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x404c6c
test cl, cl
je 0x404c68
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x404c6c
add eax, 2
add esi, 2
test cl, cl
jne 0x404c48
xor eax, eax
jmp 0x404c71
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404ca1
lea eax, [esp + 0x34c]
push str.ldcab.ldind
push eax
call fcn.0040b5d0
add esp, 8
test eax, eax
je 0x404cad
mov ecx, dword [esp + 0x3b8]
push 1
push ecx
push ebx
call fcn.0040bbbf
add esp, 0xc
test byte [ebx + 0xc], 0x10
je 0x404c15
jmp 0x404cbb
mov dword [esp + 0x10], 1
jmp 0x404cbb
mov ebp, dword [esp + 0x18]
push ebx
call fcn.0040b6f2
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x404e8f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x73c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
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..tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x740]
lea eax, [esp + 0x20]
and ecx, 3
push eax
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.004059e0
mov edx, dword [esp + 0x744]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x12c]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x12c]
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, 0x42f128
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
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
lea ebp, [esp + 0x230]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x234]
and ecx, 3
push eax
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 + 0x134]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call fcn.00403030
push 0
lea edx, [esp + 0x244]
push 0
lea eax, [esp + 0x40]
push edx
push eax
call fcn.00403030
add esp, 0x2c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edx, dword [0x42f8cc]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
push str.Update_File_Success
push eax
mov dword [esp + 0x738], 0
call fcn.0041c74a
mov ecx, dword [esp + 0x1c]
add esp, 8
push 0
push ecx
mov ecx, 0x433191
call fcn.00407170
lea ecx, [esp + 0x14]
mov dword [esp + 0x730], 0xffffffff
call fcn.0041d10e
mov edx, dword [esp + 0x18]
push edx
call fcn.0041ce96
mov ecx, dword [esp + 0x72c]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x724
ret