Function at 0x402ab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43e035
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5f44]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esp + 0x24], 1
mov dword [esi], vtable.QsLogging::FileDestination.0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFile::constructor_void_]
lea ecx, [esi + 0xc]
mov byte [esp + 0x24], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QTextStream::constructor_void_]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x18], eax
test eax, eax
je 0x402b2e
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 0x18]
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ebx, dword [esp + 0x2c]
push ebx
mov ecx, edi
mov byte [esp + 0x28], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFile::setFileName_class_QString_const__]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x2c]
push edx
call eax
mov eax, dword [eax]
mov edx, dword [edi]
or eax, 0x12
push eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
test al, al
jne 0x402bc8
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea ecx, [esp + 0x2c]
push ecx
mov bl, 5
mov ecx, eax
mov byte [esp + 0x28], bl
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QString::toLocal8Bit_void_]
mov ecx, eax
mov byte [esp + 0x24], 6
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push eax
push str.QsLog:_could_not_open_log_file
push edx
call fcn.004022a0
add esp, 8
push eax
call fcn.004022a0
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], bl
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push edi
lea ecx, [esi + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QTextStream::setDevice_class_QIODevice__]
push str.UTF_8
call dword [sym.imp.Qt5Core.dll_public:_static_class_QTextCodec____cdecl_QTextCodec::codecForName_char_const__]
add esp, 4
push eax
lea ecx, [esi + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QTextStream::setCodec_class_QTextCodec__]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], 0xffffffff
mov edi, eax
test eax, eax
je 0x402c30
add eax, 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x402c1c
mov edx, dword [edi + 8]
push edi
call edx
add esp, 4
mov eax, edi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x402c30
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc