Function at 0x45b7f0
Capabilities:
Check if file exists
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efc49
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x5441b4]
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 - 0x52c], ebx
mov dword [ebp - 0x530], 0
call fcn.0045c600
lea eax, [ebp - 0x43c]
push eax
call fcn.0040dae0
add esp, 4
xor edi, edi
mov dword [ebp - 4], edi
xor ecx, ecx
mov dword [ebp - 0x4ec], 7
mov dword [ebp - 0x4f0], edi
mov word [ebp - 0x500], cx
mov byte [ebp - 4], 1
test byte [0x547f74], 1
jne 0x45b888
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
push 0xffffffffffffffff
lea esi, [ebx + 0x24]
push edi
push 0x547ec4
mov ecx, esi
mov dword [ebp - 0x534], esi
call fcn.00406e90
mov ecx, dword [ebx + 0x34]
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x45b8b1
mov eax, dword [esi]
jmp 0x45b8b3
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45b8c9
push 1
mov eax, 0x50b670
mov ecx, esi
call fcn.004065e0
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov dword [ebx + 0xe8], 1
mov word [ebp - 0x218], dx
call fcn.004be120
mov eax, dword [ebp - 0x43c]
add esp, 0xc
cmp dword [ebp - 0x428], edi
jae 0x45b905
lea eax, [ebp - 0x43c]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x515308
push str.UpdateStep
push str.QuietUpdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x45c4e4
lea edx, [ebp - 0x218]
push str.HasDownloadUpdateZip
push edx
call fcn.004b6f86
add esp, 8
test eax, eax
jne 0x45c4e4
mov eax, dword [ebp - 0x43c]
cmp dword [ebp - 0x428], edi
jae 0x45b95f
lea eax, [ebp - 0x43c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0
push 0x511a58
push str.UpdateParam
call esi
mov ebx, eax
mov eax, dword [ebp - 0x43c]
cmp dword [ebp - 0x428], edi
jae 0x45b98a
lea eax, [ebp - 0x43c]
push eax
push 0
push str.silentupgrade
push str.UpdateParam
call esi
cmp dword [ebp - 0x428], 8
mov edi, eax
mov eax, dword [ebp - 0x43c]
jae 0x45b9b0
lea eax, [ebp - 0x43c]
push eax
push 0
push str.upgradesetup
push str.UpdateParam
call esi
test ebx, ebx
jne 0x45c499
cmp edi, 1
jne 0x45c499
test eax, eax
jne 0x45c499
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004be120
mov eax, dword [ebp - 0x43c]
add esp, 0xc
cmp dword [ebp - 0x428], 8
jae 0x45ba09
lea eax, [ebp - 0x43c]
push eax
push 0x104
lea edx, [ebp - 0x420]
push edx
push 0x50b674
push str.version
push str.UpdateParam
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x45ba83
mov eax, dword [0x547e58]
test eax, eax
je 0x45ba68
cmp dword [eax + 8], 4
mov edi, eax
jl 0x45ba68
push 0x515234
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x520], esp
mov esi, 0x88
push eax
mov ecx, 0x515344
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
lea ecx, [ebp - 0x500]
call fcn.00406760
lea ecx, [ebp - 0x43c]
call fcn.00406760
jmp 0x45c4fb
mov eax, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x448], esi
mov word [ebp - 0x458], cx
xor edx, edx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x464], esi
mov word [ebp - 0x474], dx
lea edi, [ebp - 0x4e4]
mov byte [ebp - 4], 3
call fcn.0040db50
mov eax, edi
push eax
mov eax, str.UpdateScript.XML
mov byte [ebp - 4], 4
call fcn.004045e0
cmp dword [ebp - 0x4d0], 8
mov ecx, dword [ebp - 0x4e4]
jae 0x45bae5
mov ecx, edi
lea edx, [ebp - 0x524]
push edx
call fcn.00462790
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x524]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00406d20
mov byte [ebp - 4], 6
mov dword [ebp - 0x530], 1
call fcn.004453a0
lea ecx, [ebp - 0x4c8]
call fcn.0043f240
test al, al
je 0x45bb3c
call fcn.004453a0
push eax
call fcn.0043f870
test al, al
je 0x45bb3c
xor bl, bl
jmp 0x45bb3e
mov bl, 1
lea ecx, [ebp - 0x4c8]
mov dword [ebp - 4], 5
call fcn.00401ea0
test bl, bl
je 0x45bb9a
mov eax, dword [0x547e58]
cmp eax, esi
je 0x45bdc1
cmp dword [eax + 8], 2
mov edi, eax
jl 0x45bdc1
push 0x515234
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x520], esp
push ecx
mov ecx, 0x512604
mov esi, 0x96
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
jmp 0x45bdc1
call fcn.004453a0
push eax
call fcn.0043f320
call fcn.004453a0
mov ecx, dword [ebp - 0x52c]
push 0xffffffffffffffff
lea esi, [eax + 0x40]
push 0
add ecx, 8
push esi
mov dword [ebp - 0x520], ecx
call fcn.00406e90
cmp dword [esi + 0x14], 8
jb 0x45bbd0
mov eax, dword [esi]
jmp 0x45bbd2
mov eax, esi
lea ecx, [ebp - 0x420]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45bbfe
test dx, dx
je 0x45bbfa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45bbfe
add eax, 4
add ecx, 4
test dx, dx
jne 0x45bbd8
xor eax, eax
jmp 0x45bc03
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bc4d
mov eax, dword [0x547e58]
test eax, eax
je 0x45bdc1
cmp dword [eax + 8], 2
mov edi, eax
jl 0x45bdc1
push 0x515234
push 2
push ecx
mov edx, esp
mov dword [ebp - 0x520], esp
push edx
mov ecx, 0x51535c
mov esi, 0x9e
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
jmp 0x45bdc1
call fcn.004453a0
push eax
call fcn.0043fcf0
test al, al
jne 0x45bca2
mov eax, dword [0x547e58]
test eax, eax
je 0x45bdc1
cmp dword [eax + 8], 2
mov edi, eax
jl 0x45bdc1
push 0x515234
push 2
push ecx
mov eax, esp
mov dword [ebp - 0x520], esp
push eax
mov ecx, 0x515264
mov esi, 0xa3
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
jmp 0x45bdc1
lea edi, [ebp - 0x4c8]
call fcn.0040db50
mov esi, dword [ebp - 0x52c]
add esi, 0xa4
mov edi, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x538], esi
call fcn.00406400
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00406760
call fcn.004453a0
mov ebx, eax
call fcn.004404e0
call fcn.004453a0
mov ebx, eax
call fcn.00440550
call fcn.004453a0
mov ebx, eax
call fcn.00440640
mov esi, dword [ebp - 0x52c]
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x474]
mov edx, esi
call fcn.0045dbd0
test al, al
jne 0x45bd3d
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x45bd30
lea eax, [ebp - 0x458]
push eax
push 0x515384
mov edx, 0xae
jmp 0x45bdaa
call fcn.004453a0
mov edx, dword [ebp - 0x534]
push edx
lea edi, [eax + 0x1b4]
call fcn.00440c90
add esp, 4
call fcn.004453a0
lea ebx, [eax + 0x184]
call fcn.00440de0
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x474]
mov edx, esi
call fcn.00460e10
test al, al
jne 0x45be55
mov ecx, esi
call fcn.00462180
cmp dword [ebp - 0x444], 8
mov eax, dword [ebp - 0x458]
jae 0x45bd9f
lea eax, [ebp - 0x458]
push eax
push 0x5153a4
mov edx, 0xb7
push 0x515234
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
add esp, 0xc
lea eax, [ebp - 0x524]
call fcn.00411820
lea ecx, [ebp - 0x4e4]
call fcn.00406760
lea ecx, [ebp - 0x474]
call fcn.00406760
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 1
call fcn.00406760
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x45be06
lea eax, [ebp - 0x43c]
push eax
push 0x515308
push str.UpdateStep
push str.QuietUpdate
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [0x547e58]
test eax, eax
je 0x45ba68
cmp dword [eax + 8], 2
mov edi, eax
jl 0x45ba68
push 0x515234
push 2
push ecx
mov ecx, esp
mov dword [ebp - 0x520], esp
push ecx
mov esi, 0xfe
mov ecx, 0x515428
jmp 0x45ba5b
mov eax, dword [esi + 0x78]
test eax, eax
je 0x45be65
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ebx, [esi + 0x5c]
mov edi, 8
cmp dword [ebx + 0x14], edi
jb 0x45be76
mov eax, dword [ebx]
jmp 0x45be78
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45befb
lea edx, [ebp - 0x474]
push edx
mov edx, 0x5121c8
call fcn.00407510
lea eax, [ebp - 0x458]
push eax
mov edx, 0x5121d0
call fcn.00407510
mov ecx, dword [ebp - 0x474]
cmp dword [ebp - 0x460], edi
jae 0x45beb9
lea ecx, [ebp - 0x474]
mov eax, dword [ebp - 0x458]
cmp dword [ebp - 0x444], edi
jae 0x45becd
lea eax, [ebp - 0x458]
push ecx
push eax
push 0x5121e0
push 0x515234
mov edx, 0xc7
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
mov edi, dword [ebp - 0x52c]
add esp, 0x10
jmp 0x45c32d
mov edi, dword [ebp - 0x52c]
xor eax, eax
mov dword [ebp - 0x540], esi
lea esi, [ebp - 0x4c8]
mov edx, edi
mov dword [ebp - 0x544], eax
mov dword [ebp - 0x53c], eax
call fcn.0045ad20
push 0x547e34
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x544]
push edx
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.00402910
add esp, 0xc
test al, al
mov ecx, esi
sete byte [ebp - 0x525]
mov byte [ebp - 4], 5
call fcn.00406760
cmp byte [ebp - 0x525], 0
je 0x45bfd4
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x45bf6c
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x474]
push eax
mov edx, 0x51221c
call fcn.00407510
mov ecx, dword [ebp - 0x474]
cmp dword [ebp - 0x460], esi
jae 0x45bf98
lea ecx, [ebp - 0x474]
mov eax, dword [ebp - 0x458]
cmp dword [ebp - 0x444], esi
jae 0x45bfac
lea eax, [ebp - 0x458]
push ecx
push eax
push 0x512224
push 0x515234
mov edx, 0xd4
mov esi, 2
mov eax, 0x547e58
call fcn.0042a050
add esp, 0x10
jmp 0x45c32d
lea esi, [ebp - 0x4ac]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.dataconfig.ini
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 9
call fcn.004044b0
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x4c8]
push ecx
mov ecx, 0x545640
mov byte [ebp - 4], 0xa
call fcn.004630d0
mov ecx, 8
add esp, 4
cmp dword [esi + 0x14], ecx
jb 0x45c01f
mov esi, dword [esi]
cmp dword [eax + 0x14], ecx
jb 0x45c026
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
push eax
push str.channel
push 0x50b64c
call ebx
lea ecx, [ebp - 0x4c8]
call fcn.00406760
lea ecx, [ebp - 0x490]
call fcn.00406760
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 5
call fcn.00406760
lea esi, [ebp - 0x490]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.dataconfig.ini
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0xb
call fcn.004044b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45c08c
mov eax, dword [eax]
push eax
push str.MediaTaskMgr.dll
push str.MediaTaskMgrModule
push 0x50b64c
call ebx
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.00406760
call fcn.0040e610
lea esi, [ebp - 0x490]
mov edx, edi
test al, al
je 0x45c168
call fcn.0045ad20
push eax
mov eax, str.WEMedia_xp.exe
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0xc
call fcn.004044b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45c0f2
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.00406760
lea esi, [ebp - 0x490]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.WEMediaPlatform_xp.exe
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0xd
call fcn.004044b0
mov esi, 8
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x45c146
mov eax, dword [eax]
push eax
call ebx
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.00406760
jmp 0x45c332
call fcn.0045ad20
push eax
mov eax, str.WEMedia.exe
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0xe
call fcn.004044b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45c18d
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.00406760
lea esi, [ebp - 0x490]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.WEMediaPlatform.exe
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0xf
call fcn.004044b0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x45c1dd
mov eax, dword [eax]
push eax
call ebx
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 5
call fcn.00406760
lea esi, [ebp - 0x51c]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.WEMedia.exe
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 0x10
call fcn.004044b0
add esp, 4
mov ebx, eax
lea esi, [ebp - 0x490]
mov edx, edi
mov byte [ebp - 4], 0x11
call fcn.0045ad20
push eax
mov eax, str.WEMedia_xp.exe
lea ecx, [ebp - 0x4ac]
mov byte [ebp - 4], 0x12
call fcn.004044b0
mov ecx, 8
add esp, 4
cmp dword [ebx + 0x14], ecx
jb 0x45c256
mov ebx, dword [ebx]
cmp dword [eax + 0x14], ecx
jb 0x45c25d
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
call fcn.00406760
lea ecx, [ebp - 0x4c8]
call fcn.00406760
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 5
call fcn.00406760
lea esi, [ebp - 0x4c8]
mov edx, edi
call fcn.0045ad20
push eax
mov eax, str.WEMediaPlatform.exe
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x13
call fcn.004044b0
add esp, 4
mov ebx, eax
lea esi, [ebp - 0x4ac]
mov edx, edi
mov byte [ebp - 4], 0x14
call fcn.0045ad20
push eax
mov eax, str.WEMediaPlatform_xp.exe
lea ecx, [ebp - 0x51c]
mov byte [ebp - 4], 0x15
call fcn.004044b0
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x45c2ed
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x45c2f5
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x51c]
call fcn.00406760
lea ecx, [ebp - 0x4ac]
call fcn.00406760
lea ecx, [ebp - 0x490]
call fcn.00406760
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00406760
mov esi, 8
call fcn.00441cf0
mov dl, byte [eax + 0xe2]
mov byte [ebp - 0x530], dl
mov eax, dword [ebp - 0x530]
push eax
push edi
lea ecx, [ebp - 0x458]
call fcn.00461480
call fcn.004453a0
mov ecx, dword [ebp - 0x534]
push ecx
lea edi, [eax + 0x1c4]
call fcn.00440c90
mov eax, dword [ebp - 0x538]
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x45c37d
mov eax, dword [eax]
push eax
call fcn.00402580
add esp, 4
call fcn.0040e680
mov eax, dword [ebp - 0x43c]
cmp dword [ebp - 0x428], esi
jae 0x45c39f
lea eax, [ebp - 0x43c]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
push str.HasQuietUpdate
push str.UpdateStep
push str.QuietUpdate
call edi
mov ebx, dword [ebp - 0x43c]
cmp dword [ebp - 0x428], esi
jae 0x45c3cb
lea ebx, [ebp - 0x43c]
call fcn.00441cf0
add eax, 0x70
cmp dword [eax + 0x14], esi
jb 0x45c3da
mov eax, dword [eax]
push ebx
push eax
push str.OldVersion
push str.QuietUpdate
call edi
mov ecx, dword [ebp - 0x43c]
cmp dword [ebp - 0x428], esi
jae 0x45c3fc
lea ecx, [ebp - 0x43c]
mov eax, dword [ebp - 0x520]
cmp dword [eax + 0x14], esi
jb 0x45c409
mov eax, dword [eax]
push ecx
push eax
push str.CurVersion
push str.QuietUpdate
call edi
mov eax, dword [0x547e58]
test eax, eax
je 0x45c450
cmp dword [eax + 8], 4
mov edi, eax
jl 0x45c450
push 0x515234
push 4
push ecx
mov edx, esp
mov dword [ebp - 0x520], esp
push edx
mov ecx, 0x515414
mov esi, 0xf9
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
lea eax, [ebp - 0x524]
call fcn.00411820
lea ecx, [ebp - 0x4e4]
call fcn.00406760
lea ecx, [ebp - 0x474]
call fcn.00406760
lea ecx, [ebp - 0x458]
call fcn.00406760
lea ecx, [ebp - 0x500]
call fcn.00406760
lea ecx, [ebp - 0x43c]
call fcn.00406760
mov eax, 1
jmp 0x45c4fd
mov eax, dword [0x547e58]
test eax, eax
je 0x45c4d2
cmp dword [eax + 8], 4
mov ebx, eax
jl 0x45c4d2
push 0x515234
push 4
push ecx
mov eax, esp
mov dword [ebp - 0x520], esp
push eax
mov ecx, 0x515328
mov esi, 0x80
call fcn.0042d450
push ebx
mov ecx, esi
call fcn.0042b0b0
cmp dword [ebp - 0x428], 8
jb 0x45c4fb
mov ecx, dword [ebp - 0x43c]
push ecx
jmp 0x45c4f3
cmp dword [ebp - 0x428], edi
jb 0x45c4fb
mov edx, dword [ebp - 0x43c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
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.004b6111
mov esp, ebp
pop ebp
ret