Function at 0x406573
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b81f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040707c
mov eax, dword [esi]
xor ebx, ebx
mov dword [esp + 0x50], vtable.GGS::ProgressWatcher.0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
xor eax, eax
mov esi, 0x208
mov dword [esp + 0x4b4], ebx
push esi
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push ebx
push eax
call fcn.0040eb10
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29e]
push ebx
push eax
call fcn.0040eb10
add esp, 0xc
push 0x105
lea eax, [esp + 0x29c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x88]
push eax
push ebx
push 0x440500
lea eax, [esp + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea eax, [esp + 0x88]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40664e
sub eax, ecx
sar eax, 1
cmp eax, 4
jle 0x40667d
push 0x65
pop ecx
lea eax, [esp + eax*2 + 0x82]
push 0x78
mov word [eax], cx
pop ecx
push 0x65
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
lea eax, [esp + 0x50]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
xor eax, eax
push 7
pop esi
mov word [esp + 0x10], ax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
call fcn.0040745d
mov byte [esp + 0x4b4], 1
xor eax, eax
push str.http:__fs0.gamenet.ru_installers_qgna_ca_live_ca_inner.exe
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.0040745d
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x4c0], 2
call fcn.0040605d
push ebx
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x38], eax
call fcn.0040579d
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], bl
call fcn.0040579d
lea esi, [esp + 0x78]
call fcn.0040ae7d
push ecx
mov dword [esp + 0x30], esp
lea esi, [esp + 0x38]
mov edi, eax
mov dword [esp + 0x30], esp
call fcn.00403399
push 0xf
pop esi
mov byte [esp + 0x4b4], 3
push 0xd
push str.DOWNLOAD_TIME
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004031b4
push edi
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x3c]
mov byte [esp + 0x4bc], 4
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
push 0xb
push str.RETRY_COUNT
lea ecx, [esp + 0x18]
call fcn.004031b4
mov byte [esp + 0x4b4], 5
push dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
cmp dword [esp + 0x30], ebx
je 0x40682a
push 7
push str.FAILED
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004031b4
mov byte [esp + 0x4b4], 6
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov al, byte [eax + 0x68]
push 9
push str.WAS_CLOSE
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], al
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004031b4
xor eax, eax
cmp byte [esp + 0xf], bl
lea edi, [esp + 0x34]
setne al
mov byte [esp + 0x4b4], 7
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
cmp byte [esp + 0xf], bl
je 0x4068db
push 0xb
push str.CLOSED_TIME
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004031b4
mov byte [esp + 0x4b4], 8
mov eax, dword [esi]
push dword [eax + 0x69]
lea eax, [esp + 0x14]
push eax
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
cmp dword [esp + 0x30], ebx
je 0x406987
mov edi, dword [esi]
push ebx
push ebx
push 0x40c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [edi + 0x6e]
call dword [sym.imp.KERNEL32.DLL_ResetEvent]
push 0xffffffffffffffff
push dword [edi + 0x6e]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xb
push str.FAIL_RESULT
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004031b4
mov byte [esp + 0x4b4], 9
mov eax, dword [esi]
push dword [eax + 0x72]
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x3c]
call fcn.00401949
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.004027c9
sub esp, 0x10
mov dword [esp + 0x3c], esp
push esp
mov ecx, edi
call fcn.00407482
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.0040505a
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4069c1
lea eax, [esp + 0x88]
push eax
call fcn.004069fb
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
sub esp, 0x10
mov dword [esp + 0x3c], esp
push esp
lea ecx, [esp + 0x48]
call fcn.00407482
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.0040505a
mov esi, dword [esi]
push ebx
push ebx
push 0x40b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x4b8], bl
call fcn.0040191a
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4