Function at 0x42f460
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1182
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4d0554]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push pe_nt_image_headers32
call fcn.00439be8
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42f4c0
mov ecx, esi
call fcn.00448570
mov dword [esi], vtable.CPFReceiveFaxManagerWnd.0
mov dword [esi + 0x120], 0
jmp 0x42f4c2
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x42f4e1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x42f50e
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push 0
push 0
push 0x4d03f8
push 0xcf0000
push 0x4b47d4
push 0
mov dword [esi + 0x120], edi
call dword [eax + 0x164]
push 0
push 4
push 0
push 0
push 0x4b69f0
mov dword [edi + 0x20], esi
call fcn.0043b3c2
mov dword [edi + 0x44], eax
test eax, eax
je 0x42f4cd
push 0
push 0
push 1
push 0
mov dword [eax + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x50], eax
test eax, eax
je 0x42f4cd
mov eax, dword [edi + 0x44]
mov dword [eax + 0x5c], edi
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x42f556
mov dword [eax + 0x60], ecx
mov eax, dword [edi + 0x44]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x58]
push 0
push 0
push 0
push 0
push 0x4d03f8
push 0xcf0000
push 0x4b47d4
push 0
mov dword [edi + 0x534], edi
call dword [eax + 0x164]
cmp dword [edi + 0x548], 0
jne 0x42f5d6
mov ecx, 0x4b4490
call fcn.00402b50
mov dword [edi + 0x548], eax
test eax, eax
je 0x42f5d6
push str.SelectPollingPrinter
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x54c], eax
test eax, eax
jne 0x42f5d6
push dword [edi + 0x548]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x548], 0
lea ecx, [edi + 0x684]
mov dword [edi + 0x54], 0
call fcn.004287f0
lea esi, [edi + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x6bc], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043a11f
mov ecx, eax
test ecx, ecx
je 0x42f7cc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x96
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0041cd60
push ecx
mov esi, esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0041ce80
add esp, 4
lea ecx, [edi + 0x684]
add eax, 0x10
mov dword [esi], eax
call fcn.00428c90
push 0x99
lea ecx, [ebp - 0x10]
call fcn.0041cd60
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.0041ce80
add esp, 4
lea edx, [eax + 0x10]
mov dword [ebp - 0x14], edx
mov byte [ebp - 4], 2
lea ebx, [edx - 0x10]
mov ecx, dword [edi + 0x6b4]
or esi, 0xffffffff
sub ecx, 0x10
mov dword [ebp - 0x1c], ecx
cmp ebx, ecx
je 0x42f6e5
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x42f6d6
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x42f6d6
push ebx
call fcn.0041ce80
mov edx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f6cb
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [edi + 0x6b4], eax
jmp 0x42f6e5
push dword [edx - 0xc]
lea ecx, [edi + 0x6b4]
push edx
call fcn.0041d170
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x42f6fd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x97
lea ecx, [ebp - 0x10]
call fcn.0041cd60
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x14], eax
call fcn.0041ce80
add esp, 4
lea ecx, [eax + 0x10]
mov dword [ebp - 0x20], ecx
lea edx, [edi + 0x6b8]
mov byte [ebp - 4], 3
mov edi, dword [edx]
lea ebx, [ecx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x18], edx
cmp ebx, edi
je 0x42f781
cmp dword [edi + 0xc], 0
jl 0x42f776
mov eax, dword [ebx]
cmp eax, dword [edi]
jne 0x42f776
push ebx
call fcn.0041ce80
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f76c
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x42f781
push dword [ecx - 0xc]
push ecx
mov ecx, edx
call fcn.0041d170
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x42f799
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42f7b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d300
int3