Function at 0x4140e0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x439250
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4509cc]
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 0x41414b
push 0x80004003
call fcn.00436bb0
mov eax, dword [eax + 4]
push eax
call fcn.0040e360
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 0x414174
push 0x43d91c
push esi
push eax
call fcn.00436bd0
mov dword [ebx + 4], 4
jmp 0x414180
mov cl, byte [edi + 0x1ba]
test cl, cl
jne 0x4141a4
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], 0
mov byte [edi + 0x1ba], 1
jmp 0x414267
push str.Start
push str.LoadItem
push str._s____s
call fcn.00404530
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 0x414200
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x4141dc
push 0x80004003
call fcn.00436bb0
push 1
lea edx, [ebp]
push edx
call fcn.0040f2c0
mov eax, dword [eax]
test eax, eax
je 0x4141fb
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 0x414238
cmp eax, 2
jne 0x414244
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x414216
push 0x80004003
call fcn.00436bb0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040f2c0
mov eax, dword [eax]
test eax, eax
je 0x414235
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 0x414244
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x43d6b0
push str.LoadItem
push str._s____s
call fcn.00404530
add esp, 0xc
test esi, esi
jne 0x4142e7
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x414278
push 0x80004003
call fcn.00436bb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
mov esi, eax
call edx
test eax, eax
jge 0x414292
push 0x43d91c
push esi
push eax
call fcn.00436bd0
mov dword [ebp - 4], 0
push 0x43d684
push str.CDeviceThread::LoadChangedData
push str._s____s
call fcn.00404530
mov eax, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4142c6
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.0043707e
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 0x41430a
push 0x43d664
push esi
push eax
call fcn.00436bd0
mov eax, dword [ebp + 0x70]
sub eax, 0
je 0x41431b
sub eax, 2
jne 0x41446f
push str.Start
push str.SyncHistory_InsertDB
push str._s____s
call fcn.00404530
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 0x41434e
push 0x43d664
push esi
push eax
call fcn.00436bd0
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040e230
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, 0xf4
call fcn.00434ef0
mov esi, eax
test esi, esi
jge 0x414414
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x450b58]
mov eax, dword [edx + 0xc]
mov ecx, 0x450b58
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.00404330
mov edi, dword [ebp + 0x14]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x4143fe
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x18]
push 0x447eb4
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 0x41445d
mov edx, dword [0x450b58]
mov eax, dword [edx + 0xc]
mov ecx, 0x450b58
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.00404330
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 0x414469
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 + 0xf4]
call fcn.004319d0
push 0x43d6b0
push str.SyncHistory_InsertDB
push str._s____s
call fcn.00404530
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.0040e230
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 + 0x1ec]
call fcn.0040d090
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [edi + 0x764]
call fcn.0040d090
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
mov byte [ebp - 4], 1
call eax
jmp 0x414180