Function at 0x4b3330
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x531a98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
mov edx, dword [0x659a28]
push edi
movsx eax, word [esi]
movsx ebp, word [esi + 4]
movsx ebx, word [esi + 6]
movsx ecx, word [esi + 2]
sub ebp, eax
mov eax, dword [esi + 8]
sub ebx, ecx
inc ebp
push 0
inc ebx
push edx
push eax
push ebx
push ebp
lea ecx, [esp + 0x54]
call fcn.004a8230
mov edi, dword [esp + 0x70]
xor ecx, ecx
push 0
push 0
mov eax, dword [edi + 0xc]
mov dword [esp + 0x68], 0
imul eax, dword [edi + 4]
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, edi
call fcn.004a8d30
mov ecx, dword [esp + 0x28]
mov edi, eax
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
movsx ecx, byte [esi + 0xe]
mov edx, ecx
mov eax, 0x66666667
imul edx, ebp
imul ecx, ebx
add edx, 5
add ecx, 5
imul edx
sar edx, 2
mov eax, edx
mov edi, dword [esp + 0x74]
shr eax, 0x1f
add edx, eax
mov eax, 0x66666667
mov dword [esp + 0x2c], edx
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, edi
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
push edx
call fcn.004a8cf0
movsx ecx, word [eax + 4]
mov edx, dword [esp + 0x68]
push 0
movsx eax, word [eax]
add edx, edx
sub ecx, edx
sub ecx, eax
inc ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.004a8cf0
movsx edi, word [eax + 6]
movsx edx, word [eax + 2]
mov eax, dword [esp + 0x6c]
sub edi, edx
movsx edx, byte [esi + 0xd]
lea ecx, [eax + eax]
mov eax, dword [0x659a38]
sub edi, ecx
xor ecx, ecx
inc edi
mov dword [esp + 0x1c], ecx
test edx, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], ecx
je 0x4b3489
mov eax, dword [esp + 0x10]
xor edx, edx
sub eax, edi
cmp eax, ecx
setle dl
dec edx
and edx, eax
mov eax, edi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
sub eax, edx
xor edx, edx
cmp eax, ecx
setle dl
dec edx
and edx, eax
mov dword [esp + 0x24], edx
cmp dword [0x659a28], 0x10
jne 0x4b35ff
movsx eax, word [esi + 6]
movsx ecx, word [esi + 2]
movsx edx, word [esi]
sub eax, ecx
mov ecx, dword [esp + 0x10]
inc eax
push eax
movsx eax, word [esi + 4]
sub eax, edx
mov edx, dword [esp + 0x2c]
inc eax
push eax
push ecx
push edx
push str.curPrintItem:dstWd_d__dstHt_d__printRect.width_d__printRect.height_d_n
call fcn.00402b00
mov eax, dword [esp + 0x30]
add esp, 0x14
xor ecx, ecx
imul eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
cmp eax, edi
jge 0x4b34df
mov edi, eax
cmp ecx, edi
jge 0x4b3681
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
add ecx, eax
mov eax, dword [esp + 0x6c]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x78]
call fcn.004a8d30
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x4b35e3
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x4b3531
mov eax, ecx
cmp dword [esp + 0x14], eax
jge 0x4b35e3
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push edx
cdq
idiv ecx
lea ecx, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004a83c0
mov cl, byte [esi + 0xc]
mov eax, dword [eax]
cmp cl, 1
jne 0x4b357d
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 3
and cl, 0xf8
and dl, 0xfc
shl al, 3
mov byte [edi], cl
mov byte [edi + 1], dl
mov byte [edi + 2], al
jmp 0x4b35b0
test cl, cl
jne 0x4b35b0
mov ecx, eax
mov edx, eax
shr ecx, 8
shr edx, 3
and ecx, 0xf8
and edx, 0xfc
add ecx, edx
and eax, 0x1f
lea ecx, [ecx + eax*8]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
mov byte [edi], dl
mov byte [edi + 1], dl
mov byte [edi + 2], dl
test byte [esi + 0xd], 8
je 0x4b35cc
mov dl, byte [edi]
mov al, byte [edi + 1]
mov cl, byte [edi + 2]
not dl
not al
not cl
mov byte [edi], dl
mov byte [edi + 1], al
mov byte [edi + 2], cl
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edi, 3
inc ecx
mov dword [esp + 0x14], ecx
add eax, ebp
jmp 0x4b351f
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
inc ecx
add eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jmp 0x4b34d5
mov al, byte [0x8fa7d4]
test al, 1
jne 0x4b3661
mov dl, al
push fcn.00402b00
or dl, 1
mov word [0x8fa7d8], cx
mov byte [0x8fa7d4], dl
mov word [0x8fa7da], cx
call fcn.0051c6ca
mov al, byte [0x8fa7d4]
add esp, 4
xor ecx, ecx
test al, 1
jne 0x4b3661
mov dl, al
push fcn.00402b00
or dl, 1
mov word [0x8fa7d8], cx
mov byte [0x8fa7d4], dl
mov word [0x8fa7da], cx
call fcn.0051c6ca
add esp, 4
xor ecx, ecx
mov edx, dword [esp + 0x70]
push ecx
push ecx
push ebx
push ebp
push 0x8fa7d8
push 0x8fa7d8
lea eax, [esp + 0x58]
push edx
push eax
call fcn.00474b30
add esp, 0x20
mov ecx, esi
call fcn.004b2fb0
lea ecx, [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
call fcn.004a8ce0
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc