Function at 0x4157d0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4339e0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4499cc]
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 edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x7c]
mov ebx, ecx
push str.CDeviceThread::DoLoadGroup
push str._s___
mov dword [ebp + 0x30], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp + 0x2c], esi
call fcn.004045c0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi]
xor edi, edi
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x18], edi
mov ebx, dword [ebx + 0x88]
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x415855
push 0x80004003
call fcn.00430f20
push eax
call fcn.0040ce70
add esp, 4
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, ebx
call fcn.0040db90
mov eax, dword [eax]
test eax, eax
je 0x41587d
mov edx, dword [eax]
mov edi, eax
push eax
mov eax, dword [edx + 4]
mov dword [ebp + 0x18], edi
call eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x41588c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [ebp + 0x30]
lea ecx, [ebx + 0x90]
call fcn.0042b9f0
test edi, edi
jne 0x4158a8
push 0x80004003
call fcn.00430f20
mov eax, dword [edi]
mov ecx, dword [eax + 0x1c]
push edi
call ecx
test eax, eax
jge 0x4158c0
push 0x437750
push edi
push eax
call fcn.00430f40
mov edx, dword [edi]
mov ecx, dword [edx + 0x2c]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push edi
call ecx
test eax, eax
jl 0x415916
mov eax, dword [esi]
mov edx, dword [ebp - 0x18]
push 0xffffffffffffffff
lea ecx, [eax*8]
push 0
sub ecx, eax
push esi
lea ecx, [ebx + ecx*8 + 0x17c]
mov dword [esi + 4], 9
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], 0
call fcn.0040bc30
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebx + 0x6bc]
call fcn.0040bc30
lea ecx, [ebx + 0x90]
mov dword [esi + 4], 4
call fcn.0042ba00
mov dl, byte [ebx + 0x14a]
test dl, dl
jne 0x41594c
mov edi, dword [ebp + 0x18]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov byte [ebx + 0x14a], 1
jmp 0x4159a9
push str.Start
push str.LoadItem
push str._s____s
call fcn.004045c0
mov edi, dword [ebp + 0x18]
add esp, 0xc
test edi, edi
jne 0x415974
push 0x80004003
call fcn.00430f20
lea eax, [ebp + 0x14]
push eax
mov ecx, edi
call fcn.0040dae0
push str.Start
push str.LoadItem
push str._s____s
mov byte [ebp - 4], 2
call fcn.004045c0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
jne 0x415a44
mov byte [ebp - 4], 1
add ebx, 0x90
mov ecx, ebx
call fcn.0042b9f0
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + 0x6f4]
mov eax, dword [ebp + 0x24]
push edx
push eax
mov ecx, ebx
call fcn.0042b2e0
xor ebx, ebx
cmp edi, ebx
jne 0x4159db
push 0x80004003
call fcn.00430f20
mov ecx, dword [edi]
mov edx, dword [ecx + 0x28]
push edi
call edx
cmp eax, ebx
jge 0x4159f3
push 0x437750
push edi
push eax
call fcn.00430f40
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
mov byte [ebp - 4], 0
call ecx
mov dword [ebp - 4], 0xffffffff
push 0x437518
push str.CDeviceThread::DoLoadGroup
push str._s____s
call fcn.004045c0
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.004313ee
add ebp, 0x70
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 4]
mov dword [ebp + 0xc], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push ecx
push eax
mov edi, eax
call edx
test eax, eax
jge 0x415a69
push 0x4374e8
push edi
push eax
call fcn.00430f40
push str.Start
push str.UpdateDB
push str._s____s
call fcn.004045c0
add esp, 0xc
mov dword [ebp + 0x1c], 0
jmp 0x415a90
cmp dword [ebp + 0x1c], 0x14
jge 0x415c0d
mov eax, dword [ebp + 0x14]
mov esi, eax
test eax, eax
jne 0x415aad
push 0x80004003
call fcn.00430f20
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
mov edi, eax
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jge 0x415acb
push 0x4374e8
push edi
push eax
call fcn.00430f40
mov eax, dword [ebp + 4]
push eax
call fcn.0040cc10
mov edx, dword [ebp - 0x1c]
add esp, 4
lea ecx, [ebp + 0xc]
push ecx
push esi
mov edi, eax
mov eax, dword [ebp + 0x24]
push edx
push edi
add ebx, 0x90
push eax
mov ecx, ebx
call fcn.0042f220
mov esi, eax
test esi, esi
jge 0x415bb2
push 0x12c
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], eax
mov ecx, dword [ebp + 0x24]
push edi
push ecx
push esi
lea edx, [ebp]
push str.DoLoadGroup_:_hr___x__dsID_:__d__DEngType_:__d
push edx
mov byte [ebp - 4], 3
call fcn.004043c0
mov edi, dword [ebp]
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0x80040e37
je 0x415b84
mov ecx, ebx
call fcn.0042b9f0
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SetErrorInfo]
mov ecx, dword [ebp - 0x20]
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
jg 0x415ba4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [ebp + 0x1c]
mov esi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x30]
jmp 0x415a90
mov edx, dword [0x449ae8]
mov eax, dword [edx + 0xc]
mov ecx, 0x449ae8
call eax
add eax, 0x10
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
push str.DoLoadGroup_Success_
push ecx
mov byte [ebp - 4], 4
call fcn.004043c0
mov esi, dword [ebp + 8]
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 0x415c07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x2c]
push 0x4375ac
push str.UpdateDB
push str._s____s
call fcn.004045c0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
push eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], ecx
call fcn.0040cc10
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esi]
push 0xffffffffffffffff
lea edx, [eax*8]
push edi
sub edx, eax
push esi
lea ecx, [ebx + edx*8 + 0x17c]
call fcn.0040bc30
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebx + 0x6bc]
call fcn.0040bc30
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x415928
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x415928