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

Disassembly:
push ebp
sub esp, 0x71c
lea ebp, [esp - 4]
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x71c], eax
push 0x200
mov eax, 0x4729d5
call fcn.0045ccb3
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.0045c060
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20c]
call fcn.004060b5
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call fcn.0045c060
push esi
lea eax, [ebp + 0x619]
push ebx
push eax
mov byte [ebp + 0x618], bl
call fcn.0045c060
push esi
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.0045c060
add esp, 0x24
lea ecx, [ebp - 0x28]
call fcn.00406124
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.0045c060
add esp, 0xc
call fcn.00445c91
push eax
lea ecx, [ebp - 0x20]
call fcn.00401815
mov byte [ebp - 4], 2
call fcn.00445c91
push eax
lea ecx, [ebp - 0x24]
call fcn.00401815
mov byte [ebp - 4], 3
call fcn.00445c91
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401815
push 1
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.0043fbe4
mov ecx, dword [edi + 0x4b4]
mov dword [edi + 0x94c], ebx
call fcn.004074ec
mov eax, dword [0x49a658]
push dword [edi + 0x8d8]
mov dword [edi + 0x6c4], eax
lea eax, [ebp + 0x410]
push eax
call fcn.0045c0f0
cmp byte [ebp + 0x410], bl
pop ecx
pop ecx
je 0x40e560
cmp byte [ebp + 0x411], 0x3a
jne 0x40e560
lea eax, [ebp + 0x410]
lea esi, [ebp + 0x410]
push eax
dec esi
call fcn.0045c620
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x40dd91
lea eax, [ebp + 0x410]
push eax
call fcn.0045c620
pop ecx
mov byte [eax + esi], bl
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040201a
mov esi, 0x104
push esi
lea eax, [ebp + 0x30c]
push ebx
push eax
call fcn.0045c060
push esi
lea eax, [edi + 0x5c0]
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
mov eax, dword [eax + 0x40]
add eax, dword [0x49a7c8]
push str.SoftWarewinuar_
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x30c]
push eax
call fcn.0045c0f0
mov eax, dword [0x4965b8]
push dword [eax + 0x48]
lea eax, [edi + 0x5c0]
push dword [ebp - 0x10]
push eax
call fcn.0045d240
mov eax, dword [0x4965b8]
add esp, 0x2c
push dword [eax + 0x48]
lea eax, [ebp + 0x30c]
push dword [ebp - 0x10]
push eax
call fcn.0045c620
pop ecx
lea eax, [ebp + eax + 0x30c]
push eax
call fcn.0045d240
lea ecx, [ebp + 0x30c]
lea eax, [edi + 0x4b8]
push ecx
push eax
call fcn.0045c0f0
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.0040cbc4
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [edi + 0x6c4], ebx
je 0x40de9e
lea ecx, [ebp - 0x20c]
call fcn.004484af
cmp eax, 1
jne 0x40de8f
push dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.0045c0f0
pop ecx
pop ecx
jmp 0x40de96
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
lea eax, [ebp]
push eax
jmp 0x40dea1
push 1
push ebx
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.0040a3e1
add esp, 0x10
push 0x64
lea ecx, [edi + 0x290]
call fcn.0040ec39
mov eax, dword [0x4965b8]
cmp dword [eax + 0x28], 1
jne 0x40ded3
call fcn.0040a548
mov eax, dword [0x4965b8]
push dword [eax + 0xa0]
mov eax, dword [eax + 0x98]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045d240
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0045c620
add esp, 0x10
test eax, eax
jle 0x40dfbc
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40dfa2
cmp cl, 0xd
jne 0x40df8e
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40df8e
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push str._s_s
push eax
call fcn.004074b2
lea eax, [ebp + 0x208]
push eax
call fcn.0040c828
add esp, 0x14
test eax, eax
je 0x40df73
push 5
push 2
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406655
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
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.0045c620
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40df0c
mov eax, dword [0x4965b8]
push dword [eax + 0xd0]
mov eax, dword [eax + 0xc8]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045d240
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0045c620
add esp, 0x10
test eax, eax
jle 0x40e094
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40e07a
cmp cl, 0xd
jne 0x40e066
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40e066
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x479c20
push eax
call fcn.004074b2
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x618]
push eax
mov ecx, edi
call fcn.0040d337
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
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.0045c620
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40dffd
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.0040cb64
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045c0f0
pop ecx
pop ecx
cmp byte [ebp + 0x618], bl
jne 0x40e113
mov ecx, dword [ebp - 0x18]
call fcn.0040cdfd
test eax, eax
push esi
lea eax, [ebp + 0x618]
push eax
je 0x40e0fa
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SysWow64userinit.exe
jmp 0x40e105
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.userinit.exe
lea eax, [ebp + 0x618]
push eax
call fcn.0045c100
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
call fcn.0045c620
pop ecx
lea ecx, [ebp + 0x618]
dec ecx
cmp byte [eax + ecx], 0x2c
je 0x40e140
lea eax, [ebp + 0x618]
push 0x479ba0
push eax
call fcn.0045c100
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040201a
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00401f0f
lea eax, [ebp + 0x618]
push eax
call fcn.0040cf06
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.0045c100
lea eax, [ebp + 0x514]
push str..reg
push eax
call fcn.0045c100
add esp, 0x10
push 0x479b9c
push 0x477ae8
lea ecx, [ebp - 0x24]
call fcn.004078c1
push 0x479b9c
push 0x477ae8
lea ecx, [ebp - 0x1c]
call fcn.004078c1
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 0x40e31e
mov eax, dword [0x4965b8]
mov eax, dword [eax + 0xf0]
add eax, 0x1000
push eax
call fcn.0043da44
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40e25f
mov ecx, dword [0x4965b8]
mov ecx, dword [ecx + 0xf0]
add ecx, 0x1000
push ecx
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
push dword [eax + 0xf0]
mov eax, dword [eax + 0xe8]
add eax, dword [0x49a7c8]
push eax
push dword [ebp - 0x14]
call fcn.0045d240
add esp, 0x18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.0040201a
push dword [ebp - 0x14]
call fcn.0043da39
pop ecx
mov dword [ebp - 0x14], ebx
push str._USEINIT_
push dword [ebp - 0x20]
call fcn.0045d870
pop ecx
pop ecx
test eax, eax
je 0x40e296
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.0040cbc4
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push str._BASEDIR_
call fcn.004078c1
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push str._USEINIT_
call fcn.004078c1
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.004074b2
add esp, 0xc
push ebx
push 2
push ebx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406134
lea eax, [ebp + 0x514]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0045c0f0
mov eax, dword [ebp - 0x18]
add eax, 0x5c0
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045c100
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
push dword [eax + 0x100]
mov eax, dword [eax + 0xf8]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045d240
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.0040cbc4
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
push dword [eax + 0x110]
mov eax, dword [eax + 0x108]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045d240
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.0040cbc4
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
push dword [eax + 0x120]
mov eax, dword [eax + 0x118]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045d240
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.0040cbc4
push esi
push ebx
lea eax, [ebp + 0x618]
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
push dword [eax + 0x130]
mov eax, dword [eax + 0x128]
add eax, dword [0x49a7c8]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045d240
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.0040cbc4
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045c060
mov eax, dword [0x4965b8]
mov esi, dword [eax + 0x138]
add esi, dword [0x49a7c8]
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045c0f0
lea eax, [ebp + 0x618]
push 0x477ae8
push eax
call fcn.0045c100
mov eax, dword [0x4965b8]
add esp, 0x1c
push dword [eax + 0x140]
lea eax, [ebp + 0x618]
push esi
push eax
call fcn.0045c620
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045d240
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.0040cbc4
push 1
lea eax, [ebp + 0x618]
push eax
push str.UninstallString
lea eax, [ebp + 0x514]
push eax
push edi
mov ecx, esi
call fcn.0040cbc4
push 1
lea eax, [ebp + 0x410]
push eax
push str.InstallLocation
lea eax, [ebp + 0x514]
push eax
push edi
mov ecx, esi
call fcn.0040cbc4
mov ecx, esi
call fcn.0040cb5b
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.0040612d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.00406008
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.0045c0da
add ebp, 0x720
leave
ret