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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c35d
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.00407952
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.0040f520
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29e]
push ebx
push eax
call fcn.0040f520
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 0x441614
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 0x406d95
sub eax, ecx
sar eax, 1
cmp eax, 4
jle 0x406dc4
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.00407d33
mov byte [esp + 0x4b4], 1
xor eax, eax
push str.http:__fs0.gamenet.ru_installers_qgna_gamenet_live_gamenet_inner.exe
lea ecx, [esp + 0x60]
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
call fcn.00407d33
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.00406226
push ebx
push 1
lea ecx, [esp + 0x64]
mov dword [esp + 0x38], eax
call fcn.004056ff
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], bl
call fcn.004056ff
lea esi, [esp + 0x78]
call fcn.0040b89a
push ecx
mov dword [esp + 0x30], esp
lea esi, [esp + 0x38]
mov edi, eax
mov dword [esp + 0x30], esp
call fcn.004035d3
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.00403404
push edi
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x3c]
mov byte [esp + 0x4bc], 4
call fcn.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
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.00403404
mov byte [esp + 0x4b4], 5
push dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
call fcn.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
cmp dword [esp + 0x30], ebx
je 0x406f71
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.00403404
mov byte [esp + 0x4b4], 6
push dword [esp + 0x4c]
lea eax, [esp + 0x14]
push eax
call fcn.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
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.00403404
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.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
cmp byte [esp + 0xf], bl
je 0x407022
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.00403404
mov byte [esp + 0x4b4], 8
mov eax, dword [esi]
push dword [eax + 0x69]
lea eax, [esp + 0x14]
push eax
call fcn.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
cmp dword [esp + 0x30], ebx
je 0x4070ce
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.00403404
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.00401d31
push ebx
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4bc], 3
call fcn.00401506
sub esp, 0x10
mov dword [esp + 0x3c], esp
push esp
mov ecx, edi
call fcn.00407d58
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.00404fba
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x407108
lea eax, [esp + 0x88]
push eax
call fcn.00407142
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.00407d58
push 0xabb
lea eax, [esi + 8]
push eax
call fcn.00404fba
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.00401d02
mov ecx, dword [esp + 0x4ac]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4