Function at 0x4c2910
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6a32
mov eax, dword fs:[0]
push eax
sub esp, 0x574
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 edi, ecx
mov eax, dword [0x6184f8]
cmp dword [eax + 0x3c], 1
je 0x4c2d24
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push 0
push 0
push 0x147
push dword [edi + 0x560]
call ebx
lea ecx, [ebp - 0x420]
push ecx
push eax
push 0x148
push dword [edi + 0x560]
call ebx
mov ecx, dword [0x6184f4]
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ecx + 4]
call fcn.0050ac80
mov esi, 0x5c6930
cmp eax, 1
jne 0x4c2be6
push 0
lea ecx, [ebp - 0x580]
call fcn.004cb260
mov dword [ebp - 4], 0
mov dword [edi + 0xcf4], 0
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4c2d40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x424]
test esi, 0xffff0000
jne 0x4c2a0c
movzx eax, si
push eax
call fcn.00403020
jmp 0x4c2a18
push 0
push 0x5c6930
call fcn.00403bb0
push 0x3b
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00403020
mov eax, dword [ebp - 0x424]
mov esi, dword [ebp - 0x458]
add esi, 0xfffffff0
lea ebx, [eax - 0x10]
mov dword [ebp - 0x428], ebx
cmp ebx, esi
je 0x4c2a9d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4c2a88
mov ecx, dword [eax - 0x10]
cmp ecx, dword [esi]
jne 0x4c2a88
lea ecx, [eax - 0x10]
call fcn.00403af0
mov dword [ebp - 0x42c], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4c2a7d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x42c]
add eax, 0x10
mov dword [ebp - 0x458], eax
jmp 0x4c2a97
push dword [eax - 0xc]
lea ecx, [ebp - 0x458]
push eax
call fcn.00403bb0
mov ebx, dword [ebp - 0x428]
push edi
lea ecx, [ebp - 0x580]
call fcn.004cb490
push 0
lea ecx, [ebp - 0x4d8]
call fcn.00558c8a
push 5
lea ecx, [ebp - 0x580]
call fcn.00558c8a
push 0
push 4
push 0
push 0
push edi
push 0x4c28f0
call fcn.0055c3f2
mov esi, eax
test esi, esi
je 0x4c2b6e
push dword [esi + 0x2c]
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4c2b65
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4c2b35
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [edi + 0xcf4], 0
je 0x4c2b53
lea ecx, [ebp - 0x580]
call fcn.004cb500
mov dword [edi + 0xcf4], 0
push 0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4c2b02
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
mov esi, dword [edi + 0xcf0]
or eax, 0xffffffff
mov byte [ebp - 4], 0
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4c2b8d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x458]
mov dword [ebp - method.CBaseDlgWait.virtual_0], vtable.CBaseDlgWait.0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c2bbc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x4d8]
call fcn.00559a0b
lea ecx, [ebp - 0x580]
call fcn.00558cff
cmp esi, 1
jne 0x4c2d24
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x5c6930
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c8]
lea ecx, [ebp - 0x428]
call fcn.004a3e80
mov dword [ebp - 4], 3
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4c2d4a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x424]
test esi, 0xffff0000
jne 0x4c2c3c
movzx eax, si
push eax
call fcn.00403020
jmp 0x4c2c48
push 0
push 0x5c6930
call fcn.00403bb0
mov byte [ebp - 4], 5
call fcn.0049bd90
cmp eax, 1
jne 0x4c2cb2
push 0
push 0
push 0x468
push dword [edi + 0x9e0]
call ebx
movzx ecx, ax
cmp ecx, 1
jae 0x4c2c76
mov ecx, 1
jmp 0x4c2c81
mov eax, dword [edi + 0xcf8]
cmp ecx, eax
cmova ecx, eax
push ecx
lea eax, [ebp - 0x424]
push 0x5c6b38
push eax
call fcn.00408a60
mov ecx, dword [0x6184f0]
add esp, 0xc
mov esi, dword [ebp - 0x424]
mov ecx, dword [ecx + 0x1c]
push esi
push str.SET_PRINTER_SELECT_SPIN
call fcn.004f6860
jmp 0x4c2cd0
mov ecx, dword [0x6184f0]
push 0x5c797c
push str.SET_PRINTER_SELECT_SPIN
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov esi, dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.004a61a0
mov ebx, eax
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4c2cf9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, 0x1000000
jne 0x4c2d19
mov ecx, dword [0x6184f8]
push edi
call fcn.004b5a50
push 0xbb8
mov ecx, edi
call fcn.0055942d
lea ecx, [ebp - 0x428]
call fcn.004a3f80
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
push 0x80004005
call fcn.004013a0
push 0x80004005
call fcn.004013a0
int3