Function at 0x411a90
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x433e80
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x44a9cc]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x74]
mov ebx, dword [ebp + 0x78]
mov edi, ecx
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax + 0x10]
mov esi, dword [ebp + 0x7c]
mov dword [ebx + 0x10], ecx
mov edx, dword [eax]
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov dword [ebp + 0xc], edx
test esi, esi
jne 0x411afb
push 0x80004003
call fcn.00431990
mov eax, dword [eax + 4]
push eax
call fcn.0040cd90
mov edx, dword [ebp + 0x70]
mov ecx, dword [esi]
add esp, 4
push edx
push eax
mov eax, dword [ecx + 0x14]
push esi
call eax
test eax, eax
jge 0x411b24
push 0x438760
push esi
push eax
call fcn.004319b0
mov dword [ebx + 4], 4
jmp 0x411b30
mov cl, byte [edi + 0x14a]
test cl, cl
jne 0x411b54
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], 0
mov byte [edi + 0x14a], 1
jmp 0x411c17
push str.Start
push str.LoadItem
push str._s____s
call fcn.004044f0
xor esi, esi
add esp, 0xc
mov dword [ebp + 0x28], esi
mov eax, dword [ebp + 0x70]
mov byte [ebp - 4], 2
test eax, eax
jne 0x411bb0
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x411b8c
push 0x80004003
call fcn.00431990
push 1
lea edx, [ebp]
push edx
call fcn.0040db30
mov eax, dword [eax]
test eax, eax
je 0x411bab
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [ebp + 0x28], eax
call edx
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp]
jmp 0x411be8
cmp eax, 2
jne 0x411bf4
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x411bc6
push 0x80004003
call fcn.00431990
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040db30
mov eax, dword [eax]
test eax, eax
je 0x411be5
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [ebp + 0x28], eax
call edx
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x411bf4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x4385cc
push str.LoadItem
push str._s____s
call fcn.004044f0
add esp, 0xc
test esi, esi
jne 0x411c97
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x411c28
push 0x80004003
call fcn.00431990
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
mov esi, eax
call edx
test eax, eax
jge 0x411c42
push 0x438760
push esi
push eax
call fcn.004319b0
mov dword [ebp - 4], 0
push 0x438538
push str.CDeviceThread::LoadChangedData
push str._s____s
call fcn.004044f0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x411c76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x64]
xor ecx, ebp
call fcn.00431e5e
add ebp, 0x68
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp + 0x10]
mov dword [ebp + 8], 0
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push ecx
push esi
call edx
test eax, eax
jge 0x411cba
push 0x438508
push esi
push eax
call fcn.004319b0
mov eax, dword [ebp + 0x70]
sub eax, 0
je 0x411ccb
sub eax, 2
jne 0x411e1f
push str.Start
push str.SyncHistory_InsertDB
push str._s____s
call fcn.004044f0
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push esi
call edx
test eax, eax
jge 0x411cfe
push 0x438508
push esi
push eax
call fcn.004319b0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040cc60
mov edx, dword [ebp - 0x1c]
add esp, 4
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x24]
push esi
mov edi, eax
mov eax, dword [ebp + 0xc]
push edx
push edi
push eax
add ecx, 0x90
call fcn.0042fcd0
mov esi, eax
test esi, esi
jge 0x411dc4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x44aae8]
mov eax, dword [edx + 0xc]
mov ecx, 0x44aae8
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push esi
lea edx, [ebp + 0x14]
push str.DoLoad_:_hr___x__dsID_:__d__DEngType_:__d
push edx
mov byte [ebp - 4], 3
call fcn.004042f0
mov edi, dword [ebp + 0x14]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x411dae
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x18]
push 0x442924
lea edx, [ebp - 0x34]
push edx
mov dword [ebp - 0x34], vtable._com_error.0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
call sub.MSVCR90.dll__CxxThrowException
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x411e0d
mov edx, dword [0x44aae8]
mov eax, dword [edx + 0xc]
mov ecx, 0x44aae8
call eax
add eax, 0x10
mov dword [ebp + 4], eax
lea ecx, [ebp + 4]
push str.DoLoad_Success_
push ecx
mov byte [ebp - 4], 4
call fcn.004042f0
mov esi, dword [ebp + 4]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
lea ecx, [edi + 0x90]
call fcn.0042c4d0
push 0x4385cc
push str.SyncHistory_InsertDB
push str._s____s
call fcn.004044f0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0xc
push edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0xc], ecx
call fcn.0040cc60
add esp, 4
mov dword [ebx + 8], eax
mov eax, dword [ebx]
push 0xffffffffffffffff
lea ecx, [eax*8]
push 0
sub ecx, eax
push ebx
lea ecx, [edi + ecx*8 + 0x17c]
call fcn.0040bc80
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [edi + 0x6bc]
call fcn.0040bc80
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
mov byte [ebp - 4], 1
call eax
jmp 0x411b30