Function at 0x40a760
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x456167
mov eax, dword fs:[0]
push eax
sub esp, 0x9bc
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x9b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x9d0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x9e0]
mov ebp, dword [esp + 0x9e4]
xor ebx, ebx
push 0x206
lea eax, [esp + 0xae]
push ebx
push eax
mov dword [esp + 0x20], edi
mov word [esp + 0xb4], bx
call fcn.00413220
push 0x206
lea ecx, [esp + 0x7d6]
push ebx
push ecx
mov word [esp + 0x7dc], bx
call fcn.00413220
lea edx, [esp + 0x7dc]
add esp, 0x18
mov eax, ebp
sub edx, ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40a7f3
lea edx, [esp + 0xa8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xa8]
push eax
call fcn.0040aec0
add esp, 4
push 0x457894
push str.7zData
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40ae12
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push esi
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xa8]
add eax, 0xfffffffe
jmp 0x40a870
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40a870
mov edx, dword [str.my7zData.7z]
mov ecx, dword [0x457870]
mov dword [eax], edx
mov edx, dword [0x457874]
mov dword [eax + 4], ecx
mov ecx, dword [0x457878]
mov dword [eax + 8], edx
mov edx, dword [0x45787c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x457880]
mov dword [eax + 0x10], edx
lea edx, [esp + 0xa8]
push edx
mov dword [eax + 0x14], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8d3
lea eax, [esp + 0xa8]
push eax
call fcn.0040b3d0
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
xor esi, esi
cmp ecx, ebx
jbe 0x40a8fa
nop
mov dl, byte [eax + str.GUANGSU]
xor byte [esi + edi], dl
add eax, 1
cmp eax, 7
jl 0x40a8f3
xor eax, eax
add esi, 1
cmp esi, ecx
jb 0x40a8e0
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a93d
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [esp + 0x2b5]
push ebx
push eax
mov byte [esp + 0x2bc], bl
call fcn.00413220
lea ecx, [esp + 0x2bc]
push ecx
lea edx, [esp + 0xb8]
push edx
call fcn.0040af80
add esp, 0x14
call fcn.0040a510
mov ecx, eax
call fcn.00407500
push fcn.00450860
lea eax, [esp + 0x2b4]
push eax
lea ecx, [esp + 0x7cc]
push ecx
call fcn.00406b70
push 0x206
lea edx, [esp + 0x5ce]
push ebx
push edx
mov word [esp + 0x5d4], bx
call fcn.00413220
push 0x206
lea eax, [esp + 0x3d2]
push ebx
push eax
mov word [esp + 0x3d8], bx
call fcn.00413220
add esp, 0x24
push ebx
mov esi, 7
push 0x457504
lea ecx, [esp + 0x94]
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
call fcn.004082f0
mov eax, ebp
mov dword [esp + 0x9d8], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40aa14
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x5c]
call fcn.004082f0
push 0xa
push str.2.1.1.0326
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9e0], 1
call fcn.004081f0
push 1
push 0x4574ac
lea ecx, [esp + 0x5c]
call fcn.004081f0
push 0xa
push str.DFTool.exe
lea ecx, [esp + 0x5c]
call fcn.004081f0
mov eax, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea ecx, [eax + 2]
jmp 0x40aa80
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40aa80
sub eax, ecx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.004082f0
push 0xa
push str.2.1.1.0326
lea ecx, [esp + 0x40]
mov byte [esp + 0x9e0], 2
call fcn.004081f0
push 1
push 0x4574ac
lea ecx, [esp + 0x40]
call fcn.004081f0
push 0xc
push 0x457818
lea ecx, [esp + 0x40]
call fcn.004081f0
push 1
push 0x457814
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004082f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9e4], 3
call fcn.004080e0
push 2
push 0x45780c
lea ecx, [esp + 0x24]
call fcn.004081f0
call fcn.0040a510
mov ecx, eax
call fcn.00407480
mov esi, eax
call fcn.0040a510
mov ecx, eax
call fcn.004074a0
mov ecx, esi
lea edx, [ecx + 2]
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0x40ab37
sub ecx, edx
sar ecx, 1
xor edx, edx
jmp 0x40ab50
movzx edi, word [edx + str.InstallSpreadOperate]
mov word [esp + edx + 0x5bc], di
add edx, 2
cmp di, bx
jne 0x40ab50
cmp ecx, ebx
jne 0x40ab8b
push eax
lea edx, [esp + 0x5c0]
push edx
lea eax, [esp + 0x3bc]
push 0x4577d4
push eax
call fcn.00413d0d
add esp, 0x10
jmp 0x40abaa
push esi
push eax
lea ecx, [esp + 0x5c4]
push ecx
lea edx, [esp + 0x3c0]
push str._s__s__s
push edx
call fcn.00413d0d
add esp, 0x14
lea eax, [esp + 0x3b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40abb4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3b8]
push eax
lea ecx, [esp + 0x24]
call fcn.004081f0
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x40abe8
lea eax, [esp + 0x20]
push eax
call fcn.0040b5a0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
cmp dword [0x4678a8], 1
jne 0x40acdf
mov eax, ebp
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40ac20
sub eax, ecx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x78]
call fcn.004082f0
push 0xa
push str.2.1.1.0326
lea ecx, [esp + 0x78]
mov byte [esp + 0x9e0], 4
call fcn.004081f0
push 1
push 0x4574ac
lea ecx, [esp + 0x78]
call fcn.004081f0
push 0xc
push 0x457818
lea ecx, [esp + 0x78]
call fcn.004081f0
push 1
push 0x457814
lea ecx, [esp + 0x24]
call fcn.004082f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.004080e0
push 0x16
push str.__InstallServiceDriver
lea ecx, [esp + 0x24]
call fcn.004081f0
push 0x7d0
call esi
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40acb8
lea eax, [esp + 0x20]
push eax
call fcn.0040b5a0
add esp, 4
cmp dword [esp + 0x88], edi
mov byte [esp + 0x9d8], 3
jb 0x40acdf
mov edx, dword [esp + 0x74]
push edx
call fcn.004136fe
add esp, 4
push 0x7d0
call esi
push 1
push 0x457814
lea ecx, [esp + 0x24]
call fcn.004082f0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call fcn.004080e0
push 0x1a
push str.__RunUpdatePushMainFrameV1
lea ecx, [esp + 0x24]
call fcn.004081f0
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40ad25
lea eax, [esp + 0x20]
push eax
call fcn.0040b5a0
add esp, 4
call fcn.0040a510
mov ecx, eax
call fcn.00407170
test eax, eax
je 0x40ad86
push 1
push 0x457814
lea ecx, [esp + 0x24]
call fcn.004082f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.004080e0
push 0x11
push str.__CreateStartMenu
lea ecx, [esp + 0x24]
call fcn.004081f0
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40ad7d
lea eax, [esp + 0x20]
push eax
call fcn.0040b5a0
add esp, 4
lea edx, [esp + 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x34], edi
jb 0x40ada7
mov eax, dword [esp + 0x20]
push eax
call fcn.004136fe
add esp, 4
cmp dword [esp + 0x50], edi
mov esi, 7
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x40adcc
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004136fe
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x40adec
mov edx, dword [esp + 0x58]
push edx
call fcn.004136fe
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x40ae12
mov eax, dword [esp + 0x90]
push eax
call fcn.004136fe
add esp, 4
mov ecx, dword [esp + 0x9d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9b8]
xor ecx, esp
call fcn.00413205
add esp, 0x9c8
ret 8