Function at 0x431b60
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x494441
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4bea30]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bea30]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
push str.InitializeCommonParam
push str.CScriptManager
mov edi, ecx
call fcn.0042af10
add esp, 8
call fcn.0045525d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x431bc9
push 0x80004005
call fcn.004022b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x450], 0
mov eax, dword [edi + 0x1c]
cmp dword [edi + 0xc], eax
jle 0x431c05
test eax, eax
jl 0x431ea7
cmp eax, dword [edi + 0xc]
jge 0x431ea7
mov ecx, dword [edi + 8]
mov ebp, dword [ecx + eax*4]
jmp 0x431c07
xor ebp, ebp
mov eax, dword [edi + 0x28]
push eax
lea ecx, [esp + 0x20]
call fcn.00404740
mov byte [esp + 0x450], 1
mov esi, dword [esp + 0x1c]
test esi, esi
lea ecx, [edi + 0x30]
jne 0x431c2b
xor eax, eax
jmp 0x431c3f
mov eax, esi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x431c30
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00404b00
lea edx, [esp + 0x1c]
push edx
mov ebx, str._cdres
call fcn.004339c0
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
add esp, 4
push str.DirMember
push str.Main
mov ecx, ebp
call edx
test eax, eax
je 0x431ccb
mov eax, dword [ebp]
mov edx, dword [eax + 0x78]
lea ecx, [esp + 0x18]
push ecx
push 1
mov ecx, ebp
call edx
test eax, eax
je 0x431ccb
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00435540
mov edx, dword [edi + 0x28]
test edx, edx
jne 0x431c9b
xor eax, eax
jmp 0x431caf
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431ca0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00404b00
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004339c0
add esp, 4
mov edx, dword [esp + 0x1c]
test edx, edx
lea ebp, [edi + 0x2c]
jne 0x431cda
xor eax, eax
jmp 0x431cef
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431ce0
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, ebp
call fcn.00404b00
lea esi, [edi + 0x154]
lea ebx, [edi + 0x38]
push esi
call fcn.00431f90
movzx edx, word [esi]
push edx
push ebx
mov ecx, edi
call fcn.004322b0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push 0x19
lea eax, [esp + 0x3c]
push eax
push 0
call esi
test eax, eax
je 0x431d3f
lea ecx, [esp + 0x34]
push ecx
push edi
mov eax, str._COMMON_DESKTOP_
mov ecx, 1
call fcn.00435f90
push 1
push 0x17
lea edx, [esp + 0x3c]
push edx
push 0
call esi
test eax, eax
je 0x431d65
lea eax, [esp + 0x34]
push eax
push edi
mov eax, str._COMMON_PROGRAMS_
mov ecx, 1
call fcn.00435f90
push 1
push 0x16
lea ecx, [esp + 0x3c]
push ecx
push 0
call esi
test eax, eax
je 0x431d8b
lea edx, [esp + 0x34]
push edx
push edi
mov eax, str._COMMON_STARTMENU_
mov ecx, 1
call fcn.00435f90
push 1
push 0x10
lea eax, [esp + 0x3c]
push eax
push 0
call esi
test eax, eax
je 0x431db1
lea ecx, [esp + 0x34]
push ecx
push edi
mov eax, str._USER_DESKTOP_
mov ecx, 1
call fcn.00435f90
push 1
push 2
lea edx, [esp + 0x3c]
push edx
push 0
call esi
test eax, eax
je 0x431dd7
lea eax, [esp + 0x34]
push eax
push edi
mov eax, str._USER_PROGRAMS_
mov ecx, 1
call fcn.00435f90
push 1
push 0xb
lea ecx, [esp + 0x3c]
push ecx
push 0
call esi
test eax, eax
je 0x431dfd
lea edx, [esp + 0x34]
push edx
push edi
mov eax, str._USER_STARTMENU_
mov ecx, 1
call fcn.00435f90
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
push 0x4a0734
push edx
call fcn.004045e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push edi
mov eax, str._DESKTOP_WIDTH_
mov ecx, 1
call fcn.00435f90
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push 0x4a0734
push edx
call fcn.004045e0
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
push edi
mov eax, str._DESKTOP_HEIGHT_
mov ecx, 1
call fcn.00435f90
mov eax, dword [ebp]
push eax
mov ecx, edi
call fcn.00433d50
test eax, eax
jle 0x431ef2
cmp dword [edi + 0x19c], 1
jne 0x431ef2
mov eax, dword [edi + 0x1a8]
push eax
lea ecx, [esp + 0x24]
call fcn.00404740
mov byte [esp + 0x450], 2
cmp dword [edi + 0x19c], 0
jg 0x431eac
jmp fcn.00455154
mov ecx, dword [edi + 0x198]
mov ebx, dword [ecx]
lea edx, [esp + 0x20]
push edx
call fcn.004339c0
mov ecx, dword [esp + 0x24]
add esp, 4
call fcn.004362d0
mov byte [esp + 0x450], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431ef2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.InitializeCommonParam
push str.CScriptManager
xor esi, esi
call fcn.0042b0b0
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431f2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x450], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0047a105
add esp, 0x440
ret