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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4e13b0]
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.00440bc0
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.00440bc0
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.004690d6
add esp, 8
test eax, eax
je 0x40ef50
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, 0x4e4bcc
call fcn.0040c850
mov ecx, 0x4e4c08
call fcn.00405900
test eax, eax
jne 0x40efcb
push eax
push str.Lite
push 0x4bb558
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.00428c45
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040c970
sub esp, 0x28
mov eax, esp
push 0
push 0
push 0x4bb584
mov dword [eax + 0x24], 0
call fcn.0040c770
mov ecx, eax
call fcn.00408b90
call fcn.00412d80
mov esi, eax
test esi, esi
je 0x40f036
mov ecx, dword [esi]
push esi
call dword [ecx]
mov ecx, dword [esi]
push 0x4bb58c
push 0xca
push edi
push esi
call dword [ecx + 4]
test eax, eax
jne 0x40f036
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.00428c45
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040e060
mov edi, dword [0x4e4bb8]
add esp, 8
add edi, 0x10
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x4e4c04]
test esi, esi
je 0x40f0a8
cmp dword [esi + 4], 0
jle 0x40f076
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [0x4e4c04]
test esi, esi
je 0x40f0a8
mov eax, dword [esi]
test eax, eax
je 0x40f08f
push eax
call fcn.00469256
add esp, 4
mov dword [esi], 0
push 0xc
push esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0042883a
add esp, 8
push edi
mov dword [0x4e4c04], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4e4c00]
test esi, esi
je 0x40f101
mov eax, dword [esi]
test eax, eax
je 0x40f0d8
push eax
call fcn.00469256
add esp, 4
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40f0ef
push eax
call fcn.00469256
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
mov dword [esi + 8], 0
call fcn.0042883a
add esp, 8
mov esi, dword [0x4e4bf8]
test esi, esi
je 0x40f133
cmp dword [esi], 0
je 0x40f133
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40f11d
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 0x40f110
mov esi, dword [0x4e0068]
mov ecx, dword [0x4e006c]
cmp esi, ecx
jae 0x40f15d
mov eax, dword [esi]
test eax, eax
je 0x40f156
mov eax, dword [eax + 0x1c]
push 0
call eax
mov ecx, dword [0x4e006c]
add esi, 4
cmp esi, ecx
jb 0x40f143
mov ecx, 0x4e4bcc
call fcn.0040e500
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.00428c45
mov esp, ebp
pop ebp
ret 0x10