Function at 0x41bbc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434308
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4499cc]
xor eax, ebp
mov dword [ebp - 0x14], 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, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 0x64], ecx
mov dword [ecx + 0x10], edx
mov ecx, dword [esi]
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ebx
mov edi, dword [eax + 0x88]
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x41bc27
push 0x80004003
call fcn.00430f20
push ecx
call fcn.0040ce70
add esp, 4
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.0040db90
mov eax, dword [eax]
cmp eax, ebx
je 0x41bc4d
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
mov dword [ebp - 0x50], eax
call edx
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x41bc5c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
add esi, 0x18
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
call fcn.0040f660
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x41bc7f
mov eax, dword [eax]
jmp 0x41bc81
xor eax, eax
push eax
lea ecx, [ebp - 0x58]
call fcn.00405810
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x41bcd2
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x41bccf
cmp esi, ebx
je 0x41bccf
mov eax, dword [esi]
cmp eax, ebx
je 0x41bcb6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x41bcc6
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x54], ebx
mov ecx, dword [ebp - 0x58]
cmp dword [ecx - 0xc], ebx
jne 0x41bcdc
xor edi, edi
push 0x437378
lea ecx, [ebp - 0x60]
call fcn.00405810
mov esi, dword [ebp - 0x5c]
push edi
push esi
lea edx, [ebp - 0x60]
push str._Kies_BR__Deng___Restore_Contents_:__d___s
mov bl, 5
push edx
mov byte [ebp - 4], bl
call fcn.004043c0
mov eax, dword [ebp - 0x60]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push edi
call fcn.00401120
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 6
test ecx, ecx
jne 0x41bd2f
push 0x80004003
call fcn.00430f20
push esi
lea edx, [ebp - 0x5c]
push edx
mov byte [ebp - 4], bl
call fcn.0040fec0
mov eax, dword [eax]
test eax, eax
je 0x41bd46
mov edi, dword [eax]
jmp 0x41bd48
xor edi, edi
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x41bd8e
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41bd87
test esi, esi
je 0x41bd87
mov eax, dword [esi]
test eax, eax
je 0x41bd6e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41bd7e
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x5c], 0
mov ebx, dword [ebp - 0x64]
lea esi, [ebx + 0x28]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x41bda5
push eax
call fcn.00430f20
mov ecx, 8
mov word [esi], cx
test edi, edi
jne 0x41be39
mov dword [esi + 8], edi
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
mov dword [ebx + 4], 0x1d
mov dword [ebx + 0xc], 0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41bde9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
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
jg 0x41be0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
mov byte [ebp - 4], 0
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004313ee
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
test eax, eax
jne 0x41bdb8
push 0x8007000e
call fcn.00430f20
mov esi, dword [ebp - 0x6c]
mov ecx, esi
call fcn.00405ea0
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 8
test eax, eax
jne 0x41be7b
lea ecx, [ebp - 0x54]
call fcn.00403ce0
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
push 0x17
push 0
push 0x4367bc
lea ecx, [ebp - 0x50]
call fcn.00403fd0
mov ecx, dword [ebp - 0x50]
mov eax, dword [esi + 4]
mov byte [ebp - 4], 9
test ecx, ecx
jne 0x41bea4
push 0x80004003
call fcn.00430f20
mov edx, dword [ebp - 0x54]
push edx
push eax
call fcn.00405ef0
lea ecx, [ebp - 0x4c]
call fcn.00404560
mov ecx, dword [0x43d0d4]
mov eax, dword [esi + 4]
mov edx, dword [0x43d0d8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [0x43d0e0]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x43d0dc]
mov dword [ebp - 0x38], edx
mov edx, dword [0x43d074]
mov dword [ebp - 0x30], ecx
mov ecx, dword [0x43d07c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x43d078]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x43d080]
mov dword [ebp - 0x24], ecx
mov bl, 0xa
push str..DeviceThread.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0
call fcn.004043e0
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov dword [ebp - 0x40], 0xb13
call fcn.00407430
mov eax, dword [eax]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x41bf3b
mov eax, dword [eax]
jmp 0x41bf3d
xor eax, eax
push eax
lea ecx, [ebp - 0x48]
call fcn.004044a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00402710
push str.CDeviceThread::DoRestore
lea ecx, [ebp - 0x18]
call fcn.004044a0
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x41bf6f
push 0x80004003
call fcn.00430f20
mov ebx, dword [eax]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x58], eax
add ebx, 0x2c
call fcn.00403910
mov edx, dword [ebp - 0x58]
sub esp, 0x38
mov esi, eax
mov eax, dword [ebx]
mov edi, esp
mov ecx, 0xe
push edx
rep movsd dword es:[edi], dword [esi]
call eax
lea ecx, [ebp - 0x4c]
call fcn.00404980
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov dword [eax + 4], 0x1d
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [eax + 0x20]
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0
call fcn.0040d8f0
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], 8
test eax, eax
je 0x41bfdd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 7
test eax, eax
je 0x41bff0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x41be1b
ret