Function at 0x470d00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b937a
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
lea esi, [esp + 0x18]
call fcn.0042de70
xor ebx, ebx
mov dword [esp + 0x54], ebx
cmp dword [0x4e4b5c], ebx
je 0x470d8a
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.KUpdateProtocolEx::LoadChannelUpgradeInfo_try_no_changed__delete_chupgrade.ini
mov ecx, 0x4e49b4
call fcn.00419ab0
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470d83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x470f59
lea ecx, [esp + 0x38]
push ecx
call fcn.00416600
mov byte [esp + 0x54], 1
mov edx, dword [esp + 0x18]
push 1
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004167a0
test eax, eax
jne 0x470dec
push str.KUpdateProtocolEx::LoadChannelUpgradeInfo_load_chupgrade.ini_fail
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 4
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x58], bl
call fcn.00416690
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x470d77
push ebx
push str.ChannelCount
push str.Common
lea ecx, [esp + 0x44]
push ecx
call fcn.00417250
cmp eax, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
jle 0x470f1d
mov ebp, dword [esp + 0x5c]
add ebp, 0x10
mov edx, dword [0x4e3844]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3844
call eax
add eax, 0x10
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x1c]
push ecx
push str.Channel_d
lea edi, [esp + 0x64]
mov byte [esp + 0x5c], 2
call fcn.00401250
mov edi, dword [esp + 0x64]
add esp, 8
push 0
push 0x4ceed0
push edi
lea edx, [esp + 0x44]
push edx
call fcn.00417250
mov dword [esp + 0x20], eax
lea ebx, [esp + 0x20]
lea eax, [esp + 0x28]
mov esi, ebp
call fcn.004721a0
mov esi, dword [esp + 0x28]
test esi, esi
mov eax, dword [ebp + 4]
mov dword [esp + 0x34], eax
je 0x470e86
cmp esi, ebp
je 0x470e8b
call fcn.0049445b
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [esp + 0x34]
je 0x470ee7
test esi, esi
jne 0x470e9e
call fcn.0049445b
cmp ebx, dword [esi + 4]
jne 0x470ea8
call fcn.0049445b
push 0
push str.PreVer
push edi
lea ecx, [esp + 0x44]
push ecx
call fcn.00417250
push 0
push str.CurVer
push edi
lea edx, [esp + 0x44]
push edx
mov dword [ebx + 0x18], eax
call fcn.00417250
push 0
push str.SvrTime
mov dword [ebx + 0x1c], eax
push edi
lea eax, [esp + 0x44]
push eax
call fcn.00417250
mov dword [ebx + 0x20], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x54], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jl 0x470e18
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x58], 0
call fcn.00416690
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470f54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4