Function at 0x4bd3b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a64c1
mov eax, dword fs:[0]
push eax
sub esp, 0x878
mov eax, dword [0x608554]
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 dword [ebp - 0x868], ebx
mov eax, dword [ebp + 8]
push ecx
push str.CBaseDlgPrinterSelectDirect::FindPrinters
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x864], eax
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bd447
test byte [ecx + 0x1c], 1
je 0x4bd447
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d6d08
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x10
call fcn.00401840
add esp, 0xc
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_LockWindowUpdate]
mov eax, dword [ebx + 0x738]
mov dword [eax + 0x12c], 0
mov eax, dword [ebx + 0x738]
test eax, eax
jne 0x4bd472
mov dword [ebp - 0x84c], eax
jmp 0x4bd47b
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x84c], eax
lea ecx, [ebp - 0x854]
call fcn.00437ff0
lea ecx, [ebp - 0x854]
mov byte [ebp - 4], 1
call fcn.0043b800
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4bd60f
mov ecx, dword [ebx + 0x738]
push 0xc7
add ecx, 0x128
call fcn.00403020
mov ecx, dword [ebx + 0x738]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ecx, dword [ebx + 0x738]
push 5
call fcn.00558c8a
mov eax, dword [0x6184f8]
mov edx, dword [eax + 0x64]
mov eax, dword [0x6184f0]
mov eax, dword [eax + 8]
cmp edx, 5
jae 0x4bd4f3
mov edx, dword [eax + edx*4 + 0xbbc]
jmp 0x4bd4f5
xor edx, edx
mov eax, dword [eax + 0xbb8]
lea ecx, [ebx + 0x7d0]
push ecx
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x10]
push 0
mov dword [ecx + 0x2c], edx
call eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
add esp, 0x14
mov ecx, dword [ecx + 0x1c]
push eax
push str.DYNAMICWAKEUPWAITTIME
call fcn.004f65f0
lea eax, [ebp - 0x810]
push eax
call fcn.00577bb7
add esp, 4
mov dword [ebp - 0x850], eax
mov esi, 0x3e8
call fcn.005826e9
mov dword [ebp - 0x860], eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x884]
push eax
call edi
test eax, eax
je 0x4bd5e5
nop dword [eax]
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4bd5b1
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
sub esi, 1
js 0x4bd5e0
mov eax, dword [ebx + 0x738]
cmp dword [eax + 0x12c], 0
jne 0x4bd733
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x884]
push eax
call edi
test eax, eax
jne 0x4bd580
jmp 0x4bd5e5
mov esi, 0x3e8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.005826e9
sub eax, dword [ebp - 0x860]
cmp eax, dword [ebp - 0x850]
jb 0x4bd564
mov ecx, dword [ebx + 0x738]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebx + 0x738]
push 0x82
add ecx, 0x128
call fcn.00403020
mov ecx, dword [ebx + 0x738]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ecx, dword [ebx + 0x738]
push 5
call fcn.00558c8a
mov ecx, dword [0x6184f8]
lea esi, [ebx + 0x704]
lea edx, [ecx + 4]
cmp edx, esi
je 0x4bd67a
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov dword [esi + 8], ecx
mov ecx, dword [0x6184f8]
mov eax, dword [ecx + 4]
lea esi, [ebx + 0x710]
mov dword [ecx + 8], eax
mov ecx, dword [0x6184f8]
lea edx, [ecx + 0x10]
cmp edx, esi
je 0x4bd6b9
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov dword [esi + 8], ecx
mov ecx, dword [0x6184f8]
mov eax, dword [ecx + 0x10]
lea edx, [ebx + 0x728]
lea esi, [ebx + 0x71c]
mov dword [ecx + 0x14], eax
cmp esi, edx
je 0x4bd6ef
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov eax, dword [esi]
mov dword [esi + 4], eax
mov edi, dword [0x6184f8]
mov esi, dword [0x6184f0]
mov ecx, dword [edi + 0x68]
sub ecx, 0x10
call fcn.00403af0
lea edx, [eax + 0x10]
mov dword [ebp - 0x850], edx
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x64]
mov ecx, dword [esi + 8]
cmp eax, 5
jae 0x4bd7d0
mov eax, dword [ecx + eax*4 + 0xbbc]
jmp 0x4bd7d2
mov eax, dword [sym.imp.USER32.dll_LockWindowUpdate]
push 0
call eax
mov ecx, dword [ebx + 0x738]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bd78d
test byte [ecx + 0x1c], 4
je 0x4bd78d
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d6d08
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
mov byte [ebp - 0x844], 1
cmp ecx, 0x608f30
je 0x4bd9cd
test byte [ecx + 0x1c], 1
je 0x4bd9cd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x12
jmp 0x4bd9c0
xor eax, eax
mov esi, dword [ebp - 0x864]
push edx
push eax
push dword [ecx + 0xbb8]
lea ecx, [ebx + 0x7d0]
push esi
call fcn.00401ac0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x850]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bd80e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x7c8]
test eax, eax
je 0x4bd829
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x7c8], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [ebx + 0x7c4], 0
mov dword [ebx + 0x7c8], eax
je 0x4bd891
test esi, esi
je 0x4bd85c
push 0x5c6930
push esi
call fcn.00574f99
add esp, 8
test eax, eax
jne 0x4bd891
push 0
push 4
push 0
push 0
push ebx
push 0x4bdc10
call fcn.0055c3f2
mov dword [ebx + 0x7cc], eax
test eax, eax
je 0x4bd89d
mov dword [eax + 0x28], 0
mov eax, dword [ebx + 0x7cc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4bd89d
push dword [ebx + 0x7c8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x85c], eax
mov eax, dword [ebx + 0x7c8]
push 1
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x85c]
push 1
push eax
push 2
call esi
cmp eax, 0x102
jne 0x4bd946
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x884]
push eax
call edi
test eax, eax
je 0x4bd91d
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4bd91d
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, dword [ebx + 0x738]
cmp dword [eax + 0x12c], 0
jne 0x4bda06
push 1
push 1
lea eax, [ebp - 0x85c]
push eax
push 2
call esi
cmp eax, 0x102
je 0x4bd8d7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x210]
mov ecx, dword [ebx + 0x738]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1d4]
mov eax, dword [sym.imp.USER32.dll_LockWindowUpdate]
push 0
call eax
push 1
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [ebp - 0x844], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bd9cd
test byte [ecx + 0x1c], 1
je 0x4bd9cd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x15
mov edx, 0x5d6d08
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x854]
call fcn.004380c0
lea ecx, [ebp - 0x848]
call fcn.0040a570
mov eax, 1
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.0056d977
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x6184f8]
lea esi, [ebx + 0x704]
add edx, 4
cmp edx, esi
je 0x4bda39
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov dword [esi + 8], ecx
mov eax, dword [esi]
mov dword [esi + 4], eax
lea esi, [ebx + 0x710]
mov edx, dword [0x6184f8]
add edx, 0x10
cmp edx, esi
je 0x4bda71
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov ecx, dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov dword [esi + 4], ecx
mov ecx, dword [edx + 8]
mov eax, dword [esi + 8]
mov dword [edx + 8], eax
mov dword [esi + 8], ecx
mov eax, dword [esi]
lea edx, [ebx + 0x728]
mov dword [esi + 4], eax
lea esi, [ebx + 0x71c]
cmp esi, edx
je 0x4bdaa6
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov eax, dword [edx + 4]
mov dword [esi + 4], eax
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov eax, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [edx + 8], ecx
mov eax, dword [edx]
mov ecx, ebx
mov dword [edx + 4], eax
mov eax, dword [ebx]
call dword [eax + 0x1d4]
push dword [ebx + 0xc8]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
call esi
push dword [ebx + 0x148]
call esi
push dword [ebx + 0x1c8]
call esi
mov eax, dword [ebx + 0x7e8]
test eax, eax
je 0x4bdae9
push eax
mov eax, dword [ebx + 0x7dc]
call eax
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [ebp - 0x85c]
push 1
push 1
push eax
push 2
call esi
cmp eax, 0x102
jne 0x4bdb6d
mov ebx, dword [ebp - 0x84c]
nop dword [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x884]
push eax
call edi
test eax, eax
je 0x4bdb51
lea eax, [ebp - 0x884]
push eax
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4bdb51
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 1
lea eax, [ebp - 0x85c]
push eax
push 2
call esi
cmp eax, 0x102
je 0x4bdb10
mov ebx, dword [ebp - 0x868]
mov ecx, dword [ebx + 0x738]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov eax, dword [sym.imp.USER32.dll_LockWindowUpdate]
push 0
call eax
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bdbc7
test byte [ecx + 0x1c], 4
je 0x4bdbc7
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d6d08
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x13
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
mov byte [ebp - 0x844], 1
cmp ecx, 0x608f30
je 0x4bd9cd
test byte [ecx + 0x1c], 1
je 0x4bd9cd
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x14
jmp 0x4bd9c0