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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43d9f9
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.0040821e
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.004244d0
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29e]
push ebx
push eax
call fcn.004244d0
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 0x442678
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 0x4077e9
sub eax, ecx
sar eax, 1
cmp eax, 4
jle 0x407818
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.004084db
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.004084db
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.00407030
push ebx
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x38], eax
call fcn.00401c8e
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], bl
call fcn.00401c8e
lea esi, [esp + 0x78]
call fcn.0040c869
push ecx
mov dword [esp + 0x30], esp
lea esi, [esp + 0x38]
mov edi, eax
mov dword [esp + 0x30], esp
call fcn.0040473f
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.00401f44
push edi
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x3c]
mov byte [esp + 0x4bc], 4
call fcn.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
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.00401f44
mov byte [esp + 0x4b4], 5
push dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
call fcn.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
cmp dword [esp + 0x30], ebx
je 0x4079c5
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.00401f44
mov byte [esp + 0x4b4], 6
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov al, byte [eax + 0xc5]
push 9
push str.WAS_CLOSE
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401f44
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.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
cmp byte [esp + 0xf], bl
je 0x407a77
push 0xb
push str.CLOSED_TIME
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401f44
mov eax, dword [ebp + 8]
mov byte [esp + 0x4b4], 8
mov eax, dword [eax]
push dword [eax + 0xc6]
lea eax, [esp + 0x14]
push eax
call fcn.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
cmp dword [esp + 0x30], ebx
je 0x407b31
mov eax, dword [ebp + 8]
mov edi, dword [eax]
push ebx
push ebx
push 0x40c
push dword [edi + 5]
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [edi + 0xcb]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0xffffffffffffffff
push dword [edi + 0xcb]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xb
push str.FAIL_RESULT
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401f44
mov eax, dword [ebp + 8]
mov byte [esp + 0x4b4], 9
mov eax, dword [eax]
push dword [eax + 0xcf]
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x3c]
call fcn.00402fb7
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401ba9
sub esp, 0x10
mov dword [esp + 0x3c], esp
push esp
mov ecx, edi
call fcn.00408500
mov esi, dword [ebp + 8]
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.004060ad
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407b6e
lea eax, [esp + 0x88]
push eax
call fcn.00407b9d
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.00408500
mov esi, dword [ebp + 8]
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.004060ad
mov eax, dword [esi]
call fcn.00409f3f
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x4b8], bl
call fcn.00402f88
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4