Function at 0x414930
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x439308
mov eax, dword fs:[0]
push eax
sub esp, 0x60
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]
mov edi, ecx
push str.CDeviceThread::DoLoad2
push str._s___
mov dword [ebp + 0x28], edi
mov dword [ebp], ebx
mov dword [ebp + 0x24], esi
call fcn.00404530
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
xor ebx, ebx
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [edi + 0xec], ebx
jne 0x4149b3
push 0x80004003
call fcn.00436bb0
push eax
call fcn.0040e490
add esp, 4
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [edi + 0xec]
call fcn.0040f3d0
mov eax, dword [eax]
test eax, eax
je 0x4149df
mov edx, dword [eax]
mov ebx, eax
push eax
mov eax, dword [edx + 4]
mov dword [ebp + 0x14], ebx
call eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4149ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, edi
call fcn.00410590
test ebx, ebx
jne 0x414a07
push 0x80004003
call fcn.00436bb0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x5c]
push ebx
call edx
test eax, eax
jge 0x414a1f
push 0x43d93c
push ebx
push eax
call fcn.00436bd0
mov eax, dword [ebx]
mov edx, dword [eax + 0x2c]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 1
push 0
push ebx
call edx
test eax, eax
jl 0x414a75
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push 0xffffffffffffffff
lea ecx, [eax*8]
push 0
sub ecx, eax
push esi
lea ecx, [edi + ecx*8 + 0x1ec]
mov dword [esi + 4], 9
mov dword [esi + 0x1c], 0
call fcn.0040d090
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x764]
call fcn.0040d090
mov dword [esi + 4], 4
mov dl, byte [edi + 0x1ba]
mov ebx, dword [ebp + 0x14]
test dl, dl
jne 0x414aa0
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov byte [edi + 0x1ba], 1
jmp 0x414acc
test ebx, ebx
jne 0x414aae
push 0x80004003
call fcn.00436bb0
lea eax, [ebp + 0x1c]
push eax
mov ecx, ebx
call fcn.0040f320
mov eax, dword [ebp + 0x1c]
mov byte [ebp - 4], 2
test eax, eax
jne 0x414b61
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x79c]
mov edx, dword [ebp + 0x2c]
push ecx
push edx
lea ecx, [edi + 0xf4]
call fcn.004312b0
test ebx, ebx
jne 0x414af0
push 0x80004003
call fcn.00436bb0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x28]
push ebx
call ecx
test eax, eax
jge 0x414b08
push 0x43d93c
push ebx
push eax
call fcn.00436bd0
mov dword [esi + 4], 0x1b
mov dword [esi + 0xc], 0
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
mov byte [ebp - 4], 0
call eax
mov dword [ebp - 4], 0xffffffff
push 0x43d684
push str.CDeviceThread::DoLoad2
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 + 0xc]
mov dword [ebp + 8], 0
mov ecx, dword [eax]
push edx
mov ebx, eax
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jge 0x414b86
push 0x43d664
push ebx
push eax
call fcn.00436bd0
mov dword [ebp + 0x18], 0
lea ecx, [ecx]
cmp dword [ebp + 0x18], 0x14
jge 0x414cb2
mov eax, dword [ebp + 0x1c]
mov ebx, eax
test eax, eax
jne 0x414bad
push 0x80004003
call fcn.00436bb0
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
mov esi, eax
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x414bcb
push 0x43d664
push esi
push eax
call fcn.00436bd0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040e230
mov edx, dword [ebp - 0x18]
add esp, 4
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x28]
push ebx
mov edi, eax
mov eax, dword [ebp + 0x2c]
push edx
push edi
push eax
add ecx, 0xf4
call fcn.00434ef0
mov esi, eax
test esi, esi
jge 0x414cac
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 + 4], eax
mov ecx, dword [ebp + 0x2c]
push edi
push ecx
push esi
lea edx, [ebp + 4]
push str.DoLoad_:_hr___x__dsID_:__d__DEngType_:__d
push edx
mov byte [ebp - 4], 3
call fcn.00404330
mov edi, dword [ebp + 4]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x414c7e
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x1c]
push 0x447eb4
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable._com_error.0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 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
jg 0x414c9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp + 0x18]
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
jmp 0x414b90
mov edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x24]
lea ecx, [edi + 0xf4]
call fcn.004319d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], ecx
call fcn.0040e230
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 + 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x414a7c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x414a7c