Function at 0x4215d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568c35
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5bfd00]
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 edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 0xc]
push str._DOWNLOAD_MANAGER__Start_flushing_cache_to_disk.
sub esp, 0x28
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x74]
mov esi, esp
mov dword [ebp - 0x30], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x421636
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov eax, dword [edi + 0x64]
add esp, 0x2c
mov esi, dword [edi + 0x60]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x421695
mov edi, dword [ebp - 0x34]
cmp dword [esi], 0
jne 0x421677
push 0x166
push str.D:PROVINCEprovince.launcherBackendVendor_teemo_src_slice_manager.cpp
push 0x59f7b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [esi]
test ecx, ecx
je 0x42168b
push edi
call fcn.004496a0
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0x30]
add esi, 8
cmp esi, eax
jne 0x421657
mov edi, dword [ebp - 0x2c]
mov ecx, edi
call fcn.00421940
test al, al
jne 0x4216df
mov eax, dword [edi + 0x74]
push str._DOWNLOAD_MANAGER__Flush_index_file_failed.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 1
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x4216d0
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x2c
test ebx, ebx
je 0x4216ea
mov eax, ebx
jmp 0x421886
cmp byte [ebp + 8], 0
je 0x421701
push 1
mov ecx, edi
call fcn.004212e0
test eax, eax
jne 0x421886
mov eax, dword [edi + 0x74]
push ecx
add eax, 0x118
push eax
push ecx
mov ecx, dword [edi + 0x6c]
call fcn.0044afe0
test al, al
jne 0x4217d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 0x74]
mov ebx, eax
add esi, 0x118
cmp dword [esi + 0x14], 0xf
jbe 0x421735
mov esi, dword [esi]
mov eax, dword [edi + 0x6c]
lea ecx, [ebp - 0x4c]
add eax, 0x18
push eax
call fcn.0040a090
mov dword [ebp - 4], 2
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 0xf
push esi
cmova eax, dword [ebp - 0x4c]
push eax
mov eax, dword [edi + 0x74]
push ebx
push str._DOWNLOAD_MANAGER__Rename_file_failed__GLE:__u___s____s.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x24], 0
mov byte [ebp - 4], 3
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x421786
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 2
call fcn.004469d0
mov ecx, dword [ebp - 0x38]
add esp, 0x38
cmp ecx, 0xf
jbe 0x4217c8
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4217be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4217be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov eax, 0xd
jmp 0x421886
cmp dword [edi + 0x58], 0
lea edx, [edi + 0x48]
je 0x421806
lea ecx, [ebp - 0x28]
call fcn.0044a1a0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0041c760
test esi, esi
je 0x421845
mov eax, dword [edi + 0x74]
push str._DOWNLOAD_MANAGER__Remove_index_file_failed.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 4
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x421836
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x2c
mov eax, dword [edi + 0x74]
push str._DOWNLOAD_MANAGER__Flush_cache_to_disk_successful.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x2c], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 5
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x421875
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x2c
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.00563360
mov esp, ebp
pop ebp
ret 8