Function at 0x100030f0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareDisWin
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000316c
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x1c]
push eax
push edi
push str.path
push ecx
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [esp + 0x294]
push eax
push str.APPDATA
mov dword [esp + 0x30], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.Micromn.dll
lea ecx, [esp + 0x294]
push 0x104
push ecx
call fcn.10004366
add esp, 0xc
test byte [0x1004a968], 2
lea edx, [esp + 0x290]
mov dword [esp + 0x20], edx
je 0x100031eb
lea eax, [esp + 0x18]
push eax
push 0x10003050
lea ecx, [esp + 0x90]
push 1
push ecx
call fcn.10002e80
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.10003ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [0x10047a14]
movzx eax, word [0x10047a18]
mov ecx, dword [0x10047a1c]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x38], edx
movzx edx, word [0x10047a20]
mov word [esp + 0x3c], ax
mov eax, dword [0x10047a24]
mov dword [esp + 0x42], ecx
movzx ecx, word [0x10047a28]
mov word [esp + 0x46], dx
mov edx, dword [0x10047a2c]
mov dword [esp + 0x4c], eax
movzx eax, word [0x10047a30]
mov dword [esp + 0x56], edx
movzx edx, word [0x10047a38]
mov word [esp + 0x50], cx
mov ecx, dword [0x10047a34]
mov word [esp + 0x5a], ax
mov eax, dword [0x10047a3c]
mov dword [esp + 0x60], ecx
movzx ecx, word [0x10047a40]
mov word [esp + 0x64], dx
mov edx, dword [0x10047a44]
mov dword [esp + 0x6a], eax
movzx eax, word [0x10047a48]
mov dword [esp + 0x74], edx
movzx edx, word [0x10047a50]
mov word [esp + 0x6e], cx
mov ecx, dword [0x10047a4c]
mov dword [esp + 0x24], 1
mov dword [esp + 0x3e], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x52], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x66], edi
mov dword [esp + 0x70], edi
mov word [esp + 0x78], ax
mov dword [esp + 0x7a], edi
mov dword [esp + 0x7e], ecx
mov word [esp + 0x82], dx
mov dword [esp + 0x84], edi
lea esi, [esp + 0x38]
mov dword [esp + 0x10], 8
jmp 0x100032e2
xor edi, edi
push str.Windows
push esi
lea eax, [esp + 0x90]
push str._s_s
push eax
call fcn.10004404
add esp, 0x10
lea ecx, [esp + 0x88]
push ecx
call ebx
test eax, eax
je 0x10003310
mov edi, 1
push str.Program_Files
push esi
lea edx, [esp + 0x90]
push str._s_s
push edx
call fcn.10004404
add esp, 0x10
lea eax, [esp + 0x88]
push eax
call ebx
test eax, eax
je 0x1000333c
or edi, 2
cmp edi, 3
jne 0x1000338e
push str.Program_Files__x86_
push esi
lea ecx, [esp + 0x90]
push str._s_s
push ecx
call fcn.10004404
add esp, 0x10
lea edx, [esp + 0x88]
push edx
call ebx
test eax, eax
jne 0x10003385
push str.Program_Files
push esi
lea eax, [esp + 0x90]
push str._s_s
push eax
call fcn.10004404
add esp, 0x10
lea eax, [esp + 0x88]
jmp 0x10003390
mov eax, esi
lea ecx, [esp + 0x18]
push ecx
push 0x10003050
push 1
push eax
call fcn.10002e80
add esp, 0x10
add esi, 0xa
sub dword [esp + 0x10], 1
jne 0x100032e0
push 0x104
lea edx, [esp + 0x8c]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x18]
push eax
push 0x10003050
lea ecx, [esp + 0x90]
push 1
push ecx
call fcn.10002e80
add esp, 0x10
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareDisWin
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10003440
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0xc]
push 0x10
lea ecx, [esp + 0x2c]
push ecx
push 3
push 0
push 0x10047aa8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x49c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003ca2
mov esp, ebp
pop ebp
ret