Function at 0x407750
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c506
mov eax, dword fs:[0]
push eax
mov eax, 0x1328
call fcn.004290f0
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x1328], eax
lea eax, [ebp - 0x1328]
mov dword [ebp - 0x1334], eax
mov dword [ebp - 4], 0
mov eax, dword [0x469ee4]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 0x37ab0], 0
jne 0x4077df
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1328]
cmp word [eax], 0
je 0x4077d5
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
jmp 0x4081c4
cmp dword [0x469a34], 0
jne 0x4077bb
test dword [ecx + 0x8488], 0x200
je 0x407853
lea eax, [ecx + 0x8280]
push eax
lea eax, [ecx + 0xc04]
push eax
lea eax, [ecx + 0x2d3c]
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
je 0x4081e0
mov eax, dword [0x469ee4]
push 0x450d84
mov eax, dword [eax + 0x14]
add eax, 0x2d3c
push eax
push eax
call fcn.00421dd0
add esp, 0xc
test al, al
je 0x4081e0
mov eax, dword [0x469ee4]
xor ecx, ecx
mov eax, dword [eax + 0x14]
mov word [eax + 0x2f44], cx
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0x2d3c
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0042f9f7
mov eax, dword [0x469ee4]
add esp, 0xc
mov eax, dword [eax + 0x14]
push dword [eax + 0x37ab0]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
lea eax, [ebp - 0xe40]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4081e0
lea eax, [ebp - 0x420]
push eax
push 0
push 0x450de0
lea eax, [ebp - 0xe40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4081e0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f9f7
lea eax, [ebp - 0x218]
push eax
call fcn.0041fe30
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0xc04
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041e090
add esp, 8
test eax, eax
jne 0x40793c
mov ebx, dword [ebp - 0x1324]
lea eax, [ebp - 0x628]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
mov dword [0x469a34], 0x21
call esi
jmp 0x408196
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x420]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4081e0
mov eax, dword [0x469ee4]
push 0
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x37ab0]
mov byte [eax], 0x4d
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x37ab0]
mov byte [eax + 1], 0x53
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x37ab0]
mov byte [eax + 2], 0x43
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x37ab0]
mov byte [eax + 3], 0x46
lea eax, [ebp - 0x132c]
push eax
mov eax, dword [0x469ee4]
mov dword [ebp - 0x132c], 0
push ebx
mov eax, dword [eax + 0x14]
push dword [eax + 0x37ab0]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4079eb
mov dword [0x469a34], 8
jmp 0x40817a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea ecx, [ebp - 0x1320]
call fcn.00425b80
mov byte [ebp - 4], 1
lea eax, [ebp - 0x420]
push 0
push eax
lea ecx, [ebp - 0x1320]
call fcn.00426750
test eax, eax
jne 0x407a35
mov byte [ebp - 4], al
lea ecx, [ebp - 0x1320]
call fcn.00425d40
xor ebx, ebx
mov dword [ebp - 0x1324], ebx
jmp 0x407a5e
push 0
push 0x450d84
lea ecx, [ebp - 0x1320]
call fcn.00426420
mov ebx, eax
mov dword [ebp - 0x1324], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1320]
call fcn.00425d40
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [ebp - 0x420], ax
test ebx, ebx
jne 0x407a96
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x628]
push eax
mov dword [0x469a34], 8
call esi
jmp 0x408196
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x628]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x407ad6
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x628]
push eax
mov dword [0x469a34], 7
call esi
jmp 0x408196
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push 0
lea ecx, [ebp - 0x132c]
mov dword [ebp - 0x1330], eax
push ecx
push eax
push ebx
push edi
mov dword [ebp - 0x132c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407b12
mov dword [0x469a34], 8
jmp 0x408180
mov eax, dword [0x469ee4]
mov ecx, dword [ebp - 0x1330]
push edi
mov eax, dword [eax + 0x14]
add dword [eax + 0x39500], ecx
adc dword [eax + 0x39504], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xc38]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0xc38]
push 0x450de8
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea eax, [ebp - 0xc38]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x407ba1
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x628]
push eax
mov dword [0x469a34], 7
call esi
jmp 0x408196
push str._Options_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
test byte [eax + 0x848c], 1
je 0x407be5
push str.AutoUninstIni1
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
test byte [eax + 0x848c], 2
je 0x407c0d
push str.AutoUninstDat1
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
test byte [eax + 0x848c], 0x10
je 0x407c35
push str.EPUninstHideLogButton1
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
cmp word [eax + 0x3a2e4], 0
je 0x407c95
push str.ExtModuleFile
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f9f7
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0x3a2e4
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042fd02
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00408210
add esp, 0x20
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
cmp word [eax + 0x3a4ec], 0
je 0x407cf5
push str.PreProcessFile
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f9f7
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0x3a4ec
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042fd02
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00408210
add esp, 0x20
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
cmp word [eax + 0x3a6f4], 0
je 0x407d55
push str.PreProcessArg
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042f9f7
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0x3a6f4
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042fd02
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00408210
add esp, 0x20
test eax, eax
je 0x408180
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
test dword [eax + 0x8488], 0x800000
je 0x407d7a
push str.UninstallRebootable1
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
push str.DeleteSubFolders0
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
add eax, 0x2c9a
push eax
lea eax, [ebp - 0xa30]
push str.UninstallKey_s
push eax
call fcn.004031e0
lea eax, [ebp - 0xa30]
push eax
push edi
call fcn.00408210
add esp, 0x14
test eax, eax
je 0x408180
push str._Files_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
xor esi, esi
cmp dword [0x469a34], esi
jne 0x408180
nop dword [eax + eax]
lea eax, [ebp - 0x218]
push eax
call fcn.00407520
add esp, 4
test eax, eax
je 0x407e43
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0xa30]
push str._d_s
push eax
call fcn.004031e0
lea eax, [ebp - 0xa30]
push eax
push edi
call fcn.00408210
add esp, 0x18
test eax, eax
je 0x408180
inc esi
cmp dword [0x469a34], 0
je 0x407df0
jmp 0x408180
push str._Registry_CLASSES_ROOT_
push edi
xor esi, esi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
cmp dword [eax + 0x417c], esi
jle 0x407eb1
xor ebx, ebx
nop dword [eax]
cmp word [eax + ebx + 0x4180], 0x30
jne 0x407eab
add eax, 0x4182
add eax, ebx
push eax
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
inc esi
add ebx, 0x208
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x417c]
jl 0x407e70
mov ebx, dword [ebp - 0x1324]
push str._Registry_CURRENT_USER_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x408180
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x417c]
jge 0x407f1b
imul ebx, esi, 0x208
nop dword [eax]
cmp word [eax + ebx + 0x4180], 0x31
jne 0x407f1b
add eax, 0x4182
add eax, ebx
push eax
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
inc esi
add ebx, 0x208
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x417c]
jl 0x407ee0
push str._Registry_LOCAL_MACHINE_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x417c]
jge 0x407f8b
imul ebx, esi, 0x208
nop word [eax + eax]
cmp word [eax + ebx + 0x4180], 0x32
jne 0x407f8b
add eax, 0x4182
add eax, ebx
push eax
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
inc esi
add ebx, 0x208
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x417c]
jl 0x407f50
push str._Registry_USERS_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov ecx, dword [0x469ee4]
mov eax, dword [ecx + 0x14]
cmp esi, dword [eax + 0x417c]
jge 0x407ffc
imul ebx, esi, 0x208
nop dword [eax + eax]
cmp word [eax + ebx + 0x4180], 0x33
jne 0x407ffc
add eax, 0x4182
add eax, ebx
push eax
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov ecx, dword [0x469ee4]
inc esi
add ebx, 0x208
mov eax, dword [ecx + 0x14]
cmp esi, dword [eax + 0x417c]
jl 0x407fc0
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 0x39ab0]
sub ecx, dword [eax + 0x39aac]
mov eax, 0x7d8c42b3
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4080af
push str._RegServer_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
xor ebx, ebx
mov eax, dword [eax + 0x14]
mov esi, dword [eax + 0x39aac]
cmp esi, dword [eax + 0x39ab0]
je 0x4080af
cmp byte [esi + 0x208], 0
je 0x408099
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0041f2f0
add esp, 8
test eax, eax
je 0x408099
lea ecx, [ebp - 0x218]
mov eax, ebx
push ecx
push eax
lea eax, [ebp - 0x1248]
inc ebx
push str._d_s
push eax
call fcn.004031e0
lea eax, [ebp - 0x1248]
push eax
push edi
call fcn.00408210
add esp, 0x18
mov eax, dword [0x469ee4]
add esi, 0x20a
mov eax, dword [eax + 0x14]
cmp esi, dword [eax + 0x39ab0]
jne 0x408050
push str._Group_
push edi
call fcn.00408210
add esp, 8
test eax, eax
je 0x40817a
mov eax, dword [0x469ee4]
mov eax, dword [eax + 0x14]
test dword [eax + 0x8488], 0x40000
je 0x4080e0
push str.CommonGroup1
jmp 0x4080e5
push str.CommonGroup0
push edi
call fcn.00408210
mov eax, dword [0x469ee4]
add esp, 8
cmp byte [0x46a108], 0
mov eax, dword [eax + 0x14]
lea esi, [eax + 0x314c]
jne 0x40810b
lea esi, [eax + 0x3354]
cmp word [esi], 0
setne al
test al, al
je 0x408152
push 0x451080
lea eax, [ebp - 0xa30]
push 0x204
push eax
call fcn.0042f9f7
push esi
lea eax, [ebp - 0xa30]
push 0x204
push eax
call fcn.0042fd02
lea eax, [ebp - 0xa30]
push eax
push edi
call fcn.00408210
add esp, 0x20
test eax, eax
je 0x40817a
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40817a
mov ecx, dword [0x469ee4]
mov ecx, dword [ecx + 0x14]
add dword [ecx + 0x39500], eax
adc dword [ecx + 0x39504], 0
mov ebx, dword [ebp - 0x1324]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x469a34], 0
jne 0x4081f0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
je 0x4081a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
cmp dword [0x469a34], ebx
sete bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1328]
cmp word [ecx], 0
je 0x4081c2
push ecx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1324]
mov dword [0x469a34], 7
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x628]
push eax
call esi
jmp 0x408196