Function at 0x46e070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bffc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov byte [0x515c5c], 0
mov dword [0x515c58], ebx
jne 0x46e0c8
pop edi
pop esi
mov dword [0x515c60], 2
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
mov eax, dword [esi]
push ebp
push ebx
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [edi + 0x18]
mov ebp, 1
cmp eax, ebp
jge 0x46e0e0
mov dword [edi + 0x18], ebp
cmp dword [edi + 0x1c], ebp
jge 0x46e0ec
mov dword [edi + 0x1c], 0x270f
mov al, byte [esp + 0x44]
test al, al
je 0x46e10b
mov eax, dword [esp + 0x3c]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x48]
mov edi, eax
cmp edi, ebx
jne 0x46e145
jmp 0x46e472
push 0x160
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
cmp eax, ebx
mov dword [esp + 0x34], ebx
je 0x46e131
add edi, 0x2c
push edi
mov ecx, eax
call fcn.00470b50
jmp 0x46e133
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x34], 0xffffffff
mov edi, eax
je 0x46e472
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x90]
test al, al
je 0x46e46a
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, eax
push 0x58
push ebp
call ebx
push 0x5a
push ebp
mov dword [esp + 0x4c], eax
call ebx
push ebp
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0xfc]
push 0x58
push eax
call ebx
mov ebp, eax
mov eax, dword [edi + 0xfc]
push 0x5a
push eax
call ebx
test ebp, ebp
je 0x46e455
test eax, eax
je 0x46e455
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], eax
mov dword [esi + 0xc], edi
mov eax, dword [edi]
push edx
mov ecx, edi
call dword [eax + 0x12c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edx, dword [edi]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
call dword [edx + 0x130]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov ecx, dword [0x5139f8]
push ecx
lea ecx, [esp + 0x48]
call fcn.00463740
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x34], 1
call dword [edx + 0x44]
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x46e262
mov dword [0x515c60], 2
mov dword [esp + 0x34], 0xffffffff
call fcn.004307e0
jmp 0x46e472
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x3c]
push esi
mov dword [ebx + 0x18], ecx
push eax
mov ecx, ebx
call dword [edx + 0x34]
mov ebp, eax
call fcn.00477320
mov ecx, dword [ebx + 0x78]
mov eax, dword [edi + 0xfc]
push ecx
push eax
call dword [sym.imp.GDI32.dll_SetAbortProc]
test ebp, ebp
push 1
jne 0x46e2be
mov dword [0x515c60], 2
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.004307e0
jmp 0x46e472
mov dword [0x515c58], ebp
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0xac]
push 0
push 0
call fcn.0042e540
mov edx, dword [esi]
add esp, 8
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [0x515c60], 0
mov dword [esp + 0x3c], eax
mov al, byte [ebx + 0x24]
test al, al
mov dword [esp + 0x44], ebp
jne 0x46e313
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov ebp, ecx
mov ecx, dword [ebx + 0x20]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x20], eax
jl 0x46e3e8
jmp 0x46e330
mov ebp, dword [esp + 0x44]
lea ecx, [ecx]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
push ecx
push ebp
mov ecx, esi
call dword [eax + 0x34]
test al, al
je 0x46e3bf
mov al, byte [0x515c5c]
test al, al
jne 0x46e3de
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x44], edx
jg 0x46e3a2
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x48]
test al, al
je 0x46e3a2
mov al, byte [0x515c5c]
test al, al
jne 0x46e398
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x50]
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x4c]
mov edx, dword [edi]
mov ecx, edi
mov bl, al
call dword [edx + 0x54]
test bl, bl
mov ebx, dword [esp + 0x10]
je 0x46e398
mov eax, dword [esp + 0x3c]
inc ebp
cmp ebp, eax
jle 0x46e358
jmp 0x46e3a2
mov dword [0x515c60], 1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jle 0x46e329
jmp 0x46e3e8
push str.Could_not_start_printing.
call fcn.00403100
push eax
call fcn.00476670
add esp, 8
mov dword [0x515c60], 2
jmp 0x46e3e8
mov dword [0x515c60], 1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [0x515c58]
test ecx, ecx
je 0x46e41e
mov eax, dword [ecx]
push 0
call dword [eax + 0xac]
mov ecx, dword [0x515c58]
test ecx, ecx
je 0x46e414
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [0x515c58], 0
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
mov eax, dword [0x515c60]
test eax, eax
sete bl
mov dword [esp + 0x34], 0xffffffff
call fcn.004307e0
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
mov dword [0x515c60], 2
jmp 0x46e472
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esp + 0x2c]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc