Function at 0x4bcc50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6470
mov eax, dword fs:[0]
push eax
sub esp, 0x68
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 esi, ecx
mov eax, dword [0x6184f8]
cmp dword [eax + 0x3c], 1
je 0x4bcfc0
mov eax, dword [esi]
push 1
call dword [eax + 0x21c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1cc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1d8]
test eax, eax
je 0x4bce78
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bcfdc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
push 0x88
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.00403020
mov ebx, dword [esi + 0x738]
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebx + 0x128]
lea edx, [eax - 0x10]
sub edi, 0x10
mov dword [ebp - 0x58], edx
cmp edx, edi
je 0x4bcd46
cmp dword [edi + 0xc], 0
jl 0x4bcd37
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x4bcd37
mov ecx, edx
call fcn.00403af0
mov dword [ebp - 0x54], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bcd2c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x54]
add eax, 0x10
mov dword [ebx + 0x128], eax
jmp 0x4bcd46
push dword [eax - 0xc]
lea ecx, [ebx + 0x128]
push eax
call fcn.00403bb0
mov ecx, dword [esi + 0x738]
push esi
mov eax, dword [ecx]
call dword [eax + 0x190]
mov ecx, dword [esi + 0x738]
push 0
add ecx, 0xa8
call fcn.00558c8a
mov ecx, dword [esi + 0x738]
push 5
call fcn.00558c8a
call fcn.0055f2f5
mov ecx, dword [eax + 4]
call fcn.00559f19
push 0
push 4
push 0
push 0
push esi
push 0x4bcc30
mov byte [ebp - 4], 1
call fcn.0055c3f2
mov edi, eax
test edi, edi
je 0x4bce06
push dword [edi + 0x2c]
mov dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [edi + 0x2c]
call ebx
cmp eax, 0x102
jne 0x4bcdfb
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4bcded
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push dword [edi + 0x2c]
call ebx
cmp eax, 0x102
je 0x4bcdc3
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4bce46
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, 0xa
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
je 0x4bce37
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
sub edi, 1
jne 0x4bce11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1bc]
mov ecx, dword [esi + 0x738]
mov eax, dword [ecx]
call dword [eax + 0x60]
lea ecx, [ebp - 0x4d]
call fcn.00453ac0
mov edx, dword [ebp - 0x58]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bce78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1dc]
lea ecx, [ebp - 0x4c]
call fcn.004a3e80
push ecx
push str.CBaseDlgCtrl::BtnPrinterSelectDirectNext
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.0040a480
mov byte [ebp - 4], 3
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bcee3
test byte [ecx + 0x1c], 1
je 0x4bcee3
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d4778
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x22
call fcn.00401840
add esp, 0xc
push str.BtnPrinterSelectDirectNext
push str.Action_start__s.
push 0x6185b4
call fcn.0048a7e0
add esp, 0xc
xor edi, edi
call fcn.0049b970
test eax, eax
je 0x4bcf22
lea ecx, [ebp - 0x4c]
call fcn.004aa3f0
mov edi, eax
test edi, edi
je 0x4bcf22
mov ecx, dword [0x6184ec]
push 0
call fcn.00520590
jmp 0x4bcf2f
push 0x3ee
lea ecx, [ebp - 0x4c]
call fcn.004a76b0
push edi
push str.BtnPrinterSelectDirectNext
push str.Action_ended__s._Return_value__08x.
push 0x6185b4
call fcn.0048a7e0
add esp, 0x10
mov byte [ebp - 0x44], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4bcf8c
test byte [ecx + 0x1c], 1
je 0x4bcf8c
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d4778
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040a570
test edi, 0x1000000
jne 0x4bcfb8
mov ecx, dword [0x6184f8]
push esi
call fcn.004b5a50
push 0xbb8
mov ecx, esi
call fcn.0055942d
lea ecx, [ebp - 0x4c]
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
int3