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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4297e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x446044]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea ecx, [esp + 0x14]
call fcn.00420f90
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x10]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x40abb3
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401610
mov eax, dword [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40abcb
xor eax, eax
jmp 0x40abe5
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40abd0
sub eax, edi
sar eax, 1
js 0x40b141
cmp eax, dword [ecx - 8]
jg 0x40b141
lea edi, [esi + 0x70]
push edi
push 0x43e2d8
push 0x17
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x1c]
push 0
push 0x43e288
mov word [ecx + eax*2], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov word [esp + 0x2c], 3
mov dword [esp + 0x34], ebx
mov byte [esp + 0x78], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [edi]
push str.NewParser
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], eax
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
jne 0x40ac6a
push 0x8007000e
call fcn.004016e0
mov byte [esp + 0x78], 2
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x3c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [edx + 0x140]
push edi
push eax
call ecx
mov byte [esp + 0x78], 1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push str.xmlns:oehttp:__www.aerokom.ru_xmlns:pmpurn:aerokom
mov word [esp + 0x30], 8
call ebx
test eax, eax
mov dword [esp + 0x34], eax
jne 0x40ace9
push 0x8007000e
mov word [esp + 0x30], 0xa
mov dword [esp + 0x38], 0x8007000e
call fcn.004016e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push str.SelectionNamespaces
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], ecx
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x24], edi
jne 0x40ad27
push 0x8007000e
call fcn.004016e0
mov byte [esp + 0x78], 3
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x140]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
push edi
push eax
call ecx
mov byte [esp + 0x78], 1
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push str.XPath
mov word [esp + 0x30], 8
call ebx
test eax, eax
mov dword [esp + 0x34], eax
jne 0x40ada6
push 0x8007000e
mov word [esp + 0x30], 0xa
mov dword [esp + 0x38], 0x8007000e
call fcn.004016e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [esi + 0x70]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
push str.SelectionLanguage
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x4c], eax
call ebx
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x40ade0
push 0x8007000e
call fcn.004016e0
mov byte [esp + 0x78], 4
mov edx, dword [esp + 0x3c]
mov ecx, dword [edi]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
push ebx
mov dword [eax + 0xc], edx
mov eax, dword [ecx + 0x140]
push edi
call eax
mov byte [esp + 0x78], 1
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 0x40]
lea ebx, [esi + 0x40]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x40ae46
push 0x104
mov ecx, ebx
call fcn.004015c0
mov eax, dword [ebx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x40ae5c
mov ecx, dword [eax + 4]
push ecx
mov ecx, ebx
call fcn.00401610
mov eax, dword [ebx]
mov edx, dword [0x447ad0]
push 0x104
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [ebx]
test ecx, ecx
jne 0x40ae7b
xor eax, eax
jmp 0x40ae95
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ae80
sub eax, edi
sar eax, 1
js 0x40b141
cmp eax, dword [ecx - 8]
jg 0x40b141
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
mov word [ecx + eax*2], 0
lea edi, [esi + 0x44]
push ebx
mov ecx, edi
call fcn.004041e0
mov eax, dword [edi]
push 0x5c
push eax
call dword [sym.imp.MSVCR80.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x40aecb
or eax, 0xffffffff
jmp 0x40aecf
sub eax, dword [edi]
sar eax, 1
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov edx, edi
call fcn.00401e00
mov byte [esp + 0x78], 5
push eax
mov ecx, edi
call fcn.004041e0
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x18]
call fcn.00401130
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esi + 0x60]
push eax
push 0x42c438
push 0x17
push 0
push 0x43e298
call ebx
lea eax, [esi + 0x68]
push eax
push 0x43e2e8
push 0x17
push 0
push 0x43e2a8
call ebx
lea eax, [esi + 0x6c]
push eax
push 0x42c448
push 0x17
push 0
push 0x43e2b8
call ebx
lea edi, [esi + 0x64]
push edi
push 0x43e2c8
push 0x17
push 0
push 0x43e278
call ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0040c750
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x40afaf
mov ecx, dword [edi]
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x40af91
push 0x8007000e
call fcn.004016e0
mov byte [esp + 0x78], 7
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push ebx
push eax
mov eax, dword [edx + 0x4c]
call eax
mov byte [esp + 0x78], 6
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [edi]
push str.PMPost
mov dword [esp + 0x1c], ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x24], ebx
jne 0x40afd4
push 0x8007000e
call fcn.004016e0
mov byte [esp + 0x78], 8
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0
push eax
call edx
mov byte [esp + 0x78], 6
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi]
test eax, eax
mov ebx, 9
mov word [esp + 0x4c], bx
mov dword [esp + 0x54], eax
je 0x40b015
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov byte [esp + 0x78], bl
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push edx
lea edx, [esp + 0x54]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ecx, dword [esp + 0x14]
mov edi, dword [edi]
push ecx
push edi
mov ecx, esi
call fcn.00421740
mov eax, dword [esi + 0x68]
xor edi, edi
cmp eax, edi
mov word [esp + 0x5c], bx
mov dword [esp + 0x64], eax
je 0x40b076
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], 0xa
mov eax, dword [esi + 0x60]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x60]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esi + 0x84], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.00404750
add esp, 4
mov byte [esp + 0x78], 0xb
lea ecx, [esi + 0x48]
push eax
call fcn.004041e0
mov byte [esp + 0x78], 0xa
lea ecx, [esp + 0x18]
call fcn.00401130
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov byte [esi + 0x94], 0
mov byte [esp + 0x78], bl
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x5c]
push eax
call esi
mov byte [esp + 0x78], 6
lea ecx, [esp + 0x4c]
push ecx
call esi
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x1c]
call fcn.00401130
mov byte [esp + 0x78], 0
lea edx, [esp + 0x2c]
push edx
call esi
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401130
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004016e0
int3