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

Disassembly:
push ebp
sub esp, 0x71c
lea ebp, [esp - 4]
mov eax, dword [0x49c250]
xor eax, ebp
mov dword [ebp + 0x71c], eax
push 0x200
mov eax, 0x475188
call fcn.0045eba3
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.0045df50
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20c]
call fcn.00406094
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp], bl
call fcn.0045df50
push esi
lea eax, [ebp + 0x619]
push ebx
push eax
mov byte [ebp + 0x618], bl
call fcn.0045df50
push esi
lea eax, [ebp + 0x209]
push ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x208], bl
call fcn.0045df50
add esp, 0x24
lea ecx, [ebp - 0x28]
call fcn.00406103
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.0045df50
add esp, 0xc
call fcn.00447b91
push eax
lea ecx, [ebp - 0x20]
call fcn.00401815
mov byte [ebp - 4], 2
call fcn.00447b91
push eax
lea ecx, [ebp - 0x24]
call fcn.00401815
mov byte [ebp - 4], 3
call fcn.00447b91
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401815
push 1
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00441aa9
mov ecx, dword [edi + 0x4b4]
mov dword [edi + 0x94c], ebx
call fcn.0040753f
mov eax, dword [0x49d898]
push dword [edi + 0x8d8]
mov dword [edi + 0x6c4], eax
lea eax, [ebp + 0x410]
push eax
call fcn.0045dfe0
cmp byte [ebp + 0x410], bl
pop ecx
pop ecx
je 0x40e60b
cmp byte [ebp + 0x411], 0x3a
jne 0x40e60b
lea eax, [ebp + 0x410]
lea esi, [ebp + 0x410]
push eax
dec esi
call fcn.0045e510
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x40ddc7
lea eax, [ebp + 0x410]
push eax
call fcn.0045e510
pop ecx
mov byte [eax + esi], bl
lea eax, [ebp + 0x410]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402010
mov esi, 0x104
push esi
lea eax, [ebp + 0x30c]
push ebx
push eax
call fcn.0045df50
push esi
lea eax, [edi + 0x5c0]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
mov eax, dword [eax + 0x40]
add eax, dword [0x49da08]
push str.SoftWarewinuar_
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x30c]
push eax
call fcn.0045dfe0
mov eax, dword [0x4995b8]
push dword [eax + 0x48]
lea eax, [edi + 0x5c0]
push dword [ebp - 0x10]
push eax
call fcn.0045f130
mov eax, dword [0x4995b8]
add esp, 0x2c
push dword [eax + 0x48]
lea eax, [ebp + 0x30c]
push dword [ebp - 0x10]
push eax
call fcn.0045e510
pop ecx
lea eax, [ebp + eax + 0x30c]
push eax
call fcn.0045f130
lea ecx, [ebp + 0x30c]
lea eax, [edi + 0x4b8]
push ecx
push eax
call fcn.0045dfe0
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.0040cd6b
push ebx
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [edi + 0x6c4], ebx
je 0x40ded4
lea ecx, [ebp - 0x20c]
call fcn.0044a38d
cmp eax, 1
jne 0x40dec5
push dword [ebp - 0x30]
lea eax, [ebp]
push eax
call fcn.0045dfe0
pop ecx
pop ecx
jmp 0x40decc
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 1
lea eax, [ebp]
push eax
jmp 0x40ded7
push 1
push ebx
lea eax, [ebp + 0x410]
push ebx
push eax
call fcn.0040a57e
add esp, 0x10
push 0x64
lea ecx, [edi + 0x290]
call fcn.0040ece4
mov eax, dword [0x4995b8]
cmp dword [eax + 0x28], 1
jne 0x40df09
call fcn.0040a6e5
mov eax, dword [0x4995b8]
push dword [eax + 0xa0]
mov eax, dword [eax + 0x98]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045f130
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0045e510
add esp, 0x10
test eax, eax
jle 0x40dff2
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40dfd8
cmp cl, 0xd
jne 0x40dfc4
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40dfc4
lea eax, [ebp + 0x618]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x47cc5c
push eax
call fcn.00407505
lea eax, [ebp + 0x208]
push eax
call fcn.0040c9cf
add esp, 0x14
test eax, eax
je 0x40dfa9
push 5
push 2
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x28]
call fcn.004066a0
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
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.0045e510
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40df42
mov eax, dword [0x4995b8]
push dword [eax + 0xd0]
mov eax, dword [eax + 0xc8]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045f130
lea eax, [ebp + 0x514]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0045e510
add esp, 0x10
test eax, eax
jle 0x40e0ca
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + eax + 0x514]
cmp cl, 0x20
je 0x40e0b0
cmp cl, 0xd
jne 0x40e09c
cmp byte [ebp + eax + 0x515], 0xa
jne 0x40e09c
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x208]
push 0x47cc58
push eax
call fcn.00407505
add esp, 0xc
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp + 0x618]
push eax
mov ecx, edi
call fcn.0040d4f5
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
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.0045e510
cmp dword [ebp - 0x10], eax
pop ecx
jl 0x40e033
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.0040cd0b
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045dfe0
pop ecx
pop ecx
cmp byte [ebp + 0x618], bl
jne 0x40e149
mov ecx, dword [ebp - 0x18]
call fcn.0040cfa4
test eax, eax
push esi
lea eax, [ebp + 0x618]
push eax
je 0x40e130
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.SysWow64userinit.exe
jmp 0x40e13b
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.userinit.exe
lea eax, [ebp + 0x618]
push eax
call fcn.0045dff0
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
call fcn.0045e510
pop ecx
lea ecx, [ebp + 0x618]
dec ecx
cmp byte [eax + ecx], 0x2c
je 0x40e176
lea eax, [ebp + 0x618]
push 0x47cbd8
push eax
call fcn.0045dff0
pop ecx
pop ecx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402010
mov eax, dword [ebp - 0x24]
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00401f05
lea eax, [ebp + 0x618]
push eax
call fcn.0040d0c4
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.0045dff0
lea eax, [ebp + 0x514]
push str..reg
push eax
call fcn.0045dff0
add esp, 0x10
push 0x47cbd4
push 0x47ab28
lea ecx, [ebp - 0x24]
call fcn.00407914
push 0x47cbd4
push 0x47ab28
lea ecx, [ebp - 0x1c]
call fcn.00407914
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 0x40e354
mov eax, dword [0x4995b8]
mov eax, dword [eax + 0xf0]
add eax, 0x1000
push eax
call fcn.0043f919
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40e295
mov ecx, dword [0x4995b8]
mov ecx, dword [ecx + 0xf0]
add ecx, 0x1000
push ecx
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
push dword [eax + 0xf0]
mov eax, dword [eax + 0xe8]
add eax, dword [0x49da08]
push eax
push dword [ebp - 0x14]
call fcn.0045f130
add esp, 0x18
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00402010
push dword [ebp - 0x14]
call fcn.0043f924
pop ecx
mov dword [ebp - 0x14], ebx
push str._USEINIT_
push dword [ebp - 0x20]
call fcn.0045f6a0
pop ecx
pop ecx
test eax, eax
je 0x40e2cc
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.0040cd6b
push dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
push str._BASEDIR_
call fcn.00407914
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push str._USEINIT_
call fcn.00407914
push ebx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x4995b8]
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.00407505
add esp, 0xc
push ebx
push 2
push ebx
lea eax, [ebp + 0x618]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406170
lea eax, [ebp + 0x514]
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.0045dfe0
mov eax, dword [ebp - 0x18]
add eax, 0x5c0
push eax
lea eax, [ebp + 0x514]
push eax
call fcn.0045dff0
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
push dword [eax + 0x100]
mov eax, dword [eax + 0xf8]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
push dword [eax + 0x110]
mov eax, dword [eax + 0x108]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
push dword [eax + 0x120]
mov eax, dword [eax + 0x118]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
push esi
push ebx
lea eax, [ebp + 0x618]
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
push dword [eax + 0x130]
mov eax, dword [eax + 0x128]
add eax, dword [0x49da08]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
mov eax, dword [eax + 0x148]
add eax, dword [0x49da08]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045dfe0
lea eax, [ebp + 0x618]
push 0x47ab28
push eax
call fcn.0045dff0
mov eax, dword [0x4995b8]
add esp, 0x1c
push dword [eax + 0x150]
lea eax, [ebp + 0x618]
push dword [ebp - 0x14]
push eax
call fcn.0045e510
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
push esi
lea eax, [ebp + 0x618]
push ebx
push eax
call fcn.0045df50
mov eax, dword [0x4995b8]
mov esi, dword [eax + 0x138]
add esi, dword [0x49da08]
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp + 0x618]
push eax
call fcn.0045dfe0
lea eax, [ebp + 0x618]
push 0x47ab28
push eax
call fcn.0045dff0
mov eax, dword [0x4995b8]
add esp, 0x1c
push dword [eax + 0x140]
push esi
lea eax, [ebp + 0x618]
push eax
call fcn.0045e510
pop ecx
lea eax, [ebp + eax + 0x618]
push eax
call fcn.0045f130
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.0040cd6b
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.0040cd6b
mov ecx, dword [ebp - 0x18]
call fcn.0040cd02
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.0040610c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.00405fe7
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.0045dfca
add ebp, 0x720
leave
ret