Function at 0x420b90
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b9b1
mov eax, dword fs:[0]
push eax
sub esp, 0x864
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
push ecx
push str.CBaseDirectPrintersSilent::FindPrinters
lea ecx, [ebp - 0x864]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x420c18
test byte [ecx + 0x1c], 1
je 0x420c18
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c8808
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1c
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x868]
call fcn.00437ff0
mov byte [ebp - 4], 1
mov ecx, dword [0x6184f0]
mov ecx, dword [ecx + 0x24]
call fcn.004ffee0
lea ecx, [ebp - 0x868]
call fcn.0043b800
test eax, eax
je 0x420cbb
mov ecx, dword [0x6184f0]
mov eax, dword [ecx + 0x24]
mov edx, dword [eax + 0x28]
mov eax, dword [ecx + 8]
lea ecx, [ebx + 0x68]
push ecx
push 0
mov eax, dword [eax + 0xbb8]
mov dword [ebx + 0x90], eax
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x94], 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
mov ecx, dword [0x6184f8]
add esp, 4
push eax
call fcn.004b7ab0
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
cmp dword [ebx + 0xdc], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebx + 0xe0], eax
je 0x420d09
push 0
push 4
push 0
push 0
push ebx
push 0x4248d0
call fcn.0055c3f2
test eax, eax
je 0x420d0c
push dword [eax + 0x2c]
mov dword [eax + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x420d0c
push eax
call edi
cmp dword [ebx + 0xd8], 0
je 0x420da5
mov edi, dword [0x6184f0]
lea ecx, [ebp - 0x828]
mov esi, dword [edi + 0x24]
lea eax, [esi + 0x2c]
push eax
call fcn.00402f40
mov byte [ebp - 4], 2
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
lea ecx, [ebx + 0x68]
cmovae eax, dword [ebp - 0x828]
push eax
mov eax, dword [edi + 8]
push dword [esi + 0x28]
push dword [eax + 0xbb8]
push 0
call fcn.00401ac0
mov edx, dword [ebp - 0x814]
cmp edx, 8
jb 0x420da0
mov ecx, dword [ebp - 0x828]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420d96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420ed3
push edx
push ecx
call fcn.0056deb6
add esp, 8
mov esi, dword [ebx + 0x7c]
jmp 0x420db4
push 0
push 0
push 0
push 0
call esi
mov esi, eax
push esi
call edi
mov ecx, dword [ebx + 0xe0]
lea eax, [ebp - 0x870]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 1
push 1
push eax
push 2
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x86c], ecx
call edi
cmp eax, 0x102
jne 0x420e2b
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x420e15
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 1
lea eax, [ebp - 0x870]
push eax
push 2
call edi
cmp eax, 0x102
je 0x420de2
mov eax, dword [ebx + 0xe0]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x420e48
push eax
call edi
mov dword [ebx + 0xe0], 0
test esi, esi
je 0x420e58
cmp dword [ebx + 0xd8], 0
jne 0x420e58
push esi
call edi
mov byte [ebp - 0x860], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x420e9f
test byte [ecx + 0x1c], 1
je 0x420e9f
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5c8808
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x1d
call fcn.00401840
add esp, 0xc
lea ecx, [ebp - 0x868]
call fcn.004380c0
lea ecx, [ebp - 0x864]
call fcn.0040a570
xor eax, 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.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
int3