Function at 0x401370
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40430d
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x80]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug___thiscall_kso_qt::QMessageLogger::debug_void_]
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
mov ecx, esi
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QDebug::destructor_void_]
lea ecx, [ebp - 0x6c]
call fcn.00402250
push 0xffffffffffffffff
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QString___cdecl_kso_qt::QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
push 1
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004026e0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov edi, dword [sym.imp.Qt5CoreKso.dll_private:_static_struct_kso_qt::QTypedArrayData_unsigned_short_int_____cdecl_kso_qt::QString::fromAscii_helper_char_const___int_]
push 4
push str.page
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402470
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x46], al
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 0xb
push str.exportAsPDF
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402470
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x45], al
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 2
push 0x405200
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402400
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 3
push 0x405204
call edi
add esp, 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402400
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 3
push 0x40521c
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402470
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
push 3
push 0x405220
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402470
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
mov bl, al
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
xor esi, esi
mov eax, 1
test bl, bl
push 2
push 0x405224
cmovne esi, eax
call edi
add esp, 8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402470
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
mov bl, al
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov eax, 2
test bl, bl
cmovne esi, eax
push esi
call sym.tdos.exe_getApplication
add esp, 4
mov esi, eax
or ebx, 0xffffffff
test esi, esi
jne 0x4015cb
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push esi
lea ecx, [ebp - 0x80]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug___thiscall_kso_qt::QMessageLogger::critical_void_]
push str.failed_to_get_application
mov ecx, eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
mov eax, dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QDebug::destructor_void_]
lea ecx, [ebp - 0x44]
call eax
jmp 0x4016d6
mov eax, dword [esi]
mov ecx, esi
push 0
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4016cf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 1
push eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_kso_qt::QString::toStdWString_void_]
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [ebp - 4], 0xf
jb 0x401600
mov ecx, dword [ecx]
mov eax, dword [esi]
lea edx, [ebp - 0x44]
push edx
push 0
push 1
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
mov edi, eax
call fcn.00401000
test edi, edi
jne 0x401667
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
lea ecx, [ebp - 0x80]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug___thiscall_kso_qt::QMessageLogger::critical_void_]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x10
push ecx
push str.failed_to_open
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5CoreKso.dll_public:_class_kso_qt::QDebug____thiscall_kso_qt::QDebug::operator___class_kso_qt::QString_const__]
mov eax, dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QDebug::destructor_void_]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
call eax
jmp 0x4016c7
cmp dword [ebp - 0x44], 1
je 0x4016c7
cmp byte [ebp - 0x45], 0
je 0x4016b8
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.Qt5CoreKso.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_kso_qt::QString::toStdWString_void_]
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov byte [ebp - 4], 0x11
jb 0x40168e
mov ecx, dword [ecx]
mov eax, dword [edi]
push 0
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
call eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
mov bl, al
call fcn.00401000
or eax, 0xffffffff
mov dword [ebp - 0x54], eax
xor eax, eax
test bl, bl
mov ebx, dword [ebp - 0x54]
cmovne ebx, eax
cmp byte [ebp - 0x46], 0
je 0x4016c7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, eax
mov edx, dword [esi]
mov ecx, esi
push edi
call dword [edx + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
call sym.tdos.exe_delApplication
lea ecx, [ebp - 0x58]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
lea ecx, [ebp - 0x50]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
lea ecx, [ebp - 0x6c]
call fcn.00402320
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004039dc
mov esp, ebp
pop ebp
ret