Function at 0x434f20
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x4cd724]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004677c0
add esp, 0xc
mov dword [ebp - 0x214], 0
cmp dword [ebp + 0xc], 0
je 0x4351c2
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0046a10d
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edx, dword [ebp + 0x10]
push edx
push str.OLRDisplay__s_
call fcn.00456a00
add esp, 8
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.004677c0
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x4cfcf0], eax
cmp dword [0x4cfcf0], 0
je 0x4351a9
xor edx, edx
mov word [ebp - 0x628], dx
push 0x206
push 0
lea eax, [ebp - 0x626]
push eax
call fcn.004677c0
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.OLRegist.ini
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x628]
push edx
push str.OLRDisplay____OLRegistIni_s
call fcn.00456a00
add esp, 8
lea eax, [ebp - 0x628]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x4f1
push ecx
push 0x4b3078
push 0x4b3090
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp + 0xc]
add eax, 0x531
push eax
push str.NameProduct
push 0x4b30b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x491
push edx
push 0x4b30b8
push 0x4b30d8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x628]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4cfcf0]
push edx
call fcn.00434530
add esp, 8
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x435180
cmp dword [ebp + 0x14], 0
je 0x435180
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0x208]
cmp ecx, 1
jne 0x435119
mov dword [ebp - 0x630], 0x69
jmp 0x435159
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 0x208]
cmp eax, 2
jne 0x435134
mov dword [ebp - 0x630], 0x6d
jmp 0x435159
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + 0x208]
cmp edx, 3
jne 0x43514f
mov dword [ebp - 0x630], 0x86
jmp 0x435159
mov dword [ebp - 0x630], 0x89
mov eax, dword [ebp + 0xc]
push eax
push 0x4348c0
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 0x630]
push edx
mov eax, dword [0x4cfcf0]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 0x214], eax
mov ecx, dword [0x4cfcf0]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x62c], eax
mov edx, dword [ebp - 0x62c]
push edx
push str.OLRDisplay____FreeLibrary_____d
call fcn.00456a00
add esp, 8
jmp 0x4351b3
mov dword [ebp - 0x214], 0x6e
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x4351cc
mov dword [ebp - 0x214], 0x57
mov ecx, dword [ebp - 0x214]
push ecx
push str.OLRDisplay_____d
call fcn.00456a00
add esp, 8
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004677af
mov esp, ebp
pop ebp
ret