Function at 0x465730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fe8b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x43c], ebx
push 0x210
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.00432c40
push str.Start_PreUpdating
call fcn.0044e890
mov esi, dword [0x4c25c0]
add esp, 0x10
test esi, esi
jne 0x4657f4
mov esi, dword [0x4c25c4]
push esi
mov dword [ebp - 0x438], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c25c0], 0
mov dword [ebp - 4], 0
jne 0x4657e0
push 0x4c2644
push 0x34
call fcn.0042cd78
add esp, 8
mov dword [ebp - 0x440], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4657d9
mov ecx, eax
call fcn.0041a6d0
jmp 0x4657db
xor eax, eax
mov dword [0x4c25c0], eax
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4c25c0]
call fcn.0045f500
mov edi, eax
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x4659e3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0041b360
mov eax, dword [ebp - 0x434]
cmp dword [eax - 0xc], 0
jne 0x4658d2
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00432c40
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
add esp, 0xc
push 0x108
push ecx
push edi
call dword [eax + 0x2c]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x465870
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x434]
call fcn.00416a50
mov eax, dword [ebp - 0x434]
cmp dword [eax - 0xc], 0
jne 0x4658ba
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x465989
push 0x1c
push str.UpdatePkgUpdatePreInstall
lea ecx, [ebp - 0x434]
call fcn.00405f70
mov eax, dword [ebp - 0x434]
mov esi, dword [ebx + 4]
lea edi, [ebx + 4]
lea edx, [eax - 0x10]
sub esi, 0x10
or ebx, 0xffffffff
cmp edx, esi
je 0x46592e
cmp dword [esi + 0xc], 0
jl 0x465923
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x465923
push edx
call fcn.00407840
add esp, 4
mov dword [ebp - 0x438], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46591c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x438]
add eax, 0x10
mov dword [edi], eax
jmp 0x46592e
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00416a50
mov ecx, dword [ebp - 0x43c]
push 0x64
push 0
call fcn.00462f90
push str.LDSGameMasterFull.7z
push dword [edi]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x64
push 0
push 0
push 0
push 0
push dword [edi]
lea eax, [ebp - 0x430]
push eax
call fcn.00470a80
mov edx, dword [ebp - 0x434]
add esp, 0x1c
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x465993
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.End_PreUpdating
call fcn.0044e890
add esp, 4
push str.preupdate_finish
push str.installpkg
call fcn.0040b360
push eax
call fcn.00450840
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004068b0
int3