Function at 0x40de01
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push ebp
sub esp, 0x71c
lea ebp, [esp - 4]
mov eax, dword [0x49a2a0]
xor eax, ebp
mov dword [ebp + 0x71c], eax
push 0x200
mov eax, 0x4736b8
call fcn.0045d993
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x411]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x18], edi
mov byte [ebp + 0x410], bl
call fcn.0045cd40
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20c]
call fcn.004060af
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call fcn.0045cd40
push esi
lea eax, [ebp + 0x619]
push ebx
push eax
mov byte [ebp + 0x618], bl
call fcn.0045cd40
push esi
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.0045cd40
add esp, 0x24
lea ecx, [ebp - 0x28]
call fcn.0040611e
push esi
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
mov byte [ebp + 0x104], bl
call fcn.0045cd40
add esp, 0xc
call fcn.0044699e
push eax
lea ecx, [ebp - 0x20]
call fcn.0040180a
mov byte [ebp - 4], 2
call fcn.0044699e
push eax
lea ecx, [ebp - 0x24]
call fcn.0040180a
mov byte [ebp - 4], 3
call fcn.0044699e
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040180a
push 1
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004408ac
mov ecx, dword [edi + 0x4b4]
mov dword [edi + 0x94c], ebx
call fcn.0040755a
mov eax, dword [0x49b8d8]
push dword [edi + 0x8d8]
mov dword [edi + 0x6c4], eax
lea eax, [ebp + 0x410]
push eax
call fcn.0045cdd0
cmp byte [ebp + 0x410], bl
pop ecx
pop ecx
je 0x40e7b2
cmp byte [ebp + 0x411], 0x3a
jne 0x40e7b2
lea eax, [ebp + 0x410]
lea esi, [ebp + 0x410]
push eax
dec esi
call fcn.0045d300
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x40df6e
lea eax, [ebp + 0x410]
push eax
call fcn.0045d300
pop ecx
mov byte [eax + esi], bl
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040200f
mov esi, 0x104
push esi
lea eax, [ebp + 0x30c]
push ebx
push eax
call fcn.0045cd40
push esi
lea eax, [edi + 0x5c0]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
mov eax, dword [eax + 0x40]
add eax, dword [0x49ba48]
push str.SoftWarewinuar_
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x30c]
push eax
call fcn.0045cdd0
mov eax, dword [0x4975b8]
push dword [eax + 0x48]
lea eax, [edi + 0x5c0]
push dword [ebp - 0x10]
push eax
call fcn.0045df20
mov eax, dword [0x4975b8]
add esp, 0x2c
push dword [eax + 0x48]
lea eax, [ebp + 0x30c]
push dword [ebp - 0x10]
push eax
call fcn.0045d300
pop ecx
lea eax, [ebp + eax + 0x30c]
push eax
call fcn.0045df20
lea ecx, [ebp + 0x30c]
lea eax, [edi + 0x4b8]
push ecx
push eax
call fcn.0045cdd0
add esp, 0x14
push 1
lea eax, [ebp + 0x410]
push eax
push str.path
lea eax, [ebp + 0x30c]
push eax
push SysReAllocString
mov ecx, edi
call fcn.0040cd7c
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [edi + 0x6c4], ebx
je 0x40e07b
lea ecx, [ebp - 0x20c]
call fcn.0044919a
cmp eax, 1
jne 0x40e06c
push dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.0045cdd0
pop ecx
pop ecx
jmp 0x40e073
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
lea eax, [ebp]
push eax
jmp 0x40e07e
push 1
push ebx
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.0040a530
add esp, 0x10
push 0x64
lea ecx, [edi + 0x290]
call fcn.0040ee91
mov eax, dword [0x4975b8]
cmp dword [eax + 0x28], 1
jne 0x40e0b0
call fcn.0040a697
mov eax, dword [0x4975b8]
push dword [eax + 0xa0]
mov eax, dword [eax + 0x98]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045df20
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0045d300
add esp, 0x10
test eax, eax
jle 0x40e199
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40e17f
cmp cl, 0xd
jne 0x40e16b
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40e16b
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x47ac74
push eax
call fcn.00407520
lea eax, [ebp + 0x208]
push eax
call fcn.0040c9e0
add esp, 0x14
test eax, eax
je 0x40e150
push 5
push 2
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x28]
call fcn.004066bb
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
add esp, 0xc
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp + eax + 0x514]
inc dword [ebp - 0x14]
mov byte [ebp + edx + 0x618], cl
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045d300
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40e0e9
mov eax, dword [0x4975b8]
push dword [eax + 0xd0]
mov eax, dword [eax + 0xc8]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045df20
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0045d300
add esp, 0x10
test eax, eax
jle 0x40e271
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40e257
cmp cl, 0xd
jne 0x40e243
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40e243
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x47ac70
push eax
call fcn.00407520
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x618]
push eax
mov ecx, edi
call fcn.0040d514
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
add esp, 0xc
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp - 0x14]
mov cl, byte [ebp + eax + 0x514]
inc dword [ebp - 0x14]
mov byte [ebp + edx + 0x618], cl
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045d300
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40e1da
mov ecx, dword [ebp - 0x18]
push esi
push 1
lea eax, [ebp + 0x104]
push eax
push str.Userinit
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov byte [ebp + 0x618], bl
call fcn.0040cd1c
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cdd0
pop ecx
pop ecx
cmp byte [ebp + 0x618], bl
jne 0x40e2f0
mov ecx, dword [ebp - 0x18]
call fcn.0040f6b3
test eax, eax
push esi
lea eax, [ebp + 0x618]
push eax
je 0x40e2d7
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SysWow64userinit.exe
jmp 0x40e2e2
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.userinit.exe
lea eax, [ebp + 0x618]
push eax
call fcn.0045cde0
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
call fcn.0045d300
pop ecx
lea ecx, [ebp + 0x618]
dec ecx
cmp byte [eax + ecx], 0x2c
je 0x40e31d
lea eax, [ebp + 0x618]
push 0x47abf0
push eax
call fcn.0045cde0
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040200f
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00401f04
lea eax, [ebp + 0x618]
push eax
call fcn.0040d085
pop ecx
lea eax, [ebp + 0x514]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045cde0
lea eax, [ebp + 0x514]
push str..reg
push eax
call fcn.0045cde0
add esp, 0x10
push 0x47abec
push 0x478b28
lea ecx, [ebp - 0x24]
call fcn.004078d1
push 0x47abec
push 0x478b28
lea ecx, [ebp - 0x1c]
call fcn.004078d1
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
lea eax, [ebp + 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x40e4fb
mov eax, dword [0x4975b8]
mov eax, dword [eax + 0xf0]
add eax, 0x1000
push eax
call fcn.0043e719
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40e43c
mov ecx, dword [0x4975b8]
mov ecx, dword [ecx + 0xf0]
add ecx, 0x1000
push ecx
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
push dword [eax + 0xf0]
mov eax, dword [eax + 0xe8]
add eax, dword [0x49ba48]
push eax
push dword [ebp - 0x14]
call fcn.0045df20
add esp, 0x18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040200f
push dword [ebp - 0x14]
call fcn.0043e724
pop ecx
mov dword [ebp - 0x14], ebx
push str._USEINIT_
push dword [ebp - 0x20]
call fcn.0045e490
pop ecx
pop ecx
test eax, eax
je 0x40e473
mov ecx, dword [ebp - 0x18]
push 1
lea eax, [ebp + 0x104]
push eax
mov eax, dword [ebp - 0x18]
push str.Userinit
add eax, 0x4b8
push eax
push SysReAllocString
call fcn.0040cd7c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push str._BASEDIR_
call fcn.004078d1
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push str._USEINIT_
call fcn.004078d1
push ebx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x4975b8]
push dword [eax + 0xf0]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp + 0x30c]
push eax
lea eax, [ebp + 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp + 0x30c]
push eax
lea eax, [ebp + 0x618]
push str.regedit__s__s
push eax
call fcn.00407520
add esp, 0xc
push ebx
push 2
push ebx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040618b
lea eax, [ebp + 0x514]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0045cdd0
mov eax, dword [ebp - 0x18]
add eax, 0x5c0
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045cde0
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
push dword [eax + 0x100]
mov eax, dword [eax + 0xf8]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0x28
push 1
lea eax, [ebp + 0x618]
push eax
push str.DisplayName
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
push dword [eax + 0x110]
mov eax, dword [eax + 0x108]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0x18
push 1
lea eax, [ebp + 0x618]
push eax
push str.Publisher
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
push dword [eax + 0x120]
mov eax, dword [eax + 0x118]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0x18
push 1
lea eax, [ebp + 0x618]
push eax
push str.DisplayVersion
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
push esi
push ebx
lea eax, [ebp + 0x618]
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
push dword [eax + 0x130]
mov eax, dword [eax + 0x128]
add eax, dword [0x49ba48]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0x18
push 1
lea eax, [ebp + 0x618]
push eax
push str.URLInfoAbout
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
mov eax, dword [eax + 0x148]
add eax, dword [0x49ba48]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cdd0
lea eax, [ebp + 0x618]
push 0x478b28
push eax
call fcn.0045cde0
mov eax, dword [0x4975b8]
add esp, 0x1c
push dword [eax + 0x150]
lea eax, [ebp + 0x618]
push dword [ebp - 0x14]
push eax
call fcn.0045d300
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push 1
lea eax, [ebp + 0x618]
push eax
push str.DisplayIcon
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045cd40
mov eax, dword [0x4975b8]
mov esi, dword [eax + 0x138]
add esi, dword [0x49ba48]
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cdd0
lea eax, [ebp + 0x618]
push 0x478b28
push eax
call fcn.0045cde0
mov eax, dword [0x4975b8]
add esp, 0x1c
push dword [eax + 0x140]
push esi
lea eax, [ebp + 0x618]
push eax
call fcn.0045d300
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045df20
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push 1
lea eax, [ebp + 0x618]
push eax
push str.UninstallString
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
mov ecx, dword [ebp - 0x18]
push 1
lea eax, [ebp + 0x410]
push eax
push str.InstallLocation
lea eax, [ebp + 0x514]
push eax
push edi
call fcn.0040cd7c
mov ecx, dword [ebp - 0x18]
call fcn.0040cd13
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040135b
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040135b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040135b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00406127
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.00406002
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x71c]
xor ecx, ebp
call fcn.0045cdba
add ebp, 0x720
leave
ret