Function at 0x4120f0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x433470
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4499cc]
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 0x41215b
push 0x80004003
call fcn.00430f20
mov eax, dword [eax + 4]
push eax
call fcn.0040cd40
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 0x412184
push 0x437740
push esi
push eax
call fcn.00430f40
mov dword [ebx + 4], 4
jmp 0x412190
mov cl, byte [edi + 0x14a]
test cl, cl
jne 0x4121b4
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x1c], 0
mov byte [edi + 0x14a], 1
jmp 0x412277
push str.Start
push str.LoadItem
push str._s____s
call fcn.004045c0
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 0x412210
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x4121ec
push 0x80004003
call fcn.00430f20
push 1
lea edx, [ebp]
push edx
call fcn.0040da80
mov eax, dword [eax]
test eax, eax
je 0x41220b
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 0x412248
cmp eax, 2
jne 0x412254
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
jne 0x412226
push 0x80004003
call fcn.00430f20
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.0040da80
mov eax, dword [eax]
test eax, eax
je 0x412245
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 0x412254
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x4375ac
push str.LoadItem
push str._s____s
call fcn.004045c0
add esp, 0xc
test esi, esi
jne 0x4122f7
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x412288
push 0x80004003
call fcn.00430f20
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
mov esi, eax
call edx
test eax, eax
jge 0x4122a2
push 0x437740
push esi
push eax
call fcn.00430f40
mov dword [ebp - 4], 0
push 0x437518
push str.CDeviceThread::LoadChangedData
push str._s____s
call fcn.004045c0
mov eax, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4122d6
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.004313ee
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 0x41231a
push 0x4374e8
push esi
push eax
call fcn.00430f40
mov eax, dword [ebp + 0x70]
sub eax, 0
je 0x41232b
sub eax, 2
jne 0x41247f
push str.Start
push str.SyncHistory_InsertDB
push str._s____s
call fcn.004045c0
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 0x41235e
push 0x4374e8
push esi
push eax
call fcn.00430f40
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040cc10
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.0042f220
mov esi, eax
test esi, esi
jge 0x412424
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [0x449ae8]
mov eax, dword [edx + 0xc]
mov ecx, 0x449ae8
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.004043c0
mov edi, dword [ebp + 0x14]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x41240e
lea eax, [ebp - 0x18]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x18]
push 0x44182c
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 0x41246d
mov edx, dword [0x449ae8]
mov eax, dword [edx + 0xc]
mov ecx, 0x449ae8
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.004043c0
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 0x412479
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.0042b9f0
push 0x4375ac
push str.SyncHistory_InsertDB
push str._s____s
call fcn.004045c0
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.0040cc10
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.0040bc30
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [edi + 0x6bc]
call fcn.0040bc30
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
mov byte [ebp - 4], 1
call eax
jmp 0x412190