Function at 0x51a5a90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5232ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x52c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x544]
mov esi, dword [esp + 0x540]
push 0x52c722a
push 1
push 0x10b5
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], eax
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x534], 0
mov ebp, dword [esp + 0x53c]
push ebp
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._ParseCrossBranchConfigFile__s_
push eax
push edi
call fcn.051ae2d0
or ebx, 0xffffffff
add esp, 0x10
mov dword [esp + 0x534], ebx
lea ecx, [esp + 0x18]
call fcn.051ae2c0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x51a5ba6
push str._WARNING:
push 0xd2
push 0x10ba
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov dword [esp + 0x534], 1
push ebp
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push str._ParseCrossBranchConfigFile:_cat_not_find_cross_branch_config_file
push eax
push esi
call fcn.051ae2d0
add esp, 0xc
mov dword [esp + 0x534], ebx
lea ecx, [esp + 0x18]
call fcn.051ae2c0
lea eax, [ebx + 2]
jmp 0x51a62ef
push 0x52ab1d4
push esi
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
mov dword [esp + 0x34], edi
test edi, edi
jne 0x51a5c21
push str._ERROR:
push 0xff
push 0x10c1
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov dword [esp + 0x534], 2
push ebp
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._Error__cross_branch_config_file__s_open_failed_
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
mov dword [esp + 0x534], ebx
lea ecx, [esp + 0x18]
call fcn.051ae2c0
mov eax, 2
jmp 0x51a62ef
push 0x400
lea ecx, [esp + 0x12c]
push 0
push ecx
mov dword [esp + 0x20], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x52c722a
lea ecx, [esp + 0xcc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x534], 3
push 0x52c722a
lea ecx, [esp + 0xb0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x534], 4
lea ecx, [esp + 0xe4]
call fcn.051956b0
mov bl, 5
mov byte [esp + 0x534], bl
push edi
lea edx, [esp + 0x12c]
push 0x400
push edx
call dword [sym.imp.MSVCR90.dll_fgets]
add esp, 0xc
test eax, eax
je 0x51a629c
jmp 0x51a5cb7
mov ebp, dword [esp + 0x53c]
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0xcc]
call dword [0x523a2ec]
push 1
push 2
push 0x52ab1e0
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
test esi, esi
jl 0x51a6240
push esi
push 0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x534], 6
push eax
lea ecx, [esp + 0xe8]
call dword [0x523a2b0]
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0xfc], 0x10
mov eax, dword [esp + 0xe8]
jae 0x51a5d40
lea eax, [esp + 0xe8]
push eax
push 0
call fcn.05194970
add esp, 8
test eax, eax
jne 0x51a6009
push 1
lea ebp, [esi + 1]
push ebp
push 0x529080c
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov edx, edi
sub edx, esi
dec edx
push edx
push ebp
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x534], 8
push eax
lea ecx, [esp + 0x104]
call dword [0x523a2b0]
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x104]
mov esi, 0x10
cmp dword [esp + 0x118], esi
jae 0x51a5dc9
lea eax, [esp + 0x104]
push eax
push 0
call fcn.05194970
add esp, 8
test eax, eax
jne 0x51a606b
push 1
lea ebp, [edi + 1]
push ebp
push 0x529080c
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov esi, eax
test esi, esi
jl 0x51a60d3
mov ecx, esi
sub ecx, edi
dec ecx
push ecx
push ebp
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x534], 0xb
push eax
lea ecx, [esp + 0xb0]
call dword [0x523a2b0]
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x90]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xb0]
mov edx, ebp
cmp edi, 0x10
jae 0x51a5e60
lea edx, [esp + 0xb0]
call fcn.05195690
test al, al
je 0x51a6116
mov eax, ebp
cmp edi, 0x10
jae 0x51a5e7b
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
push 1
lea ebp, [esi + 1]
push ebp
push 0x529080c
lea ecx, [esp + 0xd4]
mov dword [esp + 0x128], eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
sub eax, esi
dec eax
push eax
push ebp
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x534], 0xe
push eax
lea ecx, [esp + 0xb0]
call dword [0x523a2b0]
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x74]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0xc4]
mov ebp, dword [esp + 0xb0]
mov edx, ebp
cmp esi, 0x10
jae 0x51a5f00
lea edx, [esp + 0xb0]
call fcn.05195690
test al, al
je 0x51a617f
mov eax, ebp
cmp esi, 0x10
jae 0x51a5f1b
lea eax, [esp + 0xb0]
mov ebp, dword [sym.imp.MSVCR90.dll_atoi]
push eax
call ebp
add esp, 4
push 1
lea esi, [edi + 1]
push esi
push 0x529080c
lea ecx, [esp + 0xd4]
mov dword [esp + 0x12c], eax
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
test eax, eax
jl 0x51a61e8
sub eax, edi
dec eax
push eax
push esi
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0xd4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [esp + 0x534], 0x11
push eax
lea ecx, [esp + 0xb0]
call dword [0x523a2b0]
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov esi, dword [esp + 0xc4]
mov edi, dword [esp + 0xb0]
mov edx, edi
cmp esi, 0x10
jae 0x51a5fa8
lea edx, [esp + 0xb0]
call fcn.05195690
test al, al
je 0x51a6214
mov eax, edi
cmp esi, 0x10
jae 0x51a5fc3
lea eax, [esp + 0xb0]
push eax
call ebp
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x128], al
add esp, 4
lea eax, [esp + 0xe4]
push eax
call fcn.051a20f0
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x12c]
push 0x400
push edx
call dword [sym.imp.MSVCR90.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x51a5cb0
jmp 0x51a629c
push str._ERROR:
push 0xff
push 0x10da
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x534], 7
cmp dword [esp + 0xfc], 0x10
mov esi, dword [esp + 0xe8]
jae 0x51a6048
lea esi, [esp + 0xe8]
push ebp
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._ParseCrossBranchConfigFile__:_File_Path___s__has_invalid_characters
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
jmp 0x51a6284
push str._ERROR:
push 0xff
push 0x10e6
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x534], 9
cmp dword [esp + 0x118], esi
mov esi, dword [esp + 0x104]
jae 0x51a60a9
lea esi, [esp + 0x104]
mov eax, dword [esp + 0x53c]
push eax
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._ParseCrossBranchConfigFile__:_File_Path___s__has_invalid_characters
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
jmp 0x51a6284
push str._ERROR:
push 0xff
push 0x10ef
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x534], 0xa
mov ecx, dword [esp + 0x53c]
push ecx
mov ecx, 0x53f4cc8
call fcn.05065960
push str._Error__Un_recognized_file_format
jmp 0x51a6277
push str._ERROR:
push 0xff
push 0x10f6
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x534], 0xc
cmp dword [esp + 0xc4], 0x10
mov esi, dword [esp + 0xb0]
jae 0x51a6155
lea esi, [esp + 0xb0]
mov edx, dword [esp + 0x53c]
push edx
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._Error__Invalid_file_size:__s_n
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
jmp 0x51a6284
push str._ERROR:
push 0xff
push 0x1107
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x534], 0xf
cmp dword [esp + 0xc4], 0x10
mov esi, dword [esp + 0xb0]
jae 0x51a61be
lea esi, [esp + 0xb0]
mov eax, dword [esp + 0x53c]
push eax
mov ecx, 0x53f4cc8
call fcn.05065960
mov eax, dword [eax + 8]
push esi
push str._Error__Invalid_file_size:__s_n
push eax
push edi
call fcn.051ae2d0
add esp, 0x10
jmp 0x51a6284
push str._ERROR:
push 0xff
push 0x1111
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x534], 0x10
jmp 0x51a60fa
push str._ERROR:
push 0xff
push 0x1118
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov edi, eax
mov byte [esp + 0x534], 0x12
jmp 0x51a613d
push str._ERROR:
push 0xff
push 0x1122
push str..MetaUtilityMETA_misc_utils.cpp
lea ecx, [esp + 0x28]
call fcn.051ae270
mov esi, eax
mov byte [esp + 0x534], 0x13
push ebp
mov ecx, 0x53f4cc8
call fcn.05065960
push str._Error__cross_branch_config_parsing_failed_
mov eax, dword [eax + 8]
push eax
push esi
call fcn.051ae2d0
add esp, 0xc
mov byte [esp + 0x534], bl
lea ecx, [esp + 0x18]
call fcn.051ae2c0
mov dword [esp + 0x14], 3
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov byte [esp + 0x534], 4
lea ecx, [esp + 0xe4]
call fcn.0514ede0
mov byte [esp + 0x534], 3
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x534], 0xffffffff
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x52c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.0520b902
add esp, 0x524
ret