Function at 0x455ef0
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47468b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64c
mov eax, dword [0x49c1c8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x658], ecx
mov dword [ebp - 0x654], 0
mov byte [ebp - 0x435], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402910
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00412ae0
mov eax, dword [ebp - 0x14]
push eax
push str.CommandLine:__s
push 0x49d444
call fcn.00441600
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x658]
call fcn.00454330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00405020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x455fab
mov edx, dword [ebp - 0x10]
push edx
push str.Default_Config_file_found:__s
push 0x49d444
call fcn.00441600
add esp, 0xc
mov byte [ebp - 0x435], 1
jmp 0x455fc5
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.Default_Config_file:__s_not_found:__ld
push 0x49d444
call fcn.00441600
add esp, 0x10
push 0x104
lea edx, [ebp - 0x644]
push edx
push 0
call dword [0x49c268]
test eax, eax
jne 0x45603b
push str.GetModuleFileName_failed
push str.class_ATL::CStringT_unsigned_short_class_ATL::StrTraitATL_unsigned_short_class_ATL::ChTraitsCRT_unsigned_short________thiscall_Model::LocateConfigFile_void_
push 0x358
push str..Model.cpp
push 1
mov ecx, 0x49d444
call fcn.00441760
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402a80
mov ecx, dword [ebp - 0x654]
or ecx, 1
mov dword [ebp - 0x654], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402980
mov eax, dword [ebp + 8]
jmp 0x45633c
lea edx, [ebp - 0x644]
push edx
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 4
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405020
push eax
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4560db
lea ecx, [ebp - 0x644]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x648], eax
mov edx, dword [ebp - 0x648]
push edx
call dword [sym.imp.MSVCR71.dll__wcslwr]
add esp, 4
cmp dword [ebp - 0x648], 0
je 0x4560d9
mov eax, dword [ebp - 0x648]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4560d9
mov edx, dword [ebp - 0x648]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00456360
add esp, 8
mov dword [ebp - 0x1c], eax
jmp 0x4560fb
lea ecx, [ebp - 0x644]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
push eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00456360
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x456303
push 0x488d5c
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
cmp eax, dword [ebp - 0x1c]
jne 0x45612b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004135e0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
push eax
call dword [sym.imp.MSVCR71.dll_iswspace]
add esp, 4
test eax, eax
je 0x456150
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004135e0
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x45612b
push 0x488d60
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
cmp eax, dword [ebp - 0x1c]
jne 0x456185
push str._silent
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00456360
add esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dx, word [ecx]
push edx
call dword [sym.imp.MSVCR71.dll_iswspace]
add esp, 4
test eax, eax
je 0x4561aa
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004135e0
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x456185
push 0x488d80
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
cmp eax, dword [ebp - 0x1c]
jne 0x4561d0
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004135e0
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp eax, 1
jbe 0x45623c
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x650], ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
sub eax, 1
push eax
mov eax, dword [ebp - 0x650]
push eax
call fcn.00456360
add esp, 8
push 0x488d84
mov ecx, dword [ebp - 0x650]
push ecx
call dword [sym.imp.MSVCR71.dll_wcsstr]
add esp, 8
cmp eax, dword [ebp - 0x650]
jne 0x45623a
push 0
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.MSVCR71.dll__wcsset]
add esp, 8
jmp 0x45627a
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402a80
mov ecx, dword [ebp - 0x654]
or ecx, 1
mov dword [ebp - 0x654], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402980
mov eax, dword [ebp + 8]
jmp 0x45633c
mov edx, dword [ebp - 0x1c]
push edx
push 0x488d88
push 0x49d444
call fcn.00441600
add esp, 0xc
lea eax, [ebp - 0x64c]
push eax
call fcn.0040fc10
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.004126b0
lea ecx, [ebp - 0x64c]
call fcn.00405020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4562f4
lea edx, [ebp - 0x64c]
push edx
lea ecx, [ebp - 0x10]
call fcn.004029a0
mov eax, dword [ebp - 0x10]
push eax
push str.xml_file_found_in_command_line:__s
push 0x49d444
call fcn.00441600
add esp, 0xc
mov byte [ebp - 0x435], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64c]
call fcn.00402980
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402a80
mov edx, dword [ebp - 0x654]
or edx, 1
mov dword [ebp - 0x654], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402980
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402980
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.0046faad
mov esp, ebp
pop ebp
ret 4