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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x625f9c
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x690a1c]
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 0x45ce72
call fcn.0045d5d0
test eax, eax
je 0x45d59f
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0045bfb0
push dword [ebp - 0x48]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45ce34
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.0041ab30
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.00421100
add esp, 0x3c
test eax, eax
jne 0x45cdd9
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45ce13
call fcn.0047d560
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45cdbb
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.004081d0
push 3
push 0x6346cc
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.004081d0
mov byte [ebp - 4], 3
call fcn.0047d560
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x1e2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420260
mov esi, eax
push str.download_weather_pic_fail_one_time.
push esi
mov byte [ebp - 4], 4
call fcn.004209c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.00420b10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x45cd68
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cd5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45cdb2
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cda8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45cc44
jmp 0x45ce13
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 0x45ce13
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ce13
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 0x45ce55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x45ce55
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45ce55
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 0x45d595
call fcn.0045dee0
test eax, eax
je 0x45d59f
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x58], 1
push eax
mov ecx, ebx
call fcn.0045c450
push dword [ebp - 0x4c]
mov dword [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or esi, 0xffffffff
test eax, eax
jne 0x45d0c7
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.0041ab30
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.00421100
add esp, 0x3c
test eax, eax
jne 0x45d075
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45d0a6
call fcn.0047d560
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45d057
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.004081d0
push 3
push 0x6346cc
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.004081d0
mov byte [ebp - 4], 8
call fcn.0047d560
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x214
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420260
mov esi, eax
push str.download_weather_now_pic_fail_one_time.
push esi
mov byte [ebp - 4], 9
call fcn.004209c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.00420b10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp edx, 0x10
jb 0x45d007
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45cffd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45d051
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d047
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45cee2
jmp 0x45d0a6
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 0x45d0a6
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45d0a6
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 0x45d0c7
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.0045c6a0
push dword [ebp - 0x54]
mov byte [ebp - 4], 0xa
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d2eb
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.0041ab30
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.00421100
add esp, 0x3c
test eax, eax
jne 0x45d2b3
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45d2ca
call fcn.0047d560
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45d295
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.004081d0
push 3
push 0x6346cc
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.004081d0
mov byte [ebp - 4], 0xd
call fcn.0047d560
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x232
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420260
mov esi, eax
push str.download_weather_tomor_pic_fail_one_time.
push esi
mov byte [ebp - 4], 0xe
call fcn.004209c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.00420b10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp edx, 0x10
jb 0x45d245
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d23b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45d28f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d285
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45d120
jmp 0x45d2ca
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 0x45d2eb
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.0045c200
push dword [ebp - 0x50]
mov byte [ebp - 4], 0xf
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45d51d
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.0041ab30
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.00421100
add esp, 0x3c
test eax, eax
jne 0x45d4e5
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x45d4fc
call fcn.0047d560
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x45d4c7
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.004081d0
push 3
push 0x6346cc
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.004081d0
mov byte [ebp - 4], 0x12
call fcn.0047d560
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0x250
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00420260
mov esi, eax
push str.download_weather_after_pic_fail_one_time.
push esi
mov byte [ebp - 4], 0x13
call fcn.004209c0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.00420b10
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x11
cmp edx, 0x10
jb 0x45d465
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d45b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45d4af
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45d4a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d5bd
push edx
push ecx
call fcn.004fa0f5
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 0x45d340
jmp 0x45d4fc
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 0x45d51d
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 0x45d544
cmp dword [ebp - 0x58], 0
je 0x45d544
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 0x45d562
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 0x45d580
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 0x45d59f
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.004fa103
mov esp, ebp
pop ebp
ret 8
call fcn.005e72a0
int3