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

Disassembly:
push ebp
sub esp, 0x71c
lea ebp, [esp - 4]
mov eax, dword [0x498fe0]
xor eax, ebp
mov dword [ebp + 0x71c], eax
push 0x200
mov eax, 0x4726e8
call fcn.0045c9c3
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.0045bd70
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20c]
call fcn.00406093
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call fcn.0045bd70
push esi
lea eax, [ebp + 0x619]
push ebx
push eax
mov byte [ebp + 0x618], bl
call fcn.0045bd70
push esi
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.0045bd70
add esp, 0x24
lea ecx, [ebp - 0x28]
call fcn.00406102
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.0045bd70
add esp, 0xc
call fcn.00445a24
push eax
lea ecx, [ebp - 0x20]
call fcn.0040180a
mov byte [ebp - 4], 2
call fcn.00445a24
push eax
lea ecx, [ebp - 0x24]
call fcn.0040180a
mov byte [ebp - 4], 3
call fcn.00445a24
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040180a
push 1
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0043f95c
mov ecx, dword [edi + 0x4b4]
mov dword [edi + 0x94c], ebx
call fcn.004074ca
mov eax, dword [0x49a618]
push dword [edi + 0x8d8]
mov dword [edi + 0x6c4], eax
lea eax, [ebp + 0x410]
push eax
call fcn.0045be00
cmp byte [ebp + 0x410], bl
pop ecx
pop ecx
je 0x40e548
cmp byte [ebp + 0x411], 0x3a
jne 0x40e548
lea eax, [ebp + 0x410]
lea esi, [ebp + 0x410]
push eax
dec esi
call fcn.0045c330
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x40dd79
lea eax, [ebp + 0x410]
push eax
call fcn.0045c330
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.0045bd70
push esi
lea eax, [edi + 0x5c0]
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
mov eax, dword [eax + 0x40]
add eax, dword [0x49a778]
push str.SoftWarewinuar_
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x30c]
push eax
call fcn.0045be00
mov eax, dword [0x4965b8]
push dword [eax + 0x48]
lea eax, [edi + 0x5c0]
push dword [ebp - 0x10]
push eax
call fcn.0045cf50
mov eax, dword [0x4965b8]
add esp, 0x2c
push dword [eax + 0x48]
lea eax, [ebp + 0x30c]
push dword [ebp - 0x10]
push eax
call fcn.0045c330
pop ecx
lea eax, [ebp + eax + 0x30c]
push eax
call fcn.0045cf50
lea ecx, [ebp + 0x30c]
lea eax, [edi + 0x4b8]
push ecx
push eax
call fcn.0045be00
add esp, 0x14
push 1
lea eax, [ebp + 0x410]
push eax
push str.path
lea eax, [ebp + 0x30c]
push eax
push SysReAllocStringLen
mov ecx, edi
call fcn.0040cb98
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [edi + 0x6c4], ebx
je 0x40de86
lea ecx, [ebp - 0x20c]
call fcn.00448252
cmp eax, 1
jne 0x40de77
push dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.0045be00
pop ecx
pop ecx
jmp 0x40de7e
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
lea eax, [ebp]
push eax
jmp 0x40de89
push 1
push ebx
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.0040a34f
add esp, 0x10
push 0x64
lea ecx, [edi + 0x290]
call fcn.0040ec21
mov eax, dword [0x4965b8]
cmp dword [eax + 0x28], 1
jne 0x40debb
call fcn.0040a4b6
mov eax, dword [0x4965b8]
push dword [eax + 0xa0]
mov eax, dword [eax + 0x98]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045cf50
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0045c330
add esp, 0x10
test eax, eax
jle 0x40dfa4
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40df8a
cmp cl, 0xd
jne 0x40df76
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40df76
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push str._s_s
push eax
call fcn.00407490
lea eax, [ebp + 0x208]
push eax
call fcn.0040c7fc
add esp, 0x14
test eax, eax
je 0x40df5b
push 5
push 2
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406633
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
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.0045c330
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40def4
mov eax, dword [0x4965b8]
push dword [eax + 0xd0]
mov eax, dword [eax + 0xc8]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045cf50
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0045c330
add esp, 0x10
test eax, eax
jle 0x40e07c
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40e062
cmp cl, 0xd
jne 0x40e04e
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40e04e
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x479c20
push eax
call fcn.00407490
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x618]
push eax
mov ecx, edi
call fcn.0040d31f
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
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.0045c330
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40dfe5
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.0040cb38
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045be00
pop ecx
pop ecx
cmp byte [ebp + 0x618], bl
jne 0x40e0fb
mov ecx, dword [ebp - 0x18]
call fcn.0040cdc9
test eax, eax
push esi
lea eax, [ebp + 0x618]
push eax
je 0x40e0e2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SysWow64userinit.exe
jmp 0x40e0ed
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.userinit.exe
lea eax, [ebp + 0x618]
push eax
call fcn.0045be10
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
call fcn.0045c330
pop ecx
lea ecx, [ebp + 0x618]
dec ecx
cmp byte [eax + ecx], 0x2c
je 0x40e128
lea eax, [ebp + 0x618]
push 0x479ba0
push eax
call fcn.0045be10
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.0040ceee
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.0045be10
lea eax, [ebp + 0x514]
push str..reg
push eax
call fcn.0045be10
add esp, 0x10
push 0x479b9c
push 0x477ae8
lea ecx, [ebp - 0x24]
call fcn.0040789f
push 0x479b9c
push 0x477ae8
lea ecx, [ebp - 0x1c]
call fcn.0040789f
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 0x40e306
mov eax, dword [0x4965b8]
mov eax, dword [eax + 0xf0]
add eax, 0x1000
push eax
call fcn.0043d7d4
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40e247
mov ecx, dword [0x4965b8]
mov ecx, dword [ecx + 0xf0]
add ecx, 0x1000
push ecx
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
push dword [eax + 0xf0]
mov eax, dword [eax + 0xe8]
add eax, dword [0x49a778]
push eax
push dword [ebp - 0x14]
call fcn.0045cf50
add esp, 0x18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040200f
push dword [ebp - 0x14]
call fcn.0043d7c9
pop ecx
mov dword [ebp - 0x14], ebx
push str._USEINIT_
push dword [ebp - 0x20]
call fcn.0045d580
pop ecx
pop ecx
test eax, eax
je 0x40e27e
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 SysReAllocStringLen
call fcn.0040cb98
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push str._BASEDIR_
call fcn.0040789f
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push str._USEINIT_
call fcn.0040789f
push ebx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x4965b8]
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.00407490
add esp, 0xc
push ebx
push 2
push ebx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406112
lea eax, [ebp + 0x514]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0045be00
mov eax, dword [ebp - 0x18]
add eax, 0x5c0
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045be10
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
push dword [eax + 0x100]
mov eax, dword [eax + 0xf8]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cf50
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.0040cb98
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
push dword [eax + 0x110]
mov eax, dword [eax + 0x108]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cf50
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.0040cb98
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
push dword [eax + 0x120]
mov eax, dword [eax + 0x118]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cf50
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.0040cb98
push esi
push ebx
lea eax, [ebp + 0x618]
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
push dword [eax + 0x130]
mov eax, dword [eax + 0x128]
add eax, dword [0x49a778]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045cf50
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.0040cb98
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045bd70
mov eax, dword [0x4965b8]
mov esi, dword [eax + 0x138]
add esi, dword [0x49a778]
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045be00
lea eax, [ebp + 0x618]
push 0x477ae8
push eax
call fcn.0045be10
mov eax, dword [0x4965b8]
add esp, 0x1c
push dword [eax + 0x140]
lea eax, [ebp + 0x618]
push esi
push eax
call fcn.0045c330
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045cf50
mov esi, 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
mov ecx, esi
call fcn.0040cb98
push 1
lea eax, [ebp + 0x618]
push eax
push str.UninstallString
lea eax, [ebp + 0x514]
push eax
push edi
mov ecx, esi
call fcn.0040cb98
push 1
lea eax, [ebp + 0x410]
push eax
push str.InstallLocation
lea eax, [ebp + 0x514]
push eax
push edi
mov ecx, esi
call fcn.0040cb98
mov ecx, esi
call fcn.0040cb2f
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.0040610b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.00405fe6
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.0045bdea
add ebp, 0x720
leave
ret