Function at 0x45c29f
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x4a4
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push edi
call fcn.0040338e
lea ecx, [esp + 0x298]
call fcn.0040338e
lea ecx, [esp + 0x228]
call fcn.00451993
push dword [esp + 0x14]
xor ebp, ebp
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x10]
call fcn.00403e87
push 0x534638
lea ecx, [esp + 0x29c]
call fcn.0040367e
mov edx, dword [esp + 0x29c]
test edx, edx
je 0x45c31a
mov eax, dword [esp + 0x2a0]
inc eax
push eax
push edx
call fcn.0042e95a
mov edx, dword [esp + 0x2a4]
pop ecx
pop ecx
lea ecx, [esp + 0x228]
call fcn.00451907
mov eax, dword [esp + 0x2a0]
add eax, eax
push eax
push edx
call fcn.004519fa
lea ecx, [esp + 0x228]
call fcn.00451ab2
push dword [esp + 0x2a4]
lea ecx, [esp + 0x22c]
push dword [esp + 0x2a0]
call fcn.00451b22
push str.MetaQuotes_
lea ecx, [esp + 0x14]
call fcn.004035e9
mov eax, dword [esi + 0x58]
mov ebx, 0xa54
add eax, ebx
push str.terminal
push eax
call fcn.0042bff5
pop ecx
pop ecx
test eax, eax
jne 0x45c3e3
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45c4e5
mov edi, dword [esi + 0x58]
add edi, ebx
je 0x45c4b2
mov esi, edi
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x45c3a1
sub esi, edx
sar esi, 1
je 0x45c4b2
mov edx, dword [esp + 0x18]
lea eax, [edx + esi]
cmp eax, dword [esp + 0x1c]
jae 0x45c4b6
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push edi
push eax
call fcn.0041d1d0
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, esi
jmp 0x45c4a0
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x848]
cmp eax, 1
jne 0x45c424
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45c4e5
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x1a]
cmp eax, dword [esp + 0x1c]
jae 0x45c4b6
mov esi, str.MetaTrader_5_Administrator
lea edi, [ecx + edx*2]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
add ecx, 0x1a
jmp 0x45c4a0
cmp eax, 9
jne 0x45c449
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45c4e5
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x1a]
cmp eax, dword [esp + 0x1c]
jae 0x45c4b6
mov esi, str.MetaTrader_4_Administrator
jmp 0x45c413
cmp eax, 2
jne 0x45c46e
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45c4e5
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x14]
cmp eax, dword [esp + 0x1c]
jae 0x45c4b6
mov esi, str.MetaTrader_5_Manager
jmp 0x45c491
cmp eax, 0xa
jne 0x45c555
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x45c4e5
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x14]
cmp eax, dword [esp + 0x1c]
jae 0x45c4b6
mov esi, str.MetaTrader_4_Manager
lea edi, [ecx + edx*2]
push 0xa
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
add ecx, 0x14
mov eax, dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x18], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x45c540
lea eax, [edx + 1]
cmp eax, dword [esp + 0x1c]
jae 0x45c4e9
push 0x5c
pop eax
mov word [ecx + edx*2], ax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x18], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test ecx, ecx
je 0x45c540
mov edi, dword [esp + 0x29c]
test edi, edi
je 0x45c540
mov esi, edi
lea ebx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bp
jne 0x45c4fd
sub esi, ebx
sar esi, 1
je 0x45c540
lea eax, [edx + esi]
cmp eax, dword [esp + 0x1c]
jae 0x45c540
lea eax, [esi + esi]
push eax
lea eax, [ecx + edx*2]
push edi
push eax
call fcn.0041d1d0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x14]
add ecx, esi
mov dword [esp + 0x18], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c555
lea ecx, [esp + 0x10]
call fcn.00417d76
lea ecx, [esp + 0x228]
call fcn.004519ce
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a4
ret