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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x633754]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov dword [0x640194], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
movzx ecx, al
shl cx, 8
shr ax, 8
push 0x639230
or cx, ax
push 0x104
mov word [0x640190], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, 0x500
cmp word [0x640190], ax
jae 0x4178c5
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0x400
push 0x47e
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x30
push 0x5df7a8
push dword [ebp - 0x210]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret 0x10
call fcn.00414270
mov dword [0x6391e8], eax
call fcn.004104e0
call fcn.0041aa30
call fcn.0041bd80
call fcn.0041bf50
call fcn.0041c0e0
call fcn.0041b900
push 0x6391f0
call fcn.00414220
add esp, 4
cmp dword [0x6394a0], 0
je 0x417921
push 0
call fcn.004029f0
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret 0x10
cmp dword [0x6391e8], 0
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
je 0x41793d
push 0x5df7c4
push 0x5df788
call esi
cmp dword [0x639478], 0
je 0x417952
push 0x5df7c8
push 0x5df788
call esi
call fcn.00418e40
test eax, eax
jne 0x417b25
call fcn.00418c40
test eax, eax
jne 0x417b25
call fcn.00418650
test eax, eax
jne 0x417b25
push eax
call dword [sym.imp.ole32.dll_OleInitialize]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 8
push eax
mov dword [ebp - 0x21c], 0x6ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x5df7cc
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.uxtheme.dll
mov dword [0x6379b4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x210]
push esi
mov dword [0x6379b8], eax
call fcn.00516dd0
call fcn.00419680
push esi
call fcn.00417b40
add esp, 8
test eax, eax
je 0x417b25
push ebx
push edi
mov ebx, esi
push ebx
call fcn.00417bb0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x417b25
mov esi, dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x64
push ebx
call esi
push 0x65
push ebx
mov dword [ebp - 0x214], eax
call esi
push 0
push 0
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x23c]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x417ae5
mov esi, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov ebx, dword [ebp - 0x214]
nop dword [eax]
push dword [0x63746c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x417a9b
mov ecx, dword [ebp - 0x23c]
mov eax, dword [0x63746c]
cmp ecx, eax
je 0x417a70
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x417a9b
mov eax, dword [0x63746c]
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x417ac4
lea eax, [ebp - 0x23c]
push eax
push dword [0x63746c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x417ac4
lea eax, [ebp - 0x23c]
push eax
push ebx
push edi
call esi
test eax, eax
jne 0x417ac4
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x417a40
mov ebx, dword [ebp - 0x210]
call fcn.00516df0
push ebx
push 0x5df788
call dword [sym.imp.USER32.dll_UnregisterClassW]
mov eax, dword [0x6379b8]
test eax, eax
je 0x417b06
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0x234]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052a352
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0052a352
mov esp, ebp
pop ebp
ret 0x10