Function at 0x407ba3
Capabilities:
Delete file

Disassembly:
push 0x28
mov eax, 0x4868b7
call fcn.0048062c
mov eax, dword [0x4b457c]
or dword [ebp - 0x14], 0xffffffff
mov esi, 0x4b457c
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x20], ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4b457c]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.00402394
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
lea eax, [ebp - 0x2c]
push str._cid_d
push eax
call fcn.00404e7f
mov eax, dword [ebp - 0x2c]
add esp, 0xc
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x28]
call fcn.0040217c
push dword [ebp + 0x10]
mov esi, 0x4b4d74
push dword [ebp + 8]
push str.KHelper::DownloadFileAndDecompressCrc_url:_ws_file:_ws
call fcn.00411a60
add esp, 0xc
cmp dword [ebp + 0x14], ebx
je 0x407c6a
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.00402394
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x407cbf
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x407cbf
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call fcn.00406cb8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
je 0x407cbf
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0x48f8a8
push eax
call fcn.00404e7f
add esp, 0xc
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040f0ca
test eax, eax
je 0x407e33
call edi
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.0040bd56
pop ecx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x24], ebx
jmp 0x407cd7
xor ebx, ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407d08
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.MSVCR80.dll__waccess]
test eax, eax
pop ecx
pop ecx
jne 0x407d08
push str.DownloadFileAndDecompressCrc_delete_uncompressed_file_failed__try_ksapi
call fcn.00411a60
pop ecx
push dword [ebp + 0x10]
call fcn.0040c13c
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, 3
jge 0x407d48
cmp byte [ebp - 0xd], 0
je 0x407d1a
cmp eax, ebx
jne 0x407d83
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407314
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x407d88
call edi
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov ebx, eax
sub ebx, dword [ebp - 0x30]
call fcn.004036eb
xor ebx, ebx
jmp 0x407d83
cmp eax, 5
jge 0x407d5d
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040742e
jmp 0x407d7d
cmp eax, 6
jge 0x407d6f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00407594
jmp 0x407d80
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x28]
call fcn.00407314
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
je 0x407d8d
mov ebx, dword [ebp - 0x14]
jmp 0x407e08
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00407902
cmp eax, ebx
pop ecx
pop ecx
jne 0x407dc1
push str.DownloadFileAndDecompressCrc_unzip_compressed_file_failed__try_ksapi
call fcn.00411a60
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0040becc
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x407dc1
push 4
jmp 0x407e07
mov ebx, dword [ebp - 0x18]
cmp dword [ebx - 0xc], 0
je 0x407e17
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x10]
call fcn.00406cb8
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jne 0x407de3
push 8
jmp 0x407e07
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 0x48f8a8
push eax
call fcn.00404e7f
add esp, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040f0ca
test eax, eax
je 0x407e17
push 9
pop ebx
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], 7
jl 0x407cd5
jmp 0x407e19
xor ebx, ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
sub eax, dword [ebp - 0x30]
push eax
push ebx
push str.DownloadFileAndDecompressCrc_return:_d__cost_time:_d__url:_ws__path:_ws
call fcn.00411a60
add esp, 0x14
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, ebx
call fcn.00480704
ret