Function at 0x407b40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542d37
mov eax, dword fs:[0]
push eax
mov eax, 0x310e4
call fcn.00525f60
mov eax, dword [0x5a674c]
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 esi, ecx
lea ecx, [ebp - 0x310e4]
call fcn.00414330
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407b9e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x310f0], eax
mov byte [ebp - 4], 1
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407bce
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x310e8], eax
mov byte [ebp - 4], 2
call fcn.00432d0e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407bfe
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x310ec], eax
mov byte [ebp - 4], 3
xor eax, eax
jmp 0x407c20
mov cl, byte [eax + 0x5a7c50]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x407c20
push 0x555e94
push str.UpdateFail.log
call fcn.005264ba
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x407c69
mov eax, dword [ebp - 0x310ec]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x407f3f
push 0x555528
mov ecx, esi
call fcn.00407510
push edi
call fcn.0052622a
add esp, 4
xor eax, eax
mov cl, byte [eax + 0x5a7c50]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x407c80
xor eax, eax
jmp 0x407ca0
mov cl, byte [ebp + eax - 0x270]
mov byte [ebp + eax - 0x170], cl
inc eax
cmp cl, bl
jne 0x407ca0
lea eax, [ebp - 0x170]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407cc0
mov ecx, dword [0x556298]
mov edx, dword [0x55629c]
mov dword [eax], ecx
mov ecx, dword [0x5562a0]
mov dword [eax + 4], edx
mov edx, dword [0x5562a4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [ebp - 0x378], ebx
mov dword [ebp - 0x374], ebx
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x170]
mov byte [ebp + eax - 0x370], cl
inc eax
cmp cl, bl
jne 0x407d00
lea eax, [ebp - 0x370]
push eax
lea ecx, [ebp - 0x378]
call fcn.00406bb0
lea ecx, [ebp - 0x310e4]
mov byte [ebp - 4], 4
call fcn.004144f0
mov edx, dword [esi + 0x24]
push 0xa
lea ecx, [ebp - 0x70]
push ecx
push edx
call fcn.00542140
add esp, 0xc
push ebx
lea eax, [ebp - 0x70]
push eax
push str.FailCode
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
push ebx
lea ecx, [esi + 0x130]
push ecx
push str.FailText
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov eax, dword [esi + 0x14]
push eax
call fcn.00525c48
add esp, 4
cmp eax, 0x4a
jge 0x407da9
mov edx, dword [str.Ignore_Old_Ver_]
mov eax, dword [0x556274]
mov ecx, dword [0x556278]
mov dword [ebp - 0x30], edx
mov edx, dword [0x55627c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
jmp 0x407e11
mov ecx, esi
call fcn.00407610
test al, al
je 0x407dda
mov eax, dword [str.Network_Error]
mov ecx, dword [0x556264]
mov edx, dword [0x556268]
mov dword [ebp - 0x30], eax
mov ax, word [0x55626c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x24], ax
jmp 0x407e11
mov ecx, esi
call fcn.00407660
test al, al
je 0x407e0a
mov ecx, dword [str.System_Error]
mov edx, dword [0x556254]
mov eax, dword [0x556258]
mov dword [ebp - 0x30], ecx
mov cl, byte [0x55625c]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], cl
jmp 0x407e11
mov dword [ebp - 0x30], 0x435445
push ebx
lea edx, [ebp - 0x30]
push edx
push str.FailReason
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov ecx, dword [esi + 0x28]
push 0xa
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.00542140
add esp, 0xc
push ebx
lea edx, [ebp - 0x50]
push edx
push str.Ret1
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov ecx, dword [esi + 0x2c]
push 0xa
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.00542140
add esp, 0xc
push ebx
lea edx, [ebp - 0x50]
push edx
push str.Ret2
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov eax, dword [esi + 0xc]
push ebx
push eax
push str.UpdateVer
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov eax, dword [esi + 0x10]
push ebx
push eax
push str.PatchNum
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
mov eax, dword [esi + 0x14]
push ebx
push eax
push str.PrePatchNum
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
push 1
lea eax, [ebp - 0x170]
push eax
push str.file
lea ecx, [ebp - 0x310e4]
call fcn.004145e0
push str.MERONG_0.9__p_
push 3
push str.http:__203.107.140.35:50008_Report_UpdateFailLog.aspx
lea ecx, [ebp - 0x310e4]
call fcn.004143a0
test eax, eax
je 0x407ef9
lea ecx, [ebp - 0x310e4]
call fcn.00412df0
push 0x5561b4
jmp 0x407efe
push 0x5561a0
mov ecx, esi
call fcn.00407510
lea ecx, [ebp - 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x378]
cmp eax, ebx
je 0x407f25
push eax
call fcn.0052622a
add esp, 4
mov eax, dword [ebp - 0x310ec]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407f4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x310e8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x310f0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x310e4]
mov dword [ebp - 4], 0xffffffff
call fcn.00414360
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.00525092
mov esp, ebp
pop ebp
ret