Function at 0x407960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542bf7
mov eax, dword fs:[0]
push eax
mov eax, 0x310e4
call fcn.005260d0
mov eax, dword [0x5a574c]
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.004144c0
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4079be
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.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4079ee
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.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x407a1e
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 0x407a40
mov cl, byte [eax + 0x5a6c50]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x407a40
push 0x554a1c
push str.UpdateFail.log
call fcn.0052656a
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x407a89
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 0x407d5f
push str.completed_update__FTP_
mov ecx, esi
call fcn.00407180
push edi
call fcn.005262da
add esp, 4
xor eax, eax
mov cl, byte [eax + 0x5a6c50]
mov byte [ebp + eax - 0x270], cl
inc eax
cmp cl, bl
jne 0x407aa0
xor eax, eax
jmp 0x407ac0
mov cl, byte [ebp + eax - 0x270]
mov byte [ebp + eax - 0x170], cl
inc eax
cmp cl, bl
jne 0x407ac0
lea eax, [ebp - 0x170]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x407ae0
mov ecx, dword [0x554e7c]
mov edx, dword [0x554e80]
mov dword [eax], ecx
mov ecx, dword [0x554e84]
mov dword [eax + 4], edx
mov edx, dword [0x554e88]
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 0x407b20
lea eax, [ebp - 0x370]
push eax
lea ecx, [ebp - 0x378]
call fcn.00406820
lea ecx, [ebp - 0x310e4]
mov byte [ebp - 4], 4
call fcn.00414680
mov edx, dword [esi + 0x24]
push 0xa
lea ecx, [ebp - 0x70]
push ecx
push edx
call fcn.005422b0
add esp, 0xc
push ebx
lea eax, [ebp - 0x70]
push eax
push str.FailCode
lea ecx, [ebp - 0x310e4]
call fcn.00414770
push ebx
lea ecx, [esi + 0x130]
push ecx
push str.FailText
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov eax, dword [esi + 0x14]
push eax
call fcn.00525dd8
add esp, 4
cmp eax, 0x4a
jge 0x407bc9
mov edx, dword [str.Ignore_Old_Ver_]
mov eax, dword [0x554e58]
mov ecx, dword [0x554e5c]
mov dword [ebp - 0x30], edx
mov edx, dword [0x554e60]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
jmp 0x407c31
mov ecx, esi
call fcn.00407280
test al, al
je 0x407bfa
mov eax, dword [str.Network_Error]
mov ecx, dword [0x554e48]
mov edx, dword [0x554e4c]
mov dword [ebp - 0x30], eax
mov ax, word [0x554e50]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x24], ax
jmp 0x407c31
mov ecx, esi
call fcn.004072d0
test al, al
je 0x407c2a
mov ecx, dword [str.System_Error]
mov edx, dword [0x554e38]
mov eax, dword [0x554e3c]
mov dword [ebp - 0x30], ecx
mov cl, byte [0x554e40]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], cl
jmp 0x407c31
mov dword [ebp - 0x30], 0x435445
push ebx
lea edx, [ebp - 0x30]
push edx
push str.FailReason
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov ecx, dword [esi + 0x28]
push 0xa
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.005422b0
add esp, 0xc
push ebx
lea edx, [ebp - 0x50]
push edx
push str.Ret1
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov ecx, dword [esi + 0x2c]
push 0xa
lea eax, [ebp - 0x50]
push eax
push ecx
call fcn.005422b0
add esp, 0xc
push ebx
lea edx, [ebp - 0x50]
push edx
push str.Ret2
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov eax, dword [esi + 0xc]
push ebx
push eax
push str.UpdateVer
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov eax, dword [esi + 0x10]
push ebx
push eax
push str.PatchNum
lea ecx, [ebp - 0x310e4]
call fcn.00414770
mov eax, dword [esi + 0x14]
push ebx
push eax
push str.PrePatchNum
lea ecx, [ebp - 0x310e4]
call fcn.00414770
push 1
lea eax, [ebp - 0x170]
push eax
push str.file
lea ecx, [ebp - 0x310e4]
call fcn.00414770
push str.MERONG_0.9__p_
push 3
push str.http:__py.4th.in_report_UpdateFailLog.php
lea ecx, [ebp - 0x310e4]
call fcn.00414530
test eax, eax
je 0x407d19
lea ecx, [ebp - 0x310e4]
call fcn.00412f80
push str.completed_bug_report_transfer
jmp 0x407d1e
push str.Fail_to_report_bugs
mov ecx, esi
call fcn.00407180
lea ecx, [ebp - 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x378]
cmp eax, ebx
je 0x407d45
push eax
call fcn.005262da
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 0x407d6b
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 0x407d91
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 0x407db6
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.004144f0
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.00525222
mov esp, ebp
pop ebp
ret