Function at 0x44f210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484409
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
call edx
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x4c], ebx
mov edi, 1
mov ecx, ebp
mov dword [esp + 0x28], edi
call fcn.0044c970
push 0x49760c
lea ecx, [esp + 0x28]
call fcn.0044c460
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], edi
push eax
mov dword [esp + 0x24], ebx
call fcn.00451700
mov dword [esp + 0x30], ebx
cmp esi, ebx
mov byte [esp + 0x4c], 2
je 0x44f461
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
lea edx, [esp + 0x38]
call fcn.0044ff50
cmp eax, edi
jne 0x44f33a
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x23]
push eax
push 2
push ebx
push ecx
mov dword [esp + 0x34], ebx
call sub.WINSPOOL.DRV_GetPrinterDriverW
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jbe 0x44f32c
push eax
call fcn.0046491e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x44f32c
mov edx, dword [esp + 0x1c]
push edx
push ebx
push esi
call fcn.0046e670
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
push esi
push 2
push ebx
push edx
call sub.WINSPOOL.DRV_GetPrinterDriverW
test eax, eax
je 0x44f323
mov eax, dword [esi + 0x10]
push eax
mov ecx, ebp
call fcn.0044c510
push esi
call fcn.00464923
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.00450190
mov edx, dword [ebp]
cmp dword [edx - 0xc], ebx
je 0x44f461
jmp 0x44f350
mov eax, dword [ebp]
cmp edi, dword [eax - 0xc]
jge 0x44f413
push ebp
mov eax, edi
lea ebx, [esp + 0x20]
call fcn.0044f7f0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 3
call fcn.0044c620
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f39c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044f870
mov eax, dword [eax]
mov ecx, 0x498464
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44f3d9
test dx, dx
je 0x44f3d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44f3d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x44f3b3
xor eax, eax
jmp 0x44f3de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x2c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44f403
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x44f411
add edi, 1
xor ebx, ebx
jmp 0x44f350
xor ebx, ebx
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x24]
sub eax, dword [edx - 0xc]
js 0x44f461
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call fcn.0044f870
push eax
mov ecx, ebp
mov byte [esp + 0x50], 4
call fcn.0044c620
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f461
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov dword [esp + 0x34], vtable.CWriteLog.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f48e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f4b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4