Function at 0x4064f0
Capabilities:
Create process on windows
Enumerate gui resources
Query or enumerate registry value
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x409a6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov eax, dword [0x40d3f4]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4069b2
mov ebx, 0x104
push ebx
lea ecx, [esp + 0xa4]
push ecx
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.MSVCR70.dll_strrchr]
lea edx, [esp + 0xa0]
push 0x5c
push edx
call edi
mov ecx, dword [str.SetupArx.ini]
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
mov dword [eax], ecx
mov edx, dword [0x40b2e0]
mov dword [eax + 4], edx
mov ecx, dword [0x40b2e4]
mov dword [eax + 8], ecx
mov dl, byte [0x40b2e8]
mov byte [eax + 0xc], dl
lea eax, [esp + 0xa0]
push eax
push ebx
lea ecx, [esp + 0x1ac]
push ecx
push str.EFCSD
push str.NAME
push str.SYSTEM
call esi
lea edx, [esp + 0x1a4]
push str.HZCAD
push edx
call dword [sym.imp.MSVCR70.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40661b
mov eax, dword [str.HZCAD]
mov cx, word [0x40ad50]
lea edx, [esp + 0xa0]
push 0x5c
push edx
mov dword [0x40d3d4], eax
mov word [0x40d3d8], cx
call edi
mov ecx, dword [str.HZCad.exe]
add esp, 8
inc eax
mov dword [eax], ecx
mov edx, dword [0x40b2bc]
mov dword [eax + 4], edx
mov cx, word [0x40b2c0]
mov word [eax + 8], cx
mov dl, byte [0x40b2c2]
mov byte [eax + 0xa], dl
push 3
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x406aa1
lea ecx, [esp + 0xa0]
push ecx
push 0x20
lea edx, [esp + 0x44]
push edx
push str.AutodeskAutoCAD
push str.PLATFORM
lea eax, [esp + 0x1b8]
push eax
call esi
lea ecx, [esp + 0xa0]
push ecx
push 0x1e
push 0x40d3d4
push str.R15.0
push 0x40b294
lea edx, [esp + 0x1b8]
push edx
call esi
lea eax, [esp + 0xa0]
push eax
push 0x64
push 0x40d370
push 0x40a8e0
push str.TITLE
lea ecx, [esp + 0x1b8]
push ecx
call esi
push str.Software_
lea ecx, [esp + 0x30]
mov dword [0x40d3f4], ebp
call fcn.00402ec0
lea edx, [esp + 0x3c]
push edx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x2bc], ebp
call fcn.00404a60
push 0x5c
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x2c8], 1
call fcn.00404bf0
add esp, 0x18
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4066ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2b0], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406713
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x40d3d4
lea ecx, [esp + 0x1c]
call fcn.00402e80
cmp byte [esp + 0x3c], 0x41
jne 0x40682d
push 0x40d3d5
call dword [sym.imp.MSVCR70.dll_atoi]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edi, eax
xor edx, edx
cmp edi, 0xf
lea eax, [esp + 0x14]
push eax
setle dl
push 0x20019
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ecx
add edx, 0x80000001
push edx
call ebp
test eax, eax
jne 0x406989
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
push 0
push str.CurVer
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x406824
cmp edi, 0xf
jle 0x4067cf
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call ebp
test eax, eax
jne 0x406943
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
lea edx, [esp + 0xac]
push edx
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x406824
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push str.AcadLocation
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
jmp 0x406884
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebp
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x406989
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x28]
push edx
push ebp
push str.Location
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x406989
mov al, byte [esp + 0x3c]
lea edi, [esp + 0xa0]
dec edi
cmp al, 0x41
jne 0x4068c0
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4068a0
mov edx, dword [str._acad.exe]
mov eax, dword [0x40b254]
mov cx, word [0x40b258]
jmp 0x4068da
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4068c0
mov edx, dword [str.zwcad.exe]
mov eax, dword [0x40b248]
mov cx, word [0x40b24c]
push 0x40d360
mov dword [edi], edx
mov dword [edi + 4], eax
xor eax, eax
lea edx, [esp + 0x60]
push edx
push eax
push eax
push eax
push eax
push eax
mov word [edi + 8], cx
push eax
mov ecx, 0x11
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x84], 0x44
mov dword [esp + 0xb0], 1
mov word [esp + 0xb4], 3
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406951
mov ecx, dword [esp + 0x24]
push eax
push eax
push 0x40b230
call sub.MFC70.DLL_Ordinal_3890
lea ecx, [esp + 0x18]
call fcn.00401890
jmp 0x406aa1
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [0x40d3f4], 0
xor esi, esi
cmp esi, 0x14
jge 0x406989
push 0x40d3f4
push 0x403b20
call edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x40d3f4]
inc esi
test eax, eax
je 0x406963
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x2b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x40d3f4]
test eax, eax
je 0x406a8f
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2b8]
push eax
lea ecx, [esp + 0x14]
push 0x40b22c
push ecx
mov dword [esp + 0x2bc], 5
call fcn.00404a40
mov esi, dword [esp + 0x1c]
mov eax, esi
add esp, 0xc
mov dword [esp + 0x30], 1
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406a10
sub eax, ecx
inc eax
mov dword [esp + 0x34], eax
mov eax, dword [esi - 0xc]
mov ebp, dword [esi - 4]
lea edx, [eax + 1]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, edx
or eax, ecx
jge 0x406a45
push edx
lea ecx, [esp + 0x14]
call fcn.00402490
mov esi, dword [esp + 0x10]
push 0x7d0
mov dword [esp + 0x3c], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x40d3f4]
lea edx, [esp + 0x30]
push edx
push eax
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi - 0x10]
mov dword [esp + 0x2b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406aa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x406aa1
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0x40b20c
call sub.MFC70.DLL_Ordinal_3890
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a4
ret 4