Function at 0x40a780
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 0x456177
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 0x40a813
lea edx, [esp + 0xa8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xa8]
push eax
call fcn.0040aeb0
add esp, 4
push 0x457890
push str.7zData
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x40ae02
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 0x40a890
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40a890
mov edx, dword [str.my7zData.7z]
mov ecx, dword [0x45786c]
mov dword [eax], edx
mov edx, dword [0x457870]
mov dword [eax + 4], ecx
mov ecx, dword [0x457874]
mov dword [eax + 8], edx
mov edx, dword [0x457878]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x45787c]
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 0x40a8f3
lea eax, [esp + 0xa8]
push eax
call fcn.0040b3c0
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
xor esi, esi
cmp ecx, ebx
jbe 0x40a91a
nop
mov dl, byte [eax + str.GUANGSU]
xor byte [esi + edi], dl
add eax, 1
cmp eax, 7
jl 0x40a913
xor eax, eax
add esi, 1
cmp esi, ecx
jb 0x40a900
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 0x40a95d
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.0040af70
add esp, 0x14
call fcn.0040a540
mov ecx, eax
call fcn.004074f0
push fcn.00452a90
lea eax, [esp + 0x2b4]
push eax
lea ecx, [esp + 0x7cc]
push ecx
call fcn.00406b70
push 0x206
lea edx, [esp + 0x3c6]
push ebx
push edx
mov word [esp + 0x3cc], bx
call fcn.00413220
push 0x206
lea eax, [esp + 0x5da]
push ebx
push eax
mov word [esp + 0x5e0], 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.00408320
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 0x40aa34
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x5c]
call fcn.00408320
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9e0], 1
call fcn.00408220
push 1
push 0x4574ac
lea ecx, [esp + 0x5c]
call fcn.00408220
push 0xa
push str.DFTool.exe
lea ecx, [esp + 0x5c]
call fcn.00408220
mov eax, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea ecx, [eax + 2]
jmp 0x40aaa0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40aaa0
sub eax, ecx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.00408320
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x40]
mov byte [esp + 0x9e0], 2
call fcn.00408220
push 1
push 0x4574ac
lea ecx, [esp + 0x40]
call fcn.00408220
push 0xc
push 0x457814
lea ecx, [esp + 0x40]
call fcn.00408220
push 1
push 0x457810
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00408320
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x9e4], 3
call fcn.00408110
push 2
push 0x457808
lea ecx, [esp + 0x24]
call fcn.00408220
call fcn.0040a540
mov ecx, eax
call fcn.00407470
mov esi, eax
call fcn.0040a540
mov ecx, eax
call fcn.00407490
mov ecx, esi
lea edx, [ecx + 2]
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0x40ab57
sub ecx, edx
sar ecx, 1
xor edx, edx
jmp 0x40ab70
movzx edi, word [edx + str.InstallSpreadOperate]
mov word [esp + edx + 0x3b4], di
add edx, 2
cmp di, bx
jne 0x40ab70
xor edx, edx
lea esp, [esp]
movzx edi, word [edx + str.InstallWuBiSpreadOperate]
mov word [esp + edx + 0x3b4], di
add edx, 2
cmp di, bx
jne 0x40ab90
cmp ecx, ebx
jne 0x40abcb
push eax
lea edx, [esp + 0x3b8]
push edx
lea eax, [esp + 0x5c4]
push 0x45779c
push eax
call fcn.00413d0d
add esp, 0x10
jmp 0x40abea
push esi
push eax
lea ecx, [esp + 0x3bc]
push ecx
lea edx, [esp + 0x5c8]
push str._s__s__s
push edx
call fcn.00413d0d
add esp, 0x14
lea eax, [esp + 0x5bc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40abf4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x5c0]
push eax
lea ecx, [esp + 0x24]
call fcn.00408220
mov eax, dword [esp + 0x20]
mov esi, 8
cmp dword [esp + 0x34], esi
jae 0x40ac28
lea eax, [esp + 0x20]
push eax
call fcn.0040b590
mov edi, 7
mov eax, ebp
add esp, 4
mov dword [0x4678a8], 1
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
lea ecx, [eax + 2]
jmp 0x40ac60
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40ac60
sub eax, ecx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x78]
call fcn.00408320
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x78]
mov byte [esp + 0x9e0], 4
call fcn.00408220
push 1
push 0x4574ac
lea ecx, [esp + 0x78]
call fcn.00408220
push 0xc
push 0x457814
lea ecx, [esp + 0x78]
call fcn.00408220
push 1
push 0x457810
lea ecx, [esp + 0x24]
call fcn.00408320
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.00408110
push 0x16
push str.__InstallServiceDriver
lea ecx, [esp + 0x24]
call fcn.00408220
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x40acfc
lea eax, [esp + 0x20]
push eax
call fcn.0040b590
add esp, 4
cmp dword [esp + 0x88], esi
mov byte [esp + 0x9d8], 3
jb 0x40ad23
mov edx, dword [esp + 0x74]
push edx
call fcn.004136fe
add esp, 4
call fcn.0040a540
mov ecx, eax
call fcn.00407160
test eax, eax
je 0x40ad7b
push 1
push 0x457810
lea ecx, [esp + 0x24]
call fcn.00408320
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
call fcn.00408110
push 0x11
push str.__CreateStartMenu
lea ecx, [esp + 0x24]
call fcn.00408220
cmp dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
jae 0x40ad72
lea eax, [esp + 0x20]
push eax
call fcn.0040b590
add esp, 4
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x34], esi
jb 0x40ad9c
mov edx, dword [esp + 0x20]
push edx
call fcn.004136fe
add esp, 4
cmp dword [esp + 0x50], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x40adbc
mov eax, dword [esp + 0x3c]
push eax
call fcn.004136fe
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x40addc
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004136fe
add esp, 4
cmp dword [esp + 0xa4], esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x40ae02
mov edx, dword [esp + 0x90]
push edx
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