Function at 0x45c4b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x621cec
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x68d9ac]
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
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push eax
je 0x45c782
call fcn.0045cee0
test eax, eax
je 0x45ceaf
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0045b8c0
push dword [ebp - 0x48]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c744
push dword [ebx + 0x28]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push str..tmp
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041aa70
add esp, 0xc
push dword [ebx + 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x44]
call edi
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push dword [ebx + 0x14]
push 0x2710
push 0
push eax
lea eax, [ebx + 0x28]
push eax
call fcn.00420fd0
add esp, 0x3c
test eax, eax
jne 0x45c6e9
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45c723
call fcn.0047ce80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45c6cb
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskcoral_desktopweatherforecast.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004080e0
push 3
push 0x6306cc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004080e0
mov byte [ebp - 4], 3
call fcn.0047ce80
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x1e2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420130
mov esi, eax
push str.download_weather_pic_fail_one_time.
push esi
mov byte [ebp - 4], 4
call fcn.00420890
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004209e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x45c678
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c66e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x45c6c2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c6b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x4c]
add esi, 0x1f4
push esi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x5dc
jl 0x45c554
jmp 0x45c723
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x44]
mov esi, eax
call edi
test esi, esi
je 0x45c723
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c723
push 0
push 1
push dword [ebx + 0x1c]
mov byte [ebx + 0x54], 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x44]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c765
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45c765
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c765
push 0
push 1
push dword [ebx + 0x1c]
mov byte [ebx + 0x54], 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x45cea5
call fcn.0045d7f0
test eax, eax
je 0x45ceaf
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], 1
push eax
mov ecx, ebx
call fcn.0045bd60
push dword [ebp - 0x4c]
mov dword [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
jne 0x45c9d7
push dword [ebx + 0x34]
lea edi, [ebx + 0x34]
mov dword [ebp - 0x58], eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push str..tmp
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041aa70
add esp, 0xc
push dword [ebx + 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor esi, esi
mov dword [ebp - 0x48], esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push dword [ebx + 0x14]
push 0x2710
push 0
push eax
push edi
call fcn.00420fd0
add esp, 0x3c
test eax, eax
jne 0x45c985
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45c9b6
call fcn.0047ce80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45c967
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskcoral_desktopweatherforecast.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004080e0
push 3
push 0x6306cc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004080e0
mov byte [ebp - 4], 8
call fcn.0047ce80
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x214
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420130
mov esi, eax
push str.download_weather_now_pic_fail_one_time.
push esi
mov byte [ebp - 4], 9
call fcn.00420890
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004209e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x45c917
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c90d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x45c961
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45c957
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov esi, dword [ebp - 0x48]
lea edi, [ebx + 0x34]
add esi, 0x1f4
push esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x5dc
jl 0x45c7f2
jmp 0x45c9b6
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x45c9b6
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45c9b6
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x44]
or esi, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45c9d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.0045bfb0
push dword [ebp - 0x54]
mov byte [ebp - 4], 0xa
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45cbfb
push dword [ebx + 0x40]
lea edi, [ebx + 0x40]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push str..tmp
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041aa70
add esp, 0xc
push dword [ebx + 0x14]
mov byte [ebp - 4], 0xb
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor esi, esi
mov dword [ebp - 0x48], esi
nop word [eax + eax]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push dword [ebx + 0x14]
push 0x2710
push 0
push eax
push edi
call fcn.00420fd0
add esp, 0x3c
test eax, eax
jne 0x45cbc3
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45cbda
call fcn.0047ce80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45cba5
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskcoral_desktopweatherforecast.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004080e0
push 3
push 0x6306cc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004080e0
mov byte [ebp - 4], 0xd
call fcn.0047ce80
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x232
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420130
mov esi, eax
push str.download_weather_tomor_pic_fail_one_time.
push esi
mov byte [ebp - 4], 0xe
call fcn.00420890
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004209e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x45cb55
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cb4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xb
cmp edx, 0x10
jb 0x45cb9f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cb95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov esi, dword [ebp - 0x48]
lea edi, [ebx + 0x40]
add esi, 0x1f4
push esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x5dc
jl 0x45ca30
jmp 0x45cbda
push 1
push dword [ebp - 0x54]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x44]
or esi, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45cbfb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x50]
mov ecx, ebx
push eax
call fcn.0045bb10
push dword [ebp - 0x50]
mov byte [ebp - 4], 0xf
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ce2d
push dword [ebx + 0x4c]
lea edi, [ebx + 0x4c]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push str..tmp
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0041aa70
add esp, 0xc
push dword [ebx + 0x14]
mov byte [ebp - 4], 0x10
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor esi, esi
mov dword [ebp - 0x48], esi
nop
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 0x28
mov eax, esp
mov dword [eax + 0x24], 0
lea eax, [ebp - 0x44]
push dword [ebx + 0x14]
push 0x2710
push 0
push eax
push edi
call fcn.00420fd0
add esp, 0x3c
test eax, eax
jne 0x45cdf5
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45ce0c
call fcn.0047ce80
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45cdd7
push 0x48
push str.d:jenkins.jenkinsworkspacehalodeskcoral_desktopweatherforecast.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.004080e0
push 3
push 0x6306cc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004080e0
mov byte [ebp - 4], 0x12
call fcn.0047ce80
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x250
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420130
mov esi, eax
push str.download_weather_after_pic_fail_one_time.
push esi
mov byte [ebp - 4], 0x13
call fcn.00420890
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004209e0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x11
cmp edx, 0x10
jb 0x45cd75
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cd6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0x10
cmp edx, 0x10
jb 0x45cdbf
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cdb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cecd
push edx
push ecx
call fcn.004f9a35
add esp, 8
mov esi, dword [ebp - 0x48]
lea edi, [ebx + 0x4c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
add esi, 0x1f4
push esi
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x5dc
jl 0x45cc50
jmp 0x45ce0c
push 1
push dword [ebp - 0x50]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x44]
or esi, 0xffffffff
mov byte [ebp - 4], 0xf
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ce2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ce54
cmp dword [ebp - 0x58], 0
je 0x45ce54
push 0
push 1
push dword [ebx + 0x1c]
mov byte [ebx + 0x54], 1
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x50]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ce72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x54]
mov eax, esi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45ce90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45ceaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004f9a43
mov esp, ebp
pop ebp
ret 8
call fcn.005e6a79
int3