Function at 0x426520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xeb8
mov eax, dword [0x519008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xa0c]
push 0x200
push 0
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00405490
push 0x200
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.00405490
push 0x200
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00405490
xor eax, eax
mov dword [ebp - 0xe90], 0xa7c2
add esp, 0x24
mov word [ebp - 0xe93], ax
lea ecx, [ebp - 0xe90]
mov byte [ebp - 0xe91], al
mov word [ebp - 0xea7], ax
mov byte [ebp - 0xea5], al
mov dword [ebp - 0xeb8], eax
mov dword [ebp - 0xeb4], eax
mov dword [ebp - 0xeb0], eax
mov dword [ebp - 0xeac], eax
mov byte [ebp - 0xea8], al
call fcn.0042be60
test al, al
jne 0x4265de
mov word [ebp - 0xe90], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xea4], 0
mov dword [ebp - 0xea0], 0
mov dword [ebp - 0xe9c], 0
mov dword [ebp - 0xe98], 0
mov byte [ebp - 0xe94], 0
test ecx, ecx
je 0x426661
cmp byte [ecx], 0
je 0x426661
mov dword [ebp - 0xea4], ecx
xor eax, eax
inc eax
cmp byte [eax + ecx], 0
jne 0x426621
mov dword [ebp - 0xea0], eax
test eax, eax
jne 0x42663a
mov dword [ebp - 0xe98], eax
jmp 0x426661
lea eax, [ebp - 0xe94]
push eax
push ecx
lea ecx, [ebp - 0xe9c]
call fcn.0042bf40
test al, al
jne 0x426661
mov dword [ebp - 0xe9c], 0
mov byte [ebp - 0xe94], al
lea eax, [ebp - 0xe90]
push 1
push eax
lea edx, [ebp - 0xeb8]
lea ecx, [ebp - 0xea4]
call fcn.00428b80
add esp, 8
test al, al
je 0x426c23
mov ecx, dword [ebp - 0xeb4]
lea eax, [ecx + 1]
cmp eax, 0x80
jae 0x42669e
mov byte [ebp + ecx - 0xa8c], 0
movzx ecx, byte [ebp - 0xe94]
add ecx, dword [ebp - 0xe98]
mov eax, dword [ebp - 0xea0]
cmp ecx, eax
jb 0x4266bd
mov dword [ebp - 0xe98], eax
jmp 0x4266ec
mov dword [ebp - 0xe98], ecx
jb 0x4266cd
mov dword [ebp - 0xe98], eax
jmp 0x4266ec
lea eax, [ebp - 0xe94]
push eax
mov eax, dword [ebp - 0xea4]
add eax, ecx
lea ecx, [ebp - 0xe9c]
push eax
call fcn.0042bf40
test al, al
jne 0x4266fd
mov dword [ebp - 0xe9c], 0
mov byte [ebp - 0xe94], 0
lea eax, [ebp - 0xe90]
push 1
push eax
lea edx, [ebp - 0xeb8]
lea ecx, [ebp - 0xea4]
call fcn.00428b80
add esp, 8
test al, al
je 0x426c23
mov esi, dword [ebp - 0xeb4]
lea eax, [esi + 1]
cmp eax, 8
jae 0x426748
push esi
push dword [ebp - 0xeb8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407040
add esp, 0xc
mov byte [ebp + esi - 0xc], 0
lea ecx, [ebp - 0xea4]
call fcn.0042ac70
lea eax, [ebp - 0xe90]
push 1
push eax
lea edx, [ebp - 0xeb8]
lea ecx, [ebp - 0xea4]
call fcn.00428b80
add esp, 8
test al, al
je 0x426c23
mov esi, dword [ebp - 0xeb4]
lea eax, [esi + 1]
cmp eax, 0x200
jae 0x4267a6
push esi
push dword [ebp - 0xeb8]
lea eax, [ebp - 0xa0c]
push eax
call fcn.00407040
add esp, 0xc
mov byte [ebp + esi - 0xa0c], 0
lea ecx, [ebp - 0xea4]
call fcn.0042ac70
or edx, 0xffffffff
lea ecx, [ebp - 0xa0c]
call fcn.0042bb20
lea eax, [ebp - 0xe90]
push 1
push eax
lea edx, [ebp - 0xeb8]
lea ecx, [ebp - 0xea4]
call fcn.00428b80
add esp, 8
test al, al
je 0x426c23
mov esi, dword [ebp - 0xeb4]
lea eax, [esi + 1]
cmp eax, 0x200
jae 0x426812
push esi
push dword [ebp - 0xeb8]
lea eax, [ebp - 0x80c]
push eax
call fcn.00407040
add esp, 0xc
mov byte [ebp + esi - 0x80c], 0
lea ecx, [ebp - 0xea4]
call fcn.0042ac70
or edx, 0xffffffff
lea ecx, [ebp - 0x80c]
call fcn.0042bb20
lea eax, [ebp - 0xe90]
push 1
push eax
lea edx, [ebp - 0xeb8]
lea ecx, [ebp - 0xea4]
call fcn.00428b80
add esp, 8
test al, al
je 0x426c23
mov esi, dword [ebp - 0xeb4]
lea eax, [esi + 1]
cmp eax, 0x200
jae 0x42687e
push esi
push dword [ebp - 0xeb8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00407040
add esp, 0xc
mov byte [ebp + esi - 0x20c], 0
or edx, 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.0042bb20
cmp byte [ebp - 0x20c], 0
je 0x426bfc
cmp byte [ebp - 0x20b], 0x3a
jne 0x426bfc
cmp byte [ebp - 0x209], 0
mov esi, 3
je 0x4268e3
mov al, byte [ebp + esi - 0x20c]
cmp al, 0x5c
je 0x4268c3
cmp al, 0x2f
jne 0x4268d8
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0042a5f0
test al, al
je 0x426bfc
inc esi
cmp byte [ebp + esi - 0x20c], 0
jne 0x4268b4
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.0042a5f0
test al, al
je 0x426bfc
push str.Copying_template_files...
push edi
call fcn.00447350
push 0
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0xa0c]
call fcn.0042bd50
add esp, 0xc
test al, al
jne 0x426927
push str.Error_copying_files
jmp 0x426c28
push str.Copying_existing_gui_files...
push edi
call fcn.00447350
lea eax, [ebp - 0x80c]
push eax
push str._s_web_upload
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.004014e0
lea eax, [ebp - 0x20c]
push eax
push str._s_web_upload
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
push 0
lea edx, [ebp - 0x60c]
lea ecx, [ebp - 0x40c]
call fcn.0042bd50
add esp, 0x2c
test al, al
jne 0x426990
push str.Error_copying_files_1
jmp 0x426c28
lea eax, [ebp - 0x80c]
push eax
push str._s_web_config
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.004014e0
lea eax, [ebp - 0x20c]
push eax
push str._s_web_config
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
push 0
lea edx, [ebp - 0x60c]
lea ecx, [ebp - 0x40c]
call fcn.0042bd50
add esp, 0x24
test al, al
je 0x426bf5
lea eax, [ebp - 0xa0c]
push eax
push str._s_web_config_lang.js
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.004014e0
add esp, 0x10
lea eax, [ebp - 0xe8c]
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, eax
je 0x426a8c
cmp word [ebp + eax*2 - 0xe8c], 0
je 0x426a49
xor ecx, ecx
mov word [ebp + eax*2 - 0xe8c], cx
lea eax, [ebp - 0xe8c]
push eax
call esi
cmp eax, 0xffffffff
je 0x426a8c
test al, 0x10
jne 0x426a8c
lea eax, [ebp - 0x20c]
push eax
push str._s_web_config_lang.js
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
add esp, 0x10
lea edx, [ebp - 0x60c]
lea ecx, [ebp - 0x40c]
call fcn.0042b800
lea eax, [ebp - 0xa0c]
push eax
push str._s_web_config_MMI.js
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.004014e0
add esp, 0x10
lea eax, [ebp - 0xe8c]
push 0x200
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x426b2a
cmp word [ebp + eax*2 - 0xe8c], 0
je 0x426ae7
xor ecx, ecx
mov word [ebp + eax*2 - 0xe8c], cx
lea eax, [ebp - 0xe8c]
push eax
call esi
cmp eax, 0xffffffff
je 0x426b2a
test al, 0x10
jne 0x426b2a
lea eax, [ebp - 0x20c]
push eax
push str._s_web_config_MMI.js
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
add esp, 0x10
lea edx, [ebp - 0x60c]
lea ecx, [ebp - 0x40c]
call fcn.0042b800
lea eax, [ebp - 0xc]
push eax
call fcn.0040bea5
add esp, 4
test eax, eax
jne 0x426b5b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x80c]
push eax
call fcn.00425b40
test al, al
jne 0x426bad
push str.Error_converting_old_DB_version
jmp 0x426c28
lea eax, [ebp - 0x80c]
push eax
push str._s_web_backoffice_guidb.db3
lea eax, [ebp - 0x40c]
push 0x200
push eax
call fcn.004014e0
lea eax, [ebp - 0x20c]
push eax
push str._s_web_backoffice_guidb.db3
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
add esp, 0x20
lea edx, [ebp - 0x60c]
lea ecx, [ebp - 0x40c]
call fcn.0042b800
test al, al
je 0x426bf5
lea eax, [ebp - 0x20c]
push eax
push str._s_web_backoffice_guidb.db3
lea eax, [ebp - 0x60c]
push 0x200
push eax
call fcn.004014e0
lea ecx, [ebp - 0x60c]
call fcn.004258d0
push 0x5040c4
push edi
call fcn.00447350
add esp, 0x18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 8
push str.Error_copying_files_2
jmp 0x426c28
lea eax, [ebp - 0x20c]
push eax
push str.Error_creating__s
push edi
call fcn.00447350
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 8
push str.Invalid_parameters
push edi
call fcn.00447350
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00403d8c
mov esp, ebp
pop ebp
ret 8