Function at 0x499670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5657a2
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 0x2c]
push 1
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov ecx, dword [ebx + 0x30]
push 0
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov ecx, dword [ebx + 0xc]
push 0
call dword [sym.imp.DTLUI.dll_public:_bool___thiscall_DuiLib::CTabLayoutUI::SelectItem_int_]
mov ecx, dword [ebx + 8]
push 1
call fcn.0042eed0
mov ecx, dword [ebx + 8]
xor edi, edi
add ecx, 0x63c
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jle 0x499735
mov ecx, dword [ebx + 8]
add ecx, 0x63c
push edi
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0xd4]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
call fcn.00420dd0
test al, al
je 0x499722
push 0
mov ecx, esi
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CListContainerElementUI::SetCanSelect_bool_]
push 0
push 0x5b4744
mov ecx, esi
call dword [sym.imp.DTLUI.dll_public:_bool___thiscall_DuiLib::CContainerUI::SetSubControlEnabled_wchar_t_const___bool_]
mov ecx, dword [ebx + 8]
inc edi
add ecx, 0x63c
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp edi, eax
jl 0x4996e0
mov ecx, dword [ebx + 8]
push 1
push 1
push 1
call fcn.0042eb90
mov ecx, dword [ebx + 8]
call fcn.0042ed10
mov esi, dword [0x61e774]
test esi, esi
jne 0x49978f
push 0x2a8
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 0
push 0x2a8
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.00442c50
mov dword [ebp - 4], 0xffffffff
mov dword [0x61e774], esi
mov al, byte [esi + 8]
mov esi, dword [0x61e7e4]
test al, al
je 0x499875
test esi, esi
jne 0x4997e8
push 0x22c
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 4], 2
push 0x22c
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.004b62e0
mov byte [ebp - 4], 3
mov dword [esi], vtable.CDrvOperateMgrThread_Instanst.0
mov dword [ebp - 4], 0xffffffff
mov dword [0x61e7e4], esi
mov eax, dword [esi + 0x1a4]
add eax, dword [esi + 0x1a0]
jne 0x499804
mov eax, dword [esi + 0x1a8]
add eax, dword [esi + 0x18c]
je 0x499875
push 0
push 0
mov edx, str.STR_RESTORE_FINISH_NEEDREBOOT
lea ecx, [ebp - 0x40]
call fcn.0044b7f0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 6
cmp dword [edi + 0x14], 8
jb 0x499829
mov edi, dword [edi]
mov esi, dword [0x61e774]
test esi, esi
jne 0x499867
push 0x2a8
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 7
push 0x2a8
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.00442c50
mov byte [ebp - 4], 6
mov dword [0x61e774], esi
mov ecx, dword [esi]
mov edx, edi
call fcn.004f4650
jmp 0x499d24
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xd
test esi, esi
jne 0x4998f8
push 0x22c
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0xe
push 0x22c
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.004b62e0
mov byte [ebp - 4], 0xf
mov dword [esi], vtable.CDrvOperateMgrThread_Instanst.0
mov byte [ebp - 4], 0xd
mov dword [0x61e7e4], esi
mov ecx, dword [esi + 0x1a4]
add ecx, dword [esi + 0x1a0]
je 0x499975
mov eax, dword [esi + 0x1a8]
add eax, dword [esi + 0x18c]
je 0x499975
push 0
push 0
mov edx, str.STR_RESTORE_RESULT1
mov dword [ebp - 0x5c], 0x30
lea ecx, [ebp - 0x28]
call fcn.0044b7f0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.004505f0
mov edi, dword [eax + 0x1a8]
add edi, dword [eax + 0x18c]
call fcn.004505f0
cmp dword [esi + 0x14], 8
mov ecx, eax
jb 0x499955
mov esi, dword [esi]
mov eax, dword [ecx + 0x1a4]
add eax, dword [ecx + 0x1a0]
push edi
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040d480
add esp, 0x10
jmp 0x499a86
push 0
test ecx, ecx
lea ecx, [ebp - 0x28]
push 0
je 0x499a0a
mov edx, str.STR_RESTORE_RESULT2
mov dword [ebp - 0x5c], 0x80
call fcn.0044b7f0
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0x16
mov esi, dword [0x61e7e4]
test esi, esi
jne 0x4999e6
push 0x22c
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x17
push 0x22c
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.004b62e0
mov byte [ebp - 4], 0x18
mov dword [esi], vtable.CDrvOperateMgrThread_Instanst.0
mov byte [ebp - 4], 0x16
mov dword [0x61e7e4], esi
cmp dword [edi + 0x14], 8
jb 0x4999ee
mov edi, dword [edi]
mov eax, dword [esi + 0x1a4]
add eax, dword [esi + 0x1a0]
push eax
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.0040d480
add esp, 0xc
jmp 0x499a86
mov eax, dword [esi + 0x1a8]
add eax, dword [esi + 0x18c]
je 0x499a5d
mov edx, str.STR_RESTORE_RESULT3
mov dword [ebp - 0x5c], 0x10
call fcn.0044b7f0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x1c
call fcn.004505f0
cmp dword [esi + 0x14], 8
mov ecx, eax
jb 0x499a41
mov esi, dword [esi]
mov eax, dword [ecx + 0x1a8]
add eax, dword [ecx + 0x18c]
push eax
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040d480
add esp, 0xc
jmp 0x499a86
mov edx, str.STR_RESTORE_NODRIVER
mov dword [ebp - 0x5c], 0x30
call fcn.0044b7f0
add esp, 8
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x499a86
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x499a9f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
mov esi, dword [0x61e7e4]
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
test esi, esi
jne 0x499af7
push 0x22c
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x20
push 0x22c
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.004b62e0
mov byte [ebp - 4], 0x21
mov dword [esi], vtable.CDrvOperateMgrThread_Instanst.0
mov byte [ebp - 4], 0xd
mov dword [0x61e7e4], esi
mov al, byte [esi + 0x184]
lea ecx, [ebp - 0x28]
push 0
push 0
test al, al
je 0x499b2c
mov edx, str.STR_RESTORE_CANCEL
call fcn.0044b7f0
add esp, 8
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x499b2a
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
jmp 0x499b4e
mov edx, str.STR_RESTORE_FINISH
call fcn.0044b7f0
add esp, 8
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x499b4e
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x499b67
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
push 3
push 0x5b4894
lea ecx, [ebp - 0x58]
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
call fcn.00406f60
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
cmp word [edx], 0
jne 0x499b9b
xor ecx, ecx
jmp 0x499baf
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499ba0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00406f60
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x58]
call fcn.0044c020
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x499be1
push 0xffffffffffffffff
push 0
push eax
call fcn.004048d0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x499bfa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
mov esi, dword [0x61e7e4]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test esi, esi
jne 0x499c56
push 0x22c
call fcn.005120b2
mov esi, eax
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 0x28
push 0x22c
push 0
push esi
call fcn.0052d340
add esp, 0x10
mov ecx, esi
call fcn.004b62e0
mov byte [ebp - 4], 0x29
mov dword [esi], vtable.CDrvOperateMgrThread_Instanst.0
mov byte [ebp - 4], 0xd
mov dword [0x61e7e4], esi
mov al, byte [esi + 0x184]
test al, al
jne 0x499cf7
cmp dword [ebp - 0x44], 8
lea ebx, [ebp - 0x58]
mov edi, dword [0x61e774]
cmovae ebx, dword [ebp - 0x58]
test edi, edi
jne 0x499cad
push 0x2a8
call fcn.005120b2
mov edi, eax
mov dword [ebp - 0x60], edi
mov byte [ebp - 4], 0x2a
push 0x2a8
push 0
push edi
call fcn.0052d340
add esp, 0x10
mov ecx, edi
call fcn.00442c50
mov byte [ebp - 4], 0xd
mov dword [0x61e774], edi
mov edi, dword [edi]
push 0x3fc
call fcn.005120b2
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x2c
mov ecx, eax
call fcn.004f3c40
mov esi, eax
mov byte [ebp - 4], 0xd
push 0
push dword [ebp - 0x5c]
mov ecx, esi
mov dword [esi + 0x3dc], 0
push 0
push 0
push 0
push ebx
push edi
call fcn.004f4de0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x18]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x499d10
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x499d40
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret 8