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 0x45630d
mov eax, dword fs:[0]
push eax
sub esp, 0x9d8
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x9d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x9ec]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9fc]
mov esi, dword [esp + 0xa00]
xor ebx, ebx
push 0x206
lea eax, [esp + 0xca]
push ebx
push eax
mov dword [esp + 0x20], ebp
mov word [esp + 0xd0], bx
call fcn.004133a0
push 0x206
lea ecx, [esp + 0x7f2]
push ebx
push ecx
mov word [esp + 0x7f8], bx
call fcn.004133a0
lea edx, [esp + 0x7f8]
add esp, 0x18
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x40a7f3
lea edx, [esp + 0xc4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0xc4]
push eax
call fcn.0040b040
add esp, 4
push 0x4578a0
push str.7zData
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40af93
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push edi
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc4]
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 [0x45787c]
mov dword [eax], edx
mov edx, dword [0x457880]
mov dword [eax + 4], ecx
mov ecx, dword [0x457884]
mov dword [eax + 8], edx
mov edx, dword [0x457888]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x45788c]
mov dword [eax + 0x10], edx
lea edx, [esp + 0xc4]
push edx
mov dword [eax + 0x14], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8d3
lea eax, [esp + 0xc4]
push eax
call fcn.0040b550
add esp, 4
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edi, edi
cmp ecx, ebx
jbe 0x40a8fa
nop
mov dl, byte [eax + str.GUANGSU]
xor byte [edi + ebp], dl
add eax, 1
cmp eax, 7
jl 0x40a8f3
xor eax, eax
add edi, 1
cmp edi, ecx
jb 0x40a8e0
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
lea eax, [esp + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a93d
mov edx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
push edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103
lea eax, [esp + 0x2d1]
push ebx
push eax
mov byte [esp + 0x2d8], bl
call fcn.004133a0
lea ecx, [esp + 0x2d8]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.0040b100
add esp, 0x14
call fcn.0040a520
mov ecx, eax
call fcn.00407500
push fcn.0042cc40
lea eax, [esp + 0x2d0]
push eax
lea ecx, [esp + 0x7e8]
push ecx
call fcn.00406b70
push 0x206
lea edx, [esp + 0x5ea]
push ebx
push edx
mov word [esp + 0x5f0], bx
call fcn.004133a0
push 0x206
lea eax, [esp + 0x3ee]
push ebx
push eax
mov word [esp + 0x3f4], bx
call fcn.004133a0
add esp, 0x24
push ebx
mov edi, 7
push 0x457504
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
call fcn.004082e0
mov eax, esi
mov dword [esp + 0x9f4], ebx
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40aa20
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x94]
call fcn.004082e0
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x94]
mov byte [esp + 0x9fc], 1
call fcn.004081e0
push 1
push 0x4574ac
lea ecx, [esp + 0x94]
call fcn.004081e0
push 0xa
push str.DFTool.exe
lea ecx, [esp + 0x94]
call fcn.004081e0
mov eax, esi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40aa90
sub eax, ecx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.004082e0
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9fc], 2
call fcn.004081e0
push 1
push 0x4574ac
lea ecx, [esp + 0x5c]
call fcn.004081e0
push 0xc
push 0x457824
lea ecx, [esp + 0x5c]
call fcn.004081e0
push 1
push 0x457820
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004082e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa00], 3
call fcn.004080d0
push 2
push 0x457818
lea ecx, [esp + 0x24]
call fcn.004081e0
call fcn.0040a520
mov ecx, eax
call fcn.00407480
mov edi, eax
call fcn.0040a520
mov ecx, eax
call fcn.004074a0
mov ecx, edi
mov ebp, eax
lea eax, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40ab50
sub ecx, eax
sar ecx, 1
xor edx, edx
movzx eax, word [edx + str.InstallSpreadOperate]
mov word [esp + edx + 0x5d8], ax
add edx, 2
cmp ax, bx
jne 0x40ab61
cmp ecx, ebx
jne 0x40ab9c
push ebp
lea edx, [esp + 0x5dc]
push edx
lea eax, [esp + 0x3d8]
push 0x4577e0
push eax
call fcn.00413e8d
add esp, 0x10
jmp 0x40abbb
push edi
push ebp
lea ecx, [esp + 0x5e0]
push ecx
lea edx, [esp + 0x3dc]
push str._s__s__s
push edx
call fcn.00413e8d
add esp, 0x14
lea eax, [esp + 0x3d0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40abc5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3d4]
push eax
lea ecx, [esp + 0x24]
call fcn.004081e0
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x40abf9
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
mov ebp, 7
mov eax, esi
add esp, 4
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ac20
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x78]
call fcn.004082e0
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x78]
mov byte [esp + 0x9fc], 4
call fcn.004081e0
push 1
push 0x4574ac
lea ecx, [esp + 0x78]
call fcn.004081e0
push 0xd
push str.DFMoniter.exe
lea ecx, [esp + 0x78]
call fcn.004081e0
push 1
push 0x457820
lea ecx, [esp + 0x24]
call fcn.004082e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.004080d0
push 0x13
push str.__RunByWindowsStart
lea ecx, [esp + 0x24]
call fcn.004081e0
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40acb1
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
add esp, 4
cmp dword [0x4678a8], 1
jne 0x40ada1
mov eax, esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ace0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.004082e0
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x40]
mov byte [esp + 0x9fc], 5
call fcn.004081e0
push 1
push 0x4574ac
lea ecx, [esp + 0x40]
call fcn.004081e0
push 0xc
push 0x457824
lea ecx, [esp + 0x40]
call fcn.004081e0
push 1
push 0x457820
lea ecx, [esp + 0x24]
call fcn.004082e0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
call fcn.004080d0
push 0x16
push str.__InstallServiceDriver
lea ecx, [esp + 0x24]
call fcn.004081e0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40ad7c
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
add esp, 4
cmp dword [esp + 0x50], edi
mov byte [esp + 0x9f4], 4
jb 0x40ae7c
mov eax, dword [esp + 0x3c]
push eax
jmp 0x40ae74
call fcn.0040a520
mov ecx, eax
call fcn.00407160
test eax, eax
je 0x40ae7c
mov eax, esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40adc7
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.004082e0
push 0xa
push str.2.0.1.1205
lea ecx, [esp + 0x40]
mov byte [esp + 0x9fc], 6
call fcn.004081e0
push 1
push 0x4574ac
lea ecx, [esp + 0x40]
call fcn.004081e0
push 0xc
push 0x457824
lea ecx, [esp + 0x40]
call fcn.004081e0
push 1
push 0x457820
lea ecx, [esp + 0x24]
call fcn.004082e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.004080d0
push 0x16
push str.__InstallServiceDriver
lea ecx, [esp + 0x24]
call fcn.004081e0
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40ae58
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
add esp, 4
cmp dword [esp + 0x50], edi
mov byte [esp + 0x9f4], 4
jb 0x40ae7c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041387e
add esp, 4
call fcn.0040a520
mov ecx, eax
call fcn.00407170
test eax, eax
je 0x40aed4
push 1
push 0x457820
lea ecx, [esp + 0x24]
call fcn.004082e0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
call fcn.004080d0
push 0x11
push str.__CreateStartMenu
lea ecx, [esp + 0x24]
call fcn.004081e0
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x40aecb
lea eax, [esp + 0x20]
push eax
call fcn.0040b720
add esp, 4
lea ecx, [esp + 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x88], edi
jb 0x40aef8
mov edx, dword [esp + 0x74]
push edx
call fcn.0041387e
add esp, 4
cmp dword [esp + 0x34], edi
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x40af1e
mov eax, dword [esp + 0x20]
push eax
call fcn.0041387e
add esp, 4
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
jb 0x40af3e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0041387e
add esp, 4
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
jb 0x40af64
mov edx, dword [esp + 0x90]
push edx
call fcn.0041387e
add esp, 4
cmp dword [esp + 0xc0], edi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x40af93
mov eax, dword [esp + 0xac]
push eax
call fcn.0041387e
add esp, 4
mov ecx, dword [esp + 0x9ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9d4]
xor ecx, esp
call fcn.00413385
add esp, 0x9e4
ret 8