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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4e43e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004421a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0046a6b6
add esp, 8
test eax, eax
je 0x40ef80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 8
push eax
mov dword [ebp - 0x418], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push edi
push 0
mov ecx, 0x4e7db4
call fcn.0040c880
mov ecx, 0x4e7df0
call fcn.00405920
test eax, eax
jne 0x40effb
push eax
push str.Lite
push 0x4bd568
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040c9a0
sub esp, 0x28
mov eax, esp
push 0
push 0
push 0x4bd594
mov dword [eax + 0x24], 0
call fcn.0040c7a0
mov ecx, eax
call fcn.00408bb0
call fcn.00412da0
mov esi, eax
test esi, esi
je 0x40f066
mov ecx, dword [esi]
push esi
call dword [ecx]
mov ecx, dword [esi]
push 0x4bd59c
push 0xca
push edi
push esi
call dword [ecx + 4]
test eax, eax
jne 0x40f066
mov eax, dword [esi]
push str.init_xml_failed_
push esi
call dword [eax + 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a228
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040e090
mov edi, dword [0x4e7da0]
add esp, 8
add edi, 0x10
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4e7dec]
test esi, esi
je 0x40f0d8
cmp dword [esi + 4], 0
jle 0x40f0a6
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4e7dec]
test esi, esi
je 0x40f0d8
mov eax, dword [esi]
test eax, eax
je 0x40f0bf
push eax
call fcn.0046a836
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00429e1a
add esp, 8
push edi
mov dword [0x4e7dec], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4e7de8]
test esi, esi
je 0x40f131
mov eax, dword [esi]
test eax, eax
je 0x40f108
push eax
call fcn.0046a836
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40f11f
push eax
call fcn.0046a836
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.00429e1a
add esp, 8
mov esi, dword [0x4e7de0]
test esi, esi
je 0x40f163
cmp dword [esi], 0
je 0x40f163
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40f14d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi + 0x20]
push 0
mov dword [esi + 0x10], 0
call eax
add esi, 0x24
cmp dword [esi], 0
jne 0x40f140
mov esi, dword [0x4e3068]
mov ecx, dword [0x4e306c]
cmp esi, ecx
jae 0x40f18d
mov eax, dword [esi]
test eax, eax
je 0x40f186
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x4e306c]
add esi, 4
cmp esi, ecx
jb 0x40f173
mov ecx, 0x4e7db4
call fcn.0040e530
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a228
mov esp, ebp
pop ebp
ret 0x10