Function at 0x41efc0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x43a240
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4509cc]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x78]
mov esi, dword [ebp + 0x7c]
push str.CDeviceThread::DoLoad
push str._s___
mov dword [ebp + 0x30], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp + 0x28], esi
call fcn.00404530
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov edi, dword [ebx]
xor eax, eax
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x1c], eax
mov ecx, dword [ebp + 0x30]
mov esi, dword [ecx + 0xec]
mov byte [ebp - 4], 1
cmp esi, eax
jne 0x41f042
push 0x80004003
call fcn.00436bb0
push edi
call fcn.0040e490
add esp, 4
push eax
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call fcn.0040f3d0
mov eax, dword [eax]
test eax, eax
je 0x41f06c
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov esi, eax
push eax
mov dword [ebp + 0x1c], esi
call edx
jmp 0x41f06f
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41f07e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp + 0x30]
push edi
call fcn.00410590
mov ecx, dword [ebp + 0x30]
add ecx, 0xf4
mov dword [ebp + 0x20], ecx
call fcn.004319d0
mov dword [ebp + 0x2c], 0
cmp edi, 9
jne 0x41f10a
add ebx, 0x18
push ebx
lea ecx, [ebp - 0x38]
call fcn.004113d0
mov eax, dword [eax]
mov byte [ebp - 4], 2
test eax, eax
je 0x41f0be
mov eax, dword [eax]
jmp 0x41f0c0
xor eax, eax
push eax
lea ecx, [ebp - 0x20]
call fcn.004057a0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00402910
lea eax, [ebp - 0x20]
push str.Create
push eax
call fcn.0041b8e0
add esp, 8
test al, al
je 0x41f0f1
mov dword [ebp + 0x2c], 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41f177
test edi, edi
jne 0x41f183
add ebx, 0x18
push ebx
lea ecx, [ebp - 0x30]
call fcn.004113d0
mov eax, dword [eax]
mov byte [ebp - 4], 5
test eax, eax
je 0x41f128
mov eax, dword [eax]
jmp 0x41f12a
xor eax, eax
push eax
lea ecx, [ebp + 0x14]
call fcn.004057a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.00402910
mov ecx, dword [ebp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x41f160
push str.PhotoFullSizeLoading
lea ecx, [ebp + 0x14]
call fcn.00406160
test eax, eax
jne 0x41f160
mov dword [ebp + 0x2c], 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x41f191
push 0x80004003
call fcn.00436bb0
mov edx, dword [ebp + 0x2c]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x1c]
push edx
push esi
call eax
xor ebx, ebx
cmp eax, ebx
jge 0x41f1af
push 0x43d93c
push esi
push eax
call fcn.00436bd0
lea edx, [ebp + 0x24]
push edx
push ebx
push 1
mov dword [ebp + 0x24], ebx
mov ecx, dword [esi]
mov eax, dword [ecx + 0x2c]
push ebx
push esi
call eax
cmp eax, ebx
mov edi, dword [ebp + 0x28]
jl 0x41f206
mov eax, dword [edi]
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x30]
push 0xffffffffffffffff
lea edx, [eax*8]
push ebx
sub edx, eax
mov dword [edi + 0x18], ecx
push edi
lea ecx, [esi + edx*8 + 0x1ec]
mov dword [edi + 4], 9
mov dword [edi + 0x1c], ebx
call fcn.0040d090
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esi + 0x764]
call fcn.0040d090
mov ecx, dword [ebp + 0x20]
mov dword [edi + 4], 4
call fcn.004319e0
mov dword [ebp + 0xc], ebx
jmp 0x41f220
mov ebx, dword [ebp + 0x30]
mov al, byte [ebx + 0x1ba]
test al, al
jne 0x41f261
mov ecx, dword [ebx + 0xe4]
push ecx
push str._Device:_d__User_Cancel
call fcn.00404530
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x1c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
add esp, 8
mov byte [ebx + 0x1ba], 1
jmp 0x41f305
push str.Start
push str.LoadItem
push str._s____s
call fcn.00404530
mov edi, dword [ebp + 0x1c]
add esp, 0xc
test edi, edi
jne 0x41f289
push 0x80004003
call fcn.00436bb0
lea edx, [ebp + 0x18]
push edx
mov ecx, edi
call fcn.0040f320
push str.Start
push str.LoadItem
push str._s____s
mov byte [ebp - 4], 8
call fcn.00404530
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jne 0x41f39f
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xe4]
push eax
push esi
push ecx
push str._Device:_d__nCountForLog___d_cnt___d
call fcn.00404530
add esp, 0x10
cmp esi, dword [ebp + 0x24]
jne 0x41f2ef
mov edx, dword [ebx + 0xe4]
push edx
push str._Device:_d__break_success
call fcn.00404530
add esp, 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x41f302
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp + 0x28]
add ebx, 0xf4
mov ecx, ebx
call fcn.004319d0
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 0x79c]
mov edx, dword [ebp + 0x10]
push ecx
push edx
mov ecx, ebx
call fcn.004312b0
xor ebx, ebx
cmp edi, ebx
jne 0x41f337
push 0x80004003
call fcn.00436bb0
mov eax, dword [edi]
mov ecx, dword [eax + 0x28]
push edi
call ecx
cmp eax, ebx
jge 0x41f34f
push 0x43d93c
push edi
push eax
call fcn.00436bd0
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
mov byte [ebp - 4], bl
call eax
mov dword [ebp - 4], 0xffffffff
push 0x43d684
push str.CDeviceThread::DoLoad
push str._s____s
call fcn.00404530
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.0043707e
add ebp, 0x70
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov ecx, dword [eax]
push edx
mov esi, eax
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, edi
jge 0x41f3c2
push 0x43d664
push esi
push eax
call fcn.00436bd0
push str.Start
push str.UpdateDB
push str._s____s
call fcn.00404530
add esp, 0xc
mov dword [ebp + 8], edi
lea esp, [esp]
cmp dword [ebp + 8], 0x14
jge 0x41f554
mov eax, dword [ebp + 0x18]
mov esi, eax
test eax, eax
jne 0x41f3fd
push 0x80004003
call fcn.00436bb0
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
mov edi, eax
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x41f41b
push 0x43d664
push edi
push eax
call fcn.00436bd0
mov eax, dword [ebp + 0x20]
push eax
call fcn.0040e230
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x30]
add esp, 4
lea ecx, [ebp - 0x1c]
push ecx
push esi
mov edi, eax
mov eax, dword [ebp + 0x10]
push edx
push edi
add ebx, 0xf4
push eax
mov ecx, ebx
call fcn.00434ef0
mov esi, eax
test esi, esi
jge 0x41f4ff
push 0x12c
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 - 0x18], eax
mov ecx, dword [ebp + 0x10]
push edi
push ecx
push esi
lea edx, [ebp - 0x18]
push str.DoLoad_:_hr___x__dsID_:__d__DEngType_:__d
push edx
mov byte [ebp - 4], 9
call fcn.00404330
mov edi, dword [ebp - 0x18]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x41f4d7
mov ecx, ebx
call fcn.004319d0
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x24]
push 0x447eb4
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], vtable._com_error.0
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
call sub.MSVCR90.dll__CxxThrowException
lea eax, [edi - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f4f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp + 8]
jmp 0x41f3e0
mov edx, dword [0x450b58]
mov eax, dword [edx + 0xc]
mov ecx, 0x450b58
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push str.DoLoad_Success_
push ecx
mov byte [ebp - 4], 0xa
call fcn.00404330
mov esi, dword [ebp - 0x14]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43d6b0
push str.UpdateDB
push str._s____s
call fcn.00404530
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
xor ebx, ebx
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], ecx
call fcn.0040e230
mov edi, dword [ebp + 0x30]
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esi]
push 0xffffffffffffffff
lea edx, [eax*8]
push ebx
sub edx, eax
push esi
lea ecx, [edi + edx*8 + 0x1ec]
call fcn.0040d090
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [edi + 0x764]
call fcn.0040d090
mov eax, dword [ebp + 0x18]
inc dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41f220
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x41f220